我想做一个简单的AppleScript脚本,打开一个App Chooser并获取所选的应用程序。
choose application with prompt "Choose an App:"
所以它打开一个窗口,我可以选择一个应用程序。在下一行我做:
activate application "Safari"
如何编写它以打开SELECTED App?
喜欢activate application SelectedApp
提前致谢:)
答案 0 :(得分:1)
你走了:
set theApp to choose application with prompt "Choose an App:"
tell theApp
activate
end tell