• 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: Hungry app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hungry app


  • Subject: Re: Hungry app
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 04 Jan 2013 18:11:05 -0600

On Jan 04, 2013, at 17:12, Axel Luttgens <email@hidden> wrote:
Now that the original problem is solved (or, more exactly, circumvented), we may indeed focus on the script itself. ;-)

Jörgen, I guess you have a Linux background, don't you?
I ask, because of your usage of "ps uxc", which may not yield exactly the expected result with our beloved platform.
______________________________________________________________________

That's why I suggested the following:

On Jan 03, 2013, at 16:48, Christopher Stone <email@hidden> wrote:
set appList to paragraphs 2 thru -1 of (do shell script "ps -xu YOUR_USER_NAME -co comm")

Which produces a list of processes by name only (without having to resort to sed, awk, or something else.)

I had to fiddle with it a bit to get it to produce the same command-list as 'ps uxc'.

--
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Hungry app (From: Jörgen Stahle <email@hidden>)
 >Re: Hungry app (From: Jörgen Stahle <email@hidden>)
 >Re: Hungry app (From: Axel Luttgens <email@hidden>)
 >Re: Hungry app (From: Shane Stanley <email@hidden>)
 >Re: Hungry app (From: Axel Luttgens <email@hidden>)
 >Re: Hungry app (From: Shane Stanley <email@hidden>)
 >Re: Hungry app (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Hungry app
  • Next by Date: Re: Checking on the existence of a file
  • Previous by thread: Re: Hungry app
  • Next by thread: Re: Hungry app
  • Index(es):
    • Date
    • Thread