Automator flow

Post Reply
marcdeblanck
Newbie
Posts: 3
Joined: Thu Feb 03, 2011 12:23 pm

Automator flow

Post 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
dkelly
TOP CONTRIBUTOR
Posts: 658
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Automator flow

Post 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.
marcdeblanck
Newbie
Posts: 3
Joined: Thu Feb 03, 2011 12:23 pm

Automator flow

Post 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
marcdeblanck
Newbie
Posts: 3
Joined: Thu Feb 03, 2011 12:23 pm

Automator flow

Post by marcdeblanck »

nevermind



i found an old example i used with an AppleScript srcipt element



Thanks anyway
Post Reply