Re: Can one script execute another?
Re: Can one script execute another?
- Subject: Re: Can one script execute another?
- From: Jean-Christophe Helary via AppleScript-Users <email@hidden>
- Date: Sat, 23 May 2020 08:50:59 +0900
Gil
Check p. 68 of the AppleScript language reference, where they talk about
"script objects". I never used them but I think that's exactly what you're
looking for.
Jean-Christophe
> On May 23, 2020, at 7:44, Gil Dawson via AppleScript-Users
> <email@hidden> wrote:
>
> 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
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune
_______________________________________________
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