• 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
Can one script execute another?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Can one script execute another?
      • From: Yvan KOENIG via AppleScript-Users <email@hidden>
    • Re: Can one script execute another?
      • From: Jean-Christophe Helary via AppleScript-Users <email@hidden>
  • Prev by Date: Re: saving mails...
  • Next by Date: Re: Can one script execute another?
  • Previous by thread: Re: saving mails...
  • Next by thread: Re: Can one script execute another?
  • Index(es):
    • Date
    • Thread