Page 1 of 1
Automator flow
Posted: Wed Feb 23, 2011 5:44 pm
by marcdeblanck
Hi,
I would like to pass the original path of a file to an AppleScript via PowerSwtich, so that i can act on the original file
Kind Regards
Marc de Blanck
Automator flow
Posted: Wed Feb 23, 2011 8:36 pm
by dkelly
Hello, you can't pass arguments, like the filename of the original(s), to an Automator. Switch simply passes the input files to Automator as a Finder selection.
You could create a wrapper AppleScript (or Javascript) that calls your Automator script.
Automator flow
Posted: Thu Feb 24, 2011 8:19 am
by marcdeblanck
Hello,
I could use an AppleScript Script Element, but i can't find how to get the Job Hierarchy
mostly i use JavaScript to get things done in Switch
Kind Regards
Marc
Automator flow
Posted: Thu Feb 24, 2011 8:28 am
by marcdeblanck
nevermind
i found an old example i used with an AppleScript srcipt element
Thanks anyway