Can one script execute another?
Can one script execute another?
- Subject: Can one script execute another?
- From: Gil Dawson via AppleScript-Users <email@hidden>
- Date: Fri, 22 May 2020 15:44:28 -0700
Hi--
A script or an app can run another app, obviously. But can a script execute
another script? I haven't quite figured it out.
This...
set ScriptPath to (path to desktop as text) & "Say running.scpt"
tell application "Script Editor"
set NewDocument to open alias ScriptPath
tell the NewDocument to run
end tell
...loads this...
on run
display dialog "Running."
end run
...into a new Script Editor window, but the dialog box doesn't appear.
Suggestions?
--Gil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden