如何使用apple脚本从对话框面板中选择文件



如何使用apple脚本从对话框面板中选择文件?

当我编写激活应用程序的脚本时,它需要从弹出对话框面板中选择要打开的文件。

那么,这个剧本怎么写呢?

如果我理解得对,你的意思是这样的:

set theFile to choose file
tell application "" --enter the application you want to activate and open your file here
activate
open theFile
end tell

最新更新