How do I run a before script?

No more questions - please go to http://www.syncovery.com/forum instead

Moderator: SuperFlexible Administrators

How do I run a before script?

Postby wfsteele on Tue May 10, 2011 3:01 am

I want to run a python script before the profile executes. I check the option in the 'Job' tab and enter the path to the script in the 'Execute before/after' window. When I execute the profile, the script opens in a text editor and is not executed (SFFS just waits for it to finish; which never happens). If, instead, I put 'python <path to script>' into the before field of the 'Execute before/after' window, the python interpreter is executed in a terminal window and the script is ignored. Again, SFFS waits for completion, which never happens.
wfsteele
 
Posts: 1
Joined: Tue May 10, 2011 2:49 am

Re: How do I run a before script?

Postby superflexible on Tue May 10, 2011 3:06 am

Hello,

you need to type the same command line as you would in a Terminal window to launch the script. I don't know how to launch python scripts myself.

You could also help yourself with an AppleScript. Using the AppleScript editor, save it as an application and type the path to the .app bundle in the "Execute before" field. Maybe you can invoke your python script easier from an AppleScript.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm


Return to Mac Support * new forum: www.syncovery.com/forum

cron