Page 1 of 1

Passing variables to an external AppleScript

PostPosted: Mon Oct 07, 2019 11:15 am
by Dave61
I have an embedded script that I use on multiple folders which passes a string identified using a Match condition. The script acts on the file and the variable using "theFile" and "item 1 of inputAttributes" respectively.

To simplify maintenance I would like to use an external thread but cannot figure out how the access the two pieces of data.

I have tried referring to them as "item n of input" but that doesn't work.

Re: Passing variables to an external AppleScript

PostPosted: Mon Oct 07, 2019 11:17 am
by Mr_Noodle
You mean an external script, right? In that case, check the help. It shows the handler you need to add to the script for it to work.