• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Truly weird, easy to replicate behaviour...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Truly weird, easy to replicate behaviour...
      • From: Federico <email@hidden>
References: 
 >Truly weird, easy to replicate behaviour... (From: Andrew <email@hidden>)

  • Prev by Date: Test for undefined variable?
  • Next by Date: Re: Test for undefined variable?
  • Previous by thread: Truly weird, easy to replicate behaviour...
  • Next by thread: Re: Truly weird, easy to replicate behaviour...
  • Index(es):
    • Date
    • Thread