Re: Shell script open app. locks script
Re: Shell script open app. locks script
- Subject: Re: Shell script open app. locks script
- From: Paul Skinner <email@hidden>
- Date: Wed, 26 Feb 2003 07:52:10 -0500
On Monday, February 24, 2003, at 04:27 PM, Paul Skinner wrote:
To put the current screensaver onto the desktop...
ignoring application responses
do shell script
"/System/Library/Frameworks/ScreenSaver.framework/Resources/
ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background "
end ignoring
This saved as an app works well, except that the applescript app
won't quit. I have to force quit this 'launching applet' every time.
And, no, it's not stay open. : )
Is there a command line option that I am not aware of that alters the
way the process runs? Do I need to put the output into (
dev/null/A&/~/unixy/crypto/stuff/iDon'tKnow ) or some such? In fact no
one else has mentioned this issue that I can find.
What happens on your box?
Paul Skinner
To answer my own question...
In doing as I was previously instructed by C.Nebel, I re-read the
Technote at
http://developer.apple.com/technotes/tn2002/tn2065.html
and realised that I needed to send the result of my command into
dev/null to free the script from it's endless wait.
do shell script
"/System/Library/Frameworks/ScreenSaver.framework/Resources/
ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background >
/dev/null 2>&1 &"
Solved this particular issue for me. But here's where I get lost. If I
execute the same code in the terminal I get errors. 'Ambiguous
redirect' and no activation. In AppleScript it does exactly what I
want. Activates the SS and continues on it's merry way. Why? I'd like
to do the correct thing. Not just what works.
I read the portion of the TN relating to the differences between 'do
shell script' and the terminal. No resolution. I'd love to get '[1]
1436' back when I execute this do shell script command. (process ID)
since I apparently need to stop associating processes with
applications. I can have 15 instances of the screensaver running on my
desktop! I really should track which one I spawned!
And where would I find that i could use -background as an argument for
this app anyway? Who knew this and how?
Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.