【发布时间】:2016-05-14 21:14:13
【问题描述】:
网站上有一个关于通过脚本获取文件信息的问题,regulus6633 很好地回答了。提供的解决方案在文件夹上为我工作,但我无法让它在应用程序文件上类似地工作。
set aFile to (POSIX file "/Applications/Google Chrome.app") as text
tell application "Finder" to open information window of application aFile
据我所知,路径是正确的,但它不断返回语法错误:
“Finder 出错:无法获取应用程序“Macintosh HD:Applications:Google Chrome.app”。
(我是设计师,不是程序员,如果答案很明显,请原谅!)
【问题讨论】:
-
你能发布一个链接到对你有用的问题和答案吗?你的问题不太清楚...
标签: macos applescript finder