| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
On Jan 19, 2007, at 6:26 PM, Alex Sheh wrote:
Specifying an & (inside the quotes) is not sufficient. While that backgrounds the task, AppleScript still holds onto the process' stdout and stderr to catch the output of the command. To regain control back in your script you need to suppress (or redirect) these: do shell script "/path/to/myexecutable > /dev/null 2>&1 &" The > /dev/nul suppresses stdout (sends it to /dev/null, but it could be a file), and 2>&1 sends stderr to the same place as stdout. Andrew :) |
_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/mailman//archives/applescript-users This email sent to email@hidden
| References: | |
| >AppleScript. launch executable without waiting for it to terminate (From: "Alex Sheh" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.