Can an AppleScript call another script by filename, as you would in C. If not, is there any way to have a running script call another script?
:?:
Can an AppleScript call another script by filename, as you would in C. If not, is there any way to have a running script call another script?
:?:
Caller script:
set Script2SourceCode to (load script alias "path:to:script.scpt")
tell Script2SourceCode to sayHello()
--> "Hello"
Called script:
to sayHello()
return "Hello"
end sayHello
Thanks, jj, I’ll give this a try. If I don’t reply further, you can assume it worked.