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