Open vs Run vs Activate

I have “Testing” script that logs data to file and has “on run”-handler that writes logs first line. If Testing is running when my another script launches Testing, it will mess log-file. I think below code causes Testing to execute “on run”-handler too??? I tried “tell application “finder” to open/activate/run application…” but it did not solve this.

tell application "Finder" to run application "Testing"

Hi cirno,

You’re supposed to use launch before you run a script application. Like this:

tell app “ScriptAppName”
launch
run
end tell

See AppleScriptLanguageGuide.pdf for more information on how to run another script application.

Edited: come to think of it, I don’t know if this applies to the new bundle type scripts.

gl,