I've seen a lot of questions about this on the interwebs but no answers. Is there a way to refer to an Automator 'variable' within AppleScript? I'd like to do some string manipulation as part of a workflow. I've worked around this by using Get Variable and passing them into temporary files, but it's kind of ugly.
views:
71answers:
1
+1
A:
An AppleScript used in a workflow accepts two parameters: input
, or the output of the previous workflow, and parameters
, the options set in the workflow's UI (if applicable). If the string you are manipulating is part of the workflow's input, it will be in input
.
More information is available here.
mipadi
2010-10-05 19:20:21
Thanks. Based on your reply, I tried dumping 'parameters' (with 'return parameters'), and it had interesting things in it, but did not contain the automator 'variable' I had set with 'Set Value of Variable'.
Steven R. Loomis
2010-10-05 20:35:44