Re: Truly weird, easy to replicate behaviour...
Re: Truly weird, easy to replicate behaviour...
- Subject: Re: Truly weird, easy to replicate behaviour...
- From: Paul Skinner <email@hidden>
- Date: Fri, 28 Mar 2003 17:44:40 -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...
Perhaps it's because you don't have a screensaver running? I get an
error type 1 if I grep for a nonexistent process.
Does do shell script "ps -aux" fail?
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.