【问题标题】:Refresh desktop icon of mac os xmac os x 刷新桌面图标
【发布时间】:2016-09-21 07:40:19
【问题描述】:

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

【问题讨论】:

    标签: objective-c macos cocoa desktop-application


    【解决方案1】:

    你可以试试

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

    刷新苹果脚本不适用于 10.8 及更高版本。刷新桌面的唯一方法是重新启动 finder。

    【讨论】:

    • 它刷新查找器,我想要刷新桌面图标而不实现刷新的东西,当查找器刷新时,用户可以清楚地看到它
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-02
    • 1970-01-01
    • 1970-01-01
    • 2023-04-06
    相关资源
    最近更新 更多