Re: Truly weird, easy to replicate behaviour...
Re: Truly weird, easy to replicate behaviour...
- Subject: Re: Truly weird, easy to replicate behaviour...
- From: Deivy Petrescu <email@hidden>
- Date: Fri, 28 Mar 2003 18:51:25 -0500
On Friday, March 28, 2003, at 03:42 PM, Andrew wrote:
I have found something I cannot explain. The following line of code
returns
an error type 1 on my system
(just type this into script editor and run macOS 10.2.4)
->>
display dialog (do shell script "ps -aux | grep ScreenSaver")
<<-
Can anyone explain to me why? It runs fine in the terminal even under
the sh
shell.. It even runs fine if you change ScreenSaver to moo. I don't
get it.
I just don't get it.. I got around it by changing the line to
display dialog (do shell script "ps -ax | grep ScreenSaver")
but I don't see why that works where the other fails...
I get the same behaviour, but I disagree with your assessment.
It does not work from terminal...
ps -aux | grep whataeveryouwant will return the grep process you just
generated.
However, ps -aux | grep Screensaver does not return anything in
terminal, and this is the error we get.
Nothing is returned from the event.
Why ScreenSaver does not return anything, it beats me!!!
Regards
Deivy
_______________________________________________
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.