PDA

View Full Version : Open Script


spook811
07-15-2010, 12:18 PM
Hi, i want to open up another script after completing one script using applescript, its a system i'm creating?

tw
07-15-2010, 04:04 PM
Hi, i want to open up another script after completing one script using applescript, its a system i'm creating?

I'm not sure what this means. can you explain?

renaultssoftware
07-17-2010, 12:00 PM
Using the commands load script and run script you can run a script from within another. For example,

set myScript to load script (alias "Macintosh HD:Users:Name:Desktop:Scripts:Something.scpt")
run script myScript

sojourner
08-10-2010, 01:41 AM
You can use something like the code below, but it seems to work better if you save the calling script as an application or application bundle.

tell application "Finder"
open file "HardDrive:Path:ScriptName.scpt"
end tell