Applescript:同时使用“两个”;“关于开放”;及;选择文件";

Applescript:同时使用“两个”;“关于开放”;及;选择文件";,applescript,Applescript,有没有一种方法可以在我的脚本中同时使用“打开”和“选择文件”,而不必重复下面的示例中的操作代码 on open myMovie tell application "Quicktime Player 7" open myMovie end tell end open set myMovie to choose file tell application "Quicktime Player 7" open myMovie end tell 另一种方

有没有一种方法可以在我的脚本中同时使用“打开”和“选择文件”,而不必重复下面的示例中的操作代码

on open myMovie
    tell application "Quicktime Player 7"
    open myMovie
    end tell
end open

set myMovie to choose file
    tell application "Quicktime Player 7"
    open myMovie
    end tell

另一种方法是从运行处理程序调用脚本的打开处理程序:

on open theFiles
    tell application "QuickTime Player 7" to open theFiles
end open

tell me to open (choose file)

另一种方法是从运行处理程序调用脚本的打开处理程序:

on open theFiles
    tell application "QuickTime Player 7" to open theFiles
end open

tell me to open (choose file)

感谢您的回复,但是小程序的一些用户希望能够打开它并选择一个文件,而不是将文件拖到上面。所以我需要这两种行为。谢谢你的回复,但是小程序的一些用户希望能够打开它并选择一个文件,而不是将文件拖到上面。所以我需要两种行为。