Re: Activating applications from a list
Re: Activating applications from a list
- Subject: Re: Activating applications from a list
- From: Kai Edwards <email@hidden>
- Date: Sun, 15 Dec 2002 14:03:26 +0000
on Sat, 14 Dec 2002 17:19:36 -0700, Doug McNutt <email@hidden>
wrote:
>
I would appreciate suggestions for making this script work.
You may also want to consider filtering out certain processes, Doug.
For example, something like this works for me:
================================================
tell application "Finder" to set p to [NO BREAK]
(processes whose file type is not "appe")'s name -- [1]
if p is not {} then set a to [NO BREAK]
(choose from list p with empty selection allowed)
if a is not {} and a is not false then [NO BREAK]
tell application (a's item 1) to activate
================================================
[1] Alternatively, specify only required file types, something like this:
================================================
tell application "Finder" to set p to [NO BREAK]
(processes whose file type is in {"APPL", "cdev", "APPC"})'s name
================================================
Unfortunately, I believe that filtering may not work correctly with every
OS/AS version.
Kai
------------------------------------------------
OT personal note:
Jester, I've stupidly lost your address. Could you kindly resend your last
message?
_______________________________________________
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.