选择/显示多个文件使用下面的代码:如何判断搜索器的AppleScript
tell application "Finder" to reveal every item of theFiles
作品时theFiles包含一个文件,但是当它包含多个文件,我得到:
error "Finder got an error: AppleEvent handler failed." number -10000
我做错了什么?我只想突出显示Finder中的文件列表。
选择/显示多个文件使用下面的代码:如何判断搜索器的AppleScript
tell application "Finder" to reveal every item of theFiles
作品时theFiles包含一个文件,但是当它包含多个文件,我得到:
error "Finder got an error: AppleEvent handler failed." number -10000
我做错了什么?我只想突出显示Finder中的文件列表。
这似乎工作:
tell application "Finder" to reveal theFiles
我一直在寻找展示了一个例子“...揭示的每一个项目......”。我不确定他们是否出现错误或者是因为AS而改变了。
哪里thefiles被定义? – mcgrailm 2010-06-25 12:55:10
它们作为posix路径启动并转换为别名。 – 2010-06-25 14:58:25
我可以看到使别名 – mcgrailm 2010-06-25 15:13:42