我正在尝试使用applescript在OS X中设置桌面图片.这段代码在10.6-10.8中有效,但在小牛队(10.9)中被打破.
tell application "System Events"
tell current desktop
set picture to POSIX file "/development/desk/x.jpg"
end tell
end tell
Run Code Online (Sandbox Code Playgroud)
我知道他们改变了支持多个显示器的方式,但我不确定可能会破坏这个.