Re: Hungry app
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