如何在与AppleScript代码相同的文件夹中打开文件?遵循这些原则?
tell application "QuickTime Player"
activate
open "file.avi"
end tell
(无效)。
谢谢!
最佳答案
tell application "Finder"
open file "somefile.txt" of folder of (file (path to me))
end tell
(仅在保存脚本后才能使用-否则“通往我的路径”将进入脚本编辑器)
关于Applescript从当前文件夹启动文件?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7003699/