【发布时间】:2011-08-16 00:07:19
【问题描述】:
我正在尝试从命令行或 Python 程序创建 Finder Alias。我搜索了网络[1][2][3] 并找到了这个applescript:
$ osascript -e 'tell application "Finder" to make new alias at POSIX file "/Users/vy32/cyber.txt" to POSIX file "/Users/vy32/a/deeper/directory/cyber.txt"'
不幸的是,它给了我这个错误:
29:133: execution error: Finder got an error: AppleEvent handler failed. (-10000)
[1]http://hayne.net/MacDev/Bash/make_alias
[2]https://discussions.apple.com/thread/1041148?start=0&tstart=0
[3]http://hintsforums.macworld.com/showthread.php?t=27642
我做错了什么?
【问题讨论】:
-
出于兴趣,是否打开了“启用辅助设备访问”? hints.macworld.com/article.php?story=20060203225241914
-
我想你切换了
at和to属性。
标签: macos applescript