如何打开与 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
(仅在保存脚本后才有效 - 否则“我的路径”将转到脚本编辑器)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)