当我使用Snow Leopard时,我在创建Applescripts时多次使用以下模式:
on run args
set filePath to POSIX file (item 1 of args) as alias
...
end run
Run Code Online (Sandbox Code Playgroud)
升级到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
Run Code Online (Sandbox Code Playgroud)
任何人都可以启发错误的含义吗?