0

I want to do a simple AppleScript Script, that opens an App Chooser and gets the selected App.

choose application with prompt "Choose an App:"

So it opens a Window where I can choose an App. In the next line I do:

activate application "Safari"

How can I write it so it opens the SELECTED App?

like activate application SelectedApp

Thanks in advance :)

4

1 に答える 1

1

どうぞ:

set theApp to choose application with prompt "Choose an App:"
tell theApp
    activate
end tell
于 2013-06-01T21:58:45.530 に答える