• 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: Activating applications from a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Getting Internet Explorer 5.2 window name
  • Next by Date: Get screen resolution (OS X)
  • Previous by thread: Re: Activating applications from a list
  • Next by thread: Re: Activating applications from a list
  • Index(es):
    • Date
    • Thread