小编jim*_*mmy的帖子

从os x mavericks中的applescript设置桌面照片(10.9)

我正在尝试使用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)

我知道他们改变了支持多个显示器的方式,但我不确定可能会破坏这个.

macos applescript

5
推荐指数
1
解决办法
3401
查看次数

标签 统计

applescript ×1

macos ×1