Applescript从当前文件夹启动文件?

Rio*_*Rio 5 applescript

如何在与AppleScript代码相同的文件夹中打开文件?沿着这些方向的东西?

tell application "QuickTime Player"
    activate
    open "file.avi"
end tell
Run Code Online (Sandbox Code Playgroud)

(这不起作用).谢谢!

Fla*_*ino 9

tell application "Finder"
    open file "somefile.txt" of folder of (file (path to me))
end tell
Run Code Online (Sandbox Code Playgroud)

(仅在您保存脚本后才有效 - 否则"路径给我"会转到脚本编辑器)