Re: AppleScript. launch executable without waiting for it to terminate
Re: AppleScript. launch executable without waiting for it to terminate
- Subject: Re: AppleScript. launch executable without waiting for it to terminate
- From: Matthew Smith <email@hidden>
- Date: Sat, 20 Jan 2007 13:38:54 +1100
- Thread-topic: AppleScript. launch executable without waiting for it to terminate
On 20/01/2007 13:26, "Alex Sheh" <email@hidden> wrote:
> Hi all,
> I would like to write an AppleScript that launches an executable in the
> background, and then returns immediately. Currently I have the following,
>
> do shell script ³/Path/To/myExecutable² &
> (NOTE: myExecutable runs indefinitely waiting for input)
>
> However, even though I specify an ampersand to launch myExecutable in the
> background, my AppleScript hangs waiting for myExecutable to terminate. Is
> there a way to achieve the described behavior (my AppleScript returns
> immediately)?
Don't you mean:
do shell script "\³/Path/To/myExecutable\² &"
The ampersand has to be part of the string parameter of do shell script.
--
Matthew Smith
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden