• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can one script execute another?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Can one script execute another? (From: Gil Dawson via AppleScript-Users <email@hidden>)

  • Prev by Date: Can one script execute another?
  • Next by Date: Re: Can one script execute another?
  • Previous by thread: Can one script execute another?
  • Next by thread: Re: Can one script execute another?
  • Index(es):
    • Date
    • Thread