Given the current suspension of development work and the problem with running concurrent Toucan jobs, I've amalgamated a lot of jobs into scripts.
These currently just call sync & backup jobs and solve a few of my scheduling issues which have been leading to Toucan hanging.
I'm trying now to add a simple parameter
working = "mydir"
or
working = [[mydir]]
both simply give "5 unexpected symbol near ','"
Also expand( [[@drive@]]) gives the same error
Does anyone have an example of a working script I can follow?
 
      
 Visit the Community page
 Visit the Community page Join our forums
 Join our forums Subscribe to our email newsletter
 Subscribe to our email newsletter Subscribe with RSS
 Subscribe with RSS Follow us on BlueSky
 Follow us on BlueSky Follow us on Facebook
 Follow us on Facebook Follow us on LinkedIn
 Follow us on LinkedIn Follow us on Mastodon
 Follow us on Mastodon
The correct format for variable expansion is
t=expand([[@drive@]])
The error message was nothing to do with this line, but caused by an error in the following one, where I had something like:
move (t ..[[PortableApps\WinSCPPortable\Data\settings\winscp.log]] ), (t ..[[Logs\WinscpFTP.log]])
Two sets of parentheses rather than one as in:
move (t ..[[PortableApps\WinSCPPortable\Data\settings\winscp.log]], t ..[[Logs\WinscpFTP.log]])
Now the script works.