on
open my_items
on open my_items
repeat with counter from 1 to the count of my_items
(* Open the script *)
set refNum to open for access (item counter of my_items) without
write permission
(* Get the file size *)
set fileSize to (get eof of (item counter of my_items))
(* Read the script *)
set scriptData to (read (item counter of my_items) for fileSize)
(* Tell Studio to execute the script! *)
tell application "Studio 3.7fc3"
do script scriptData
end tell
close access refNum
end repeat
end open
| AppleScript
droplets are fairly new. An droplet is an application which responds
to something "dropped" on it. Our script will respond
to PiXELScript files and execute them accordingly.
To the left is the script'st code. That is all it takes to
send a script to Studio for execution. All communication between
AppleScript and Studio take place using the "do script"
command.
Paste this code into ScriptEditor, which is located in your
AppleExtras folder. Save the script as a droplet and you are
ready to go.
|