简体   繁体   中英

Refresh desktop icon of mac os x

I want to refresh desktop icon of my application without relaunch finder or dock. my motive is refresh desktop icon without realize refresh to user

You can try

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

Refresh apple script does not work on 10.8 and above. Only way to refresh desktop is to restart finder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM