Help, how to make Finder to refresh custom icon programmatically

Hi
I have two file both are same name, e.g. 1.rtf, but with different custom icon.
When I copied the first 1.rtf to an USB drive, the custom icon was displayed correctly.
However, when copied the second file to the USB drive to replace the first file, Finder still showed the custom icon of the first file.
How can I solve this issue and how can I make Finder to refresh the custom icon programmatically.
Thanks

Hi KT, thanks your reply & help
but result is same. The following is my experiment
STEP 1: copy 1.rtf to USB drive, the result is OK.
STEP 2: copy another 1.rtf to USB drive, Finder still showing the 1st file icon and a little bit blurred
STEP 3: copy 3rd file without custom icon, the result is OK
STEP 4: using following code to set its custom icon, the result is still show the custom icon of the 1st file
[[NSWorkspace sharedWorkspace] setIcon:image forFile:[filePath stringValue]  options:nil];
It seems that Finder will has some cache to store file's custom icon. If use "Force Quit" to relaunch Finder, it become correct but how can I use program code to refresh it without "Force Quit"?

Similar Messages

  • How do make Finder to refresh file info so that dimensions are up-to-date?

    When I have edited photos and go back to the folder in Finder, the file dimensions are not up-to-date for files that I have cropped.
    What I am looking for is the equivalent of F5 in Windows, which causes a screen refresh, so that I can see which files I have forgotten to re-size after cropping.
    I think Finder does eventually get the info right but the user has no control over when this happens.

    I don't know if I was very clear.  I want the users to fill out a form and click a button when they are done.   Then I want the result of clicking the button to be for the form to print to Adobe PDF first followed by emailing to me.  Right now the way I set the button up (below), I receive the actual form via email. 
    "Actions" tab,
    "Mouse up,
        Execute a menu item
            File>Save as>PDF...
        Submit a form"
    I want a non editable printed/ refried version AKA "print to Adobe PDF" on the menu items sent to me instead of the actual form.  I have searched all over but can't find if this is possible.

  • How to make Finder NOT to show files from a specific folder in "All My Files"?

    Hello!
    Can someone please advice how to make finder NOT to show files from a specific folder in "All My Files"? See the attach - I recently installed Civilization 5 from Steam and now I have a lot of unneeded files (*.log and *.ini) shown in  All My Files colder in Finder.
    I don't want to see them. Any advise?

    Using "All my Files" was very handy before all this rubbish popped up. =(

  • How to make Finder open automatically...?

    How to make Finder open automatically when I insert external drive?

    Make sure the Finder preferences are set to display hard drives:
    OT

  • Please help-how can I find accents on the keyboard when typing in French?

    Please help.How can I find accents on the keyboard when typing in french?Thanks

    You can also open the Keyboard Viewer & hold Option key & Shift+Option to see...
    Option key...
    Shift+Option or alt key...

  • How can I see the "refresh & stop icons" in FF 4 beta 10

    I am not that familar with firefox 4, but I can't seem to find the refresh page icon or the stop "open page" icon.
    There seems to be a general issue with access to what is and is not available in ff4 b-10?

    The stop/go/reload icons have been combined into one icon, and is on the right hand edge of the location bar. When you type an address it becomes the go button, when a site is loading it becomes the stop button, at other time it is the reload button. If you prefer separate buttons, right-click on a toolbar and choose Customize, this will temporarily separate the buttons, you can then drag and drop them elsewhere on the toolbar to create separate buttons.

  • Please help : How to make the anomalistic table just like below?

    Hi all,
    How to make the anomalistic table just like below? Anyone can give the way detail or thoughtway ?
    http://61.132.17.188/webber/table.gif

    This is just a suggestion.
    If you put your "JTable" in a "JScrollPane", then you can add any "java.awt.Component" to the corner of the "JScrollPane" -- using the "setCorner()" method (of "JScrollPane").
    I would suggest making a custon "JPanel" and overriding its "paintComponent()" method to draw a diagonal line (and the required text) on it.
    You can find out more about how to do this from the links I provided in my first reply.
    Hope this helps.
    Good Luck,
    Avi.

  • [HELP] How can i find my email registed

    i forget my email address and password registerd in skype
    how can i find email address??
    PLZ HELP ME

    Try looking in your User folder.
    Either hold down the option key while using the Finder “Go To Folder” command and select your user Library in your home folder or use the Finder “Go To Folder” command and enter ~/Library/Mail/V2
    If you prefer to make your User library permanently visible, use the Terminal command found below.
    Show User Library
    You might want to bookmark the command. I have to use it again after every update. I have also been informed that if you drag the user library to Finder it will remain visible.

  • Help: how to make photo enlargements?

    hi there, i'm am currently constucting a website using iweb. i have managed to create a photo page with all the thumbnails i need.
    can anyone tell me how to make it so when someone clicks on a particular thumbnail and enlargement or the actual size of the photo opens up in a separate window as you find in regular galleries?
    also, is this an effective method, or does it take up a lot more memory when uploading the site, or would it just be better to have larger thumbnails that are more visable?
    any help is appreciated, thanks!
    MacBook2,1   Mac OS X (10.4.8)  

    This should be already happening if you are using a photo page template.

  • How to make Finder automatically go to the foremost open window?

    I hope I'm explaining this clearly.
    Suddenly, when I click on the Finder from the Dock, it does not go to the last open window. I have to go to the Windows menu and select it, or click and wait on the Finder icon in the dock for it to open. I usually have a lot of apps open so when I go to Finder it's to do some file management - and the extra step of having to bring the last open window to the forefront is annoying me!
    Does anyone know how to make the Finder automatically come to the forefront (with the windows) from click in the Dock? I swear my mac always did that before but now it's stopped!

    can anyone help me here?

  • How to make a field in custom screen as display field in screen exit

    Hi ,
    I have created a screen exit for CO02 with a field for item text in header level as input field , when value is given and save button is cliked it gets updated in database but the problem is same field shows as input field in CO03 ( display mode ) .
    Code which i have used .
    in PBO
    if sy-tcode = 'CO03'.
    loop at screen .
    if screen-name cs 'SUBSCREEN' or screen-name cs 'RESB-POTX1'.
    ( subscreen - screen name given in screen editor and   resb-potx1 field name given in screen editor )
    SCREEN-INPUT = '0'.
    modify screen.
    endif.
    endloop.
    endif.
    and even i tried in PAI too .....
    if sy-tcode = 'CO01' or sy-tcode = 'CO02'.
    update resb set POTX1 = RESB-POTX1
    where aufnr = i_aufnr.
    elseif sy-tcode = 'CO03'.
    *oop at screen .
    *f screen-name cs 'SUBSCREEN' or screen-name cs 'RESBD-SORTF'.
    SCREEN-INPUT = '0'.
    modify screen.
    endif.
    endloop.
    endif.
    but itshows as input field only ........how to make that custom field as display field in CO03

    HI Andy,
    Try this out.
    FIrst check the sy-dynnr, if it is same as your custom screen number
    in PBO of your custom screen
    if sy-dynnr = 'YOUR_NUMBER' and sy-tcode = 'CS03'.
    loop at screen
    if screen-name = 'YOUR_SCREEN_NAME'
    screen-input = 0.
    modify screen
    endif
    endloop.
    endif.
    if it wont work they try using Tcode SHD0
    Hope this will serve your purpose.
    Regards
    Ramchander Rao.K

  • How to make Finder to launch newer verstion of application when user opens file

    I have 2 versions of the same program. Only difference in Info.plist of that bundles is CFBundleVersion field. How can I make Finder to launch newer version, when user opens file assosiated with this application (user has both versions)

    This is not something I know about, but I did find the following in the  Launch Services Programming Guide:
    I'd suggest reposting your question in the Developer's forum here.
    https://discussions.apple.com/community/developer_forums

  • How to make the display of custom column names in UWL(not bother abt values

    Hi all
    i want to make the display of custom column names in UWL ( for example GP)
    i dont want or not looking about values for those custom columns . i know that thru custom connector we can achieve to retrieve the values for those custom columns. but currently i am looking only just to display the custom column names( for example GP custom column names, just i want to display the name of the columns ) in UWL .
    Thanks
    Sunil

    Hello Prashant,
    You can add the control to your custom pagelayout, the following article has an example:
    http://spandps.com/2012/02/22/showing-the-audience-target-field-in-an-editmodepanel-sharepoint-sp2010-in-projectserver-ps2010/
    Btw, the SPFieldTargetToControl has a required property:
    http://msdn.microsoft.com/en-us/library/microsoft.office.server.webcontrols.fieldtypes.spfieldtargettocontrol.required(v=office.14).aspx
    - Dennis | Netherlands | Blog |
    Twitter

  • Help:How to make static text in JTextField??

    How to make a text to be displayed initially on a JTextField, yet we can not change the text (so the text
    is static)?
    The other question:
    How to make an input mask so that a JTextField
    has input pattern of XXX.XXX.XXX.XXX
    (which is the mask of IP Address) ??
    What I know that limiting input in JTextField can be done
    by extending PlainDocument....what about the cases above??
    Please reply if you know.
    Thanks a lot,
    Ted.

    For the first question, just call setEditable(false).

  • Getting Avahi devices to show up in Finder with a customized icon

    We have a device broadcasting out its model name "DeviceX" on the network:
    <?xml version="1.0" standalone='no'?><!---nxml--->
    <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
    <service-group>
    <name replace-wildcards="yes">%h</name>
    <service>
    <type>afpovertcp.tcp</type>
    <port>548</port>
    </service>
    <service>
    <type>device-info.tcp</type>
    <port>0</port>
    <txt-record>model=DeviceX</txt-record>
    </service>
    </service-group>
    According to this thread http://forums.macrumors.com/showthread.php?t=458047, on my Snow Leopard Mac I've copied our DeviceX icon .icns file into /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources . And then I'm supposed to add an entry into /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist to map between the DeviceX model and this icon file so this custom icon will show up for our device in Finder. But there aren't any details for how to modify Info.plist to do this. Any help would be appreciated. Thanks!
    Mark

    Thank you VERY much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Got it to work.  However, my TOC will not update with the new building blocks.
    Have played and played with it.  Any suggestions?
    Thank you!!!!!!!!!!!!!!!!

Maybe you are looking for

  • SAP ECC6.0 and PI 7.0 remote logon problem in windows vista OS

    hi, I got remote connection for sap pi 7.0 and my OS is Windows Vista. i am getting error like this, when i click on sap Xi 7.0 and SAP ECC6.0 on sap logon pad, i am getting the error like this, sap gui 710 maximum number of connection handles reache

  • 1941W configuration help needed

    Our Deployment Scenario:- 1941W Gigabit Ethernet 0/0 is connected to the PPOE connection of the ISP. Gigabit Ethernet 0/1 is connected to the wired LAN I have created 2 wireless radio Cisco_Kamran_BGN which is operating at 2.4 Ghz Devices and Cisco_K

  • ClassCastException error in Controller object

    HI folks, I'm getting this ClassCastException error in the controller I'm extending. Basically, I'm trying to access the row values of a table which is created as OATableLayout and OARowLayout. My repeated attempts to solve this has failed. I wonder

  • OCE WPD driver installation hangs on client workstation

    Hi, We are having issues with a specific driver from OCE. The driver is WPD for an OCE PlotWave 300 on Win7x64. We cannot use another driver since the clients need it for AutoCAD documents. I have been able to add the driver to the driver store witho

  • How could i synch my Old iPad with my New iPad without a pc?

    I'm Unsinn iCloud to make Backups. My Old iPad is defekt, so I bought a New One. Now i like to synch my iCloud with the New One, but i hav'nt found an Version without a pc :-( Thanks !