• 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
AppleScript to launch application with command line parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript to launch application with command line parameters


  • Subject: AppleScript to launch application with command line parameters
  • From: Bill Vlahos via AppleScript-Users <email@hidden>
  • Date: Tue, 21 Apr 2020 22:56:07 -0700

The following AppleScript works in the Script Editor to open a new copy of the
zac application.

do shell script "/Applications/zac.app/Contents/MacOS/zac new”


However, when run it from the Script Editor or I save it as an Application and
run it, my target application (zac) opens but the AppleScript application does
quit even if I don’t check the box to Stay open after run handler.

The “new” command line parameter will open another instance of the zac
application.

How do I get the AppleScript to open zac with the “new” command line parameter
and then have the AppleScript quit?

Thank you,
Bill Vlahos
 _______________________________________________
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: AppleScript to launch application with command line parameters
      • From: Jon Pugh via AppleScript-Users <email@hidden>
  • Prev by Date: Re: Keyboard Maestro & Applescript
  • Next by Date: Re: AppleScript to launch application with command line parameters
  • Previous by thread: Re: Re: Keyboard Maestro &amp; Applescript
  • Next by thread: Re: AppleScript to launch application with command line parameters
  • Index(es):
    • Date
    • Thread