Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: do shell script not returning when running X11 app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script not returning when running X11 app



Good afternoon,

On 20/7/03 at 7:33 PM, Christopher Hickman <email@hidden> wrote:

>I had lots of problems with do shell script, too. I found that it was
>almost always a good idea to create an actual shell script file, make
>sure it is executable, add it to the project and have the target put it
>into the Resources folder of the main bundle. You can then reference
>the script by asking AppleScript the build the path for you:

I tried solving the problem by creating a shell script file. But that didn't
solve the problem for me. The shell script would still have open file handles
and therefor would not complete/return. It just moved the problem from the 'do
shell script' command to an external shell script.

The best solution I found (or was advised to use) was redirecting stdout and
stderr to /dev/null. That detaches the file handles and allows the script or
shell command to return immediately.

If any of you are interested, the app I needed this solution for is called
xMahjongg Select and can be found at:

http://www.garrison.com.au/freeware/xmahjongg.html

xMahjongg Select is GUI for the xMahjongg tile matching game. xMahjongg runs
under the X11 windowing system and its setup is controlled by command line
options. xMahjongg Select will handle all the setup for you and start a new
game using your chosen options.

Note, I will be releasing a new version later today that fixes a couple of
minor bugs.


Charlie
--
Charlie Garrison email@hidden
PO Box 141, Windsor, NSW 2756, Australia
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: do shell script not returning when running X11 app (From: Christopher Hickman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.