如何在与AppleScript代码相同的文件夹中打开文件?沿着这些方向的东西?
tell application "QuickTime Player"
activate
open "file.avi"
end tell
Run Code Online (Sandbox Code Playgroud)
(这不起作用).谢谢!
tell application "Finder"
open file "somefile.txt" of folder of (file (path to me))
end tell
Run Code Online (Sandbox Code Playgroud)
(仅在您保存脚本后才有效 - 否则"路径给我"会转到脚本编辑器)
| 归档时间: |
|
| 查看次数: |
4631 次 |
| 最近记录: |