刷新mac os x的桌面图标

时间:2016-09-21 07:40:19

标签: objective-c macos cocoa desktop-application

我想刷新我的应用程序的桌面图标,而无需重新启动查找程序或停靠。我的动机是刷新桌面图标而没有实现刷新用户

1 个答案:

答案 0 :(得分:0)

你可以尝试

tell application "Finder"
    tell desktop
        update every item with necessity
    end tell
end tell

刷新苹果脚本在10.8及更高版本上不起作用。刷新桌面的唯一方法是重启finder。

相关问题