在使用 Snow Leopard 时,我在创建 Applescripts 时多次使用以下模式:
on run args
set filePath to POSIX file (item 1 of args) as alias
...
end run
升级到 Mountain Lion 后,上面的脚本似乎会产生警告,不过:
2012-08-10 15:12:12.305 osascript[54131:303]
CFURLGetFSRef was passed this URL which has no scheme
(the URL may not work with other CFURL routines): path/to/input/file.ext
任何人都可以启发错误的含义吗?