Re: AppleScript to launch application with command line parameters
Re: AppleScript to launch application with command line parameters
- Subject: Re: AppleScript to launch application with command line parameters
- From: Bill Vlahos via AppleScript-Users <email@hidden>
- Date: Wed, 22 Apr 2020 21:48:09 -0700
Jon,
That works but I had to add the -n flag.
do shell script "open -n -a /Applications/zac.app --args new”
I’m not sure why the command line argument “new” didn’t work by itself but it
is working as I desired with both.
Thank you.
Bill
> On Apr 21, 2020, at 11:36 PM, Jon Pugh <email@hidden> wrote:
>
> 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