Passing variables to an external AppleScript

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Passing variables to an external AppleScript 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.
Dave61
 
Posts: 113
Joined: Tue Jul 10, 2012 4:56 pm

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.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support