• 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: Paul Berkowitz <email@hidden>
  • Date: Tue, 24 Dec 2002 12:53:29 -0800

On 12/24/02 12:39 PM, "Doug McNutt" <email@hidden> wrote:

> 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"

A number of OS X apps have no file type. This will miss those. How about:

set opened_apps to name of every application process

Does that miss other apps, or include any you don't want to include?

> 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


--
Paul Berkowitz
_______________________________________________
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.

References: 
 >Re: Activating applications from a list (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Entourage: Move Work Address to Home Address
  • Next by Date: Scripting makes AppleWorks 6 crash
  • Previous by thread: Re: Activating applications from a list
  • Next by thread: Re: Stuck trying to use creatorid to control IE with OS 8.1
  • Index(es):
    • Date
    • Thread