Re: Activating applications from a list
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.