如何告诉Finder在AppleScript中选择/显示多个文件
使用以下代码:如何告诉Finder在AppleScript中选择/显示多个文件,applescript,finder,Applescript,Finder,使用以下代码: tell application "Finder" to reveal every item of theFiles 当文件包含单个文件时有效,但当文件包含多个文件时,我得到: error "Finder got an error: AppleEvent handler failed." number -10000 我做错了什么?我只想突出显示Finder中的文件列表。这似乎有效: tell application "Finder" to reveal theFiles 我
tell application "Finder" to reveal every item of theFiles
当文件包含单个文件时有效,但当文件包含多个文件时,我得到:
error "Finder got an error: AppleEvent handler failed." number -10000
我做错了什么?我只想突出显示Finder中的文件列表。这似乎有效:
tell application "Finder" to reveal theFiles
我正在看的一个例子显示“…揭示…的每一项”。我不确定它们是否有错误或AS有什么变化。这似乎很好
tell application "Finder"
set theFiles to entire contents of folder of (choose folder)
reveal every item of theFiles
end tell
这些文件是在哪里定义的?它们从posix路径开始,并转换为别名。我可以看看生成别名的代码吗。“文件夹的全部内容”是否返回别名列表?@Jeremy Cantrell有帮助吗?