Accessing multiple variables from Automator in Applescript

Hello.

I’m looking to do something that was explored previously here:

http://macscripter.net/viewtopic.php?id=25408

But nobody really came up with an answer.

What I need to do is compare two variables from Automator. I know how to set the variables, but now I want to compare variable 1 to variable 2 and see if they’re the same. There doesn’t appear to be a way to do this in Automator, so I thought I’d try it in Applescript. The problem is that I can only pass a variable from the immediately preceding action into an Applescript action and I need to pass two of them.

Any ideas?

Thanks,

  • Bruce

I had the same problem and found a solution that’s so simple I had to facepalm

If a “Get value of variable” comes after another “Get value” OR a “Set value”, it will merge the results into a list of multiple items that you can pass to an AppleScript.

That is all.