Can an Automator Workflow/App Find Itself?
September 3, 2008 12:06 PM
Subscribe
Obscure Mac geekery filter... On OS X Leopard, how can I get a reference to the current location of an Automator workflow/app in a shell script within that workflow?
I've got a complex Automator workflow that currently has to move files in and out of various directories. Currently these directories live in a specific location that's hard coded into the workflow. What I'd like to do is have the workflow be able to reference it's own package and create the directories it needs inside itself (ex. /some/random/path/myworkflow.workflow/Contents/niftyFolders) or, barring that, just create the directories in the same directory the workflow itself is currently in. Unfortunately I can't find a way to get the location of the workflow itself.
I'm thinking the most likely way to do it at this point is with AppleScript, and I've looked into that a little, but have come up empty. AppleScript and I have never clicked, so I thought I'd turn to all of you.
Thanks!
posted by Xuff to computers & internet (3 comments total)
posted by I_pity_the_fool at 1:00 PM on September 3, 2008