Changing file extensions

Discussion in 'OS X Mavericks (10.9)' started by umzyi, Mar 19, 2014.

  1. umzyi macrumors regular

    umzyi

    Joined:
    Apr 21, 2011
    Location:
    UK
    #1
    Hi everyone :)

    Every time I change a file extension of a file, it doesn't update until i restart the system.

    For example, if i change the file extensions from quicktime to vlc player, they icon doesn't update but when i click on it, it does open in vlc player but the icon won't update until i restart the system. Same happens while changing from word to pages extension. Is there a way to force update the change of icons or is this a bug?

    Any advice on this please? If this is a bug, I'll report to Apple.
     
  2. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #2
    Have you tried just restarting the Finder (command option escape to bring up dialog)? That usually fixes such cosmetic problems for me, and it's much faster than a total restart.
     
  3. umzyi thread starter macrumors regular

    umzyi

    Joined:
    Apr 21, 2011
    Location:
    UK
    #3
    tried that already. doesn't change anything unless i restart. :(
     
  4. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #4
    Possibly a Launch Services Database problem. When was the last time you cleaned it out?

    Here's an AppleScipt for the purpose:
    Code:
    -- Rebuild Launch Services DB
    --BP2013
    --Modified from:
    -- Adam Bell 2013
    -- http://macscripter.net/viewtopic.php?id=40534
    
    say "begin"
    set flushLaunchSvcDB to "/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user"
    do shell script flushLaunchSvcDB
    delay 1
    do shell script "killall Finder"
    say "done"
     
  5. umzyi thread starter macrumors regular

    umzyi

    Joined:
    Apr 21, 2011
    Location:
    UK
    #5
    Thanks for the script.

    I have run the script after changing file extensions and I can confirm that it works. I changes the icons straight away after running the script.

    However, I have noticed that you have to run that script every time after changing the file extension.

    Does that means that there is actually a bug which is not flushing the services after changing file extensions?

    Thanks
     
  6. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #6
    That's odd. I only run the script every month or so, when I'm offered 5 different copies of Preview in the "Open With" submenu, yet my icons usually change immediately after I change an extension. You've got somethiong else going on as well, but I don't know what it is. At least you've got a partial fix now.
     

Share This Page