Re: Using tell application "name" where the name comes from GUI Script...
Re: Using tell application "name" where the name comes from GUI Script...
- Subject: Re: Using tell application "name" where the name comes from GUI Script...
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 17 Apr 2003 08:22:40 -0400
on 03-04-17 7:32 AM, John Delacour at email@hidden wrote:
>
At 10:54 am +0000 17/4/03, Kevin Bohan wrote:
>
> 1. I changed the script from process to application process as per
>
> Bill Cheeseman's response to my mail.
>
>
That's Bill for you. You'd better ask him. So far as I'm concerned...
>
>
tell application "System Events"
>
count processes
>
--> 25
>
count application processes
>
--> 25
>
processes = application processes
>
--> true
>
end tell
Theoretically, there can be processes other than application processes. The
System Events 1.2 beta Processes Suite lists, in addition to 'application
process', 'desk accessory process'. The latter is presumably a legacy class
so scripts written for the classic Mac OS will still run on X. By limiting
the returned list to application processes, you theoretically reduce the
size of the list you have to loop through. So if, when you say, "that's Bill
for you," you're suggesting that Bill tends to be overzealous and picky
about theoretical details, you're right.
If, instead, you mean to suggest that Bill is stuck in the past, I
vehemently deny it on this, my 60th birthday. :-)
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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.