Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 刷新mac os x的桌面图标_Objective C_Macos_Cocoa_Desktop Application - Fatal编程技术网

Objective c 刷新mac os x的桌面图标

Objective c 刷新mac os x的桌面图标,objective-c,macos,cocoa,desktop-application,Objective C,Macos,Cocoa,Desktop Application,我想在不重新启动finder或dock的情况下刷新应用程序的桌面图标。我的动机是刷新桌面图标而不实现对用户的刷新您可以尝试 tell application "Finder" tell desktop update every item with necessity end tell end tell 刷新apple脚本在10.8及以上版本上不起作用。刷新桌面的唯一方法是重新启动finder 你可以试试 tell application "Finder"

我想在不重新启动finder或dock的情况下刷新应用程序的桌面图标。我的动机是刷新桌面图标而不实现对用户的刷新

您可以尝试

tell application "Finder"
    tell desktop
        update every item with necessity
    end tell
end tell
刷新apple脚本在10.8及以上版本上不起作用。刷新桌面的唯一方法是重新启动finder

你可以试试

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

刷新apple脚本在10.8及以上版本上不起作用。刷新桌面的唯一方法是重新启动finder

它刷新finder,我想要一些刷新桌面图标而不实现刷新的东西,当finder刷新时,用户可以清楚地看到它刷新finder,我想要一些刷新桌面图标而不实现刷新的东西,当finder刷新时,用户可以清楚地看到它