• 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: Doug McNutt <email@hidden>
  • Date: Tue, 24 Dec 2002 13:39:55 -0700

This is the result. In my small way I find it useful as a partial replacement for the old process menu. Thanks to those who helped. This is perhaps the ONLY place to learn AppleScript. The filtering can be improved but it's not trivial. I think I shall never understand which coertions are automatic and which have to be handled manually.

tell application "Finder"
set opened_apps to name of every process whose file type is "APPL"
set selected_app to choose from list opened_apps with empty selection allowed
end tell
if selected_app is not false and selected_app is not {} then
set theApp to selected_app as text
tell application theApp
activate
end tell
end if

--
--> If you are presented a number as a percentage, and you do not clearly understand the numerator and the denominator involved, you are surely being lied to. <--
_______________________________________________
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.

  • Follow-Ups:
    • Re: Activating applications from a list
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Running shell scripts from a droplet
  • Next by Date: Re: Entourage: Move Work Address to Home Address
  • Previous by thread: Re: Activating applications from a list
  • Next by thread: Re: Activating applications from a list
  • Index(es):
    • Date
    • Thread