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

Re: AppleScript to launch application with command line parameters


  • Subject: Re: AppleScript to launch application with command line parameters
  • From: Jon Pugh via AppleScript-Users <email@hidden>
  • Date: Tue, 21 Apr 2020 23:36:17 -0700

On Apr 21, 2020, at 10:56 PM, Bill Vlahos via AppleScript-Users
<email@hidden> wrote:
>
> do shell script "/Applications/zac.app/Contents/MacOS/zac new”

Run this way, the script application is the parent of your app, so if it dies,
zac dies too. You want to use the open tool to avoid this issue.

do shell script "open -a /Applications/zac.app --args new”

That should do it.

Jon



 _______________________________________________
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: Bill Vlahos via AppleScript-Users <email@hidden>
References: 
 >AppleScript to launch application with command line parameters (From: Bill Vlahos via AppleScript-Users <email@hidden>)

  • Prev by Date: AppleScript to launch application with command line parameters
  • Next by Date: Re: AppleScript to launch application with command line parameters
  • Previous by thread: AppleScript to launch application with command line parameters
  • Next by thread: Re: AppleScript to launch application with command line parameters
  • Index(es):
    • Date
    • Thread