Icon images all wrong

Hi,
I changed my default application to VLC to open up music rather than iTunes.
The problem is that all my songs still have the iTunes icon, yet open in VLC
when I click on them. If I drag the song onto the desktop and then back into
the folder, the icon changes to the VLC icon. This is slow for a lot of songs
grouped in a lot of folders. Is there any quicker way?
I tried killall Finder, but that did not do anything.
Thank you.

Quite a nit-picker aren't you?  
Have you already logged out and back in since your default-program change?   (or restarted the computer)

Similar Messages

  • Automatically generate thumbnail image icons for all pix and vids...

    hello,
    i've searched around on the forums a bit about making the icons of my pics and vids actual thumbnail images made from the picture or the first frame of the video.
    a lot of responses are mistaking this question for "how do i put the window into icon view?" this infact is not the answer that i suspect a lot of windows converts are looking for.
    windows automatically makes such icons for all pix and vids if you put the window into icon view.
    i notice in at cmd-j or in the window preferences there is a checkbox for "show image preview" or something like that, but despite this being checked, my pix and vids do not show an image preview. i'm gathering that this information does not exist in the resource fork which mac uses to organize photos.
    is there any script or addition i can make to my system to automatically generate icons for pics and vids of all types? how to i suggest to mac that they add this functionality into the next release?
    thanks for your time,
    max

    The Finder will create icons "on the fly" for nearly all graphic type files (jpegs, tiff, psd, and so on) and display them in both icon view and column view, provided the appropriate view preference has been set. Movies will just have the generic movie icon in icon view, and have a "live" preview in column view, ie you can play them in preview mode. If you want to add a permanent thumbnail which will display in all views, and whether or not the preference has been set for a particular folder in Finder, you'll need to add a thumbnail to the file. There are lots of ways to do this for static pictures, even rather clumsy ways to do it for movies, but the easiest thing is to get CocoThumbX:
    http://www.stalkingwolf.net/software/cocothumbx/
    Drag and drop both static pictures and movie files onto the application and a permanent thumbnail is created. Indeed, it will create cool thumbs even for things like PDF and HTML files (code or rendered display). For movies to get a thumb, they must be in a format that QuickTime can read. It has a set of preferences for just how you want the thumb determined (eg random or at a certain time), and you can drop batches of movies or even folders to have it assign thumbs to multiple movies at the same time. It is a way cool piece of shareware.
    Francine
    Francine
    Schwieder

  • Setting Icon Image in a JWindow

    Hi Javaheads,
    Is there a way to replace the coffeecup icon in the JWindow with a custom image? I searched the forums, did not find anything! I'm using jdk1.3 btw.
    Kamran

    But anyway, if you are creating a JWindow instance,
    then how are you getting any icon at all? You
    shouldn't get any title bar, window controls, etc.
    with a JWindow. With a JWindow, all of the drawing of
    the window is up to you.LOL ... I have been looking at the wrong class! I was trying to set the icon in my SplashWindow (JWindow), while looking at the HelpWindow (JInternalFrame).
    Thanks!
    Kamran :-)

  • Dreamweaver CSS Mac writes image links wrong... img src="/www/images/asian_sales_office.jpg"

    Dreamweaver CSS Mac writes image links wrong... <img src="/www/images/asian_sales_office.jpg" width="x" height="x" alt="x"> Took me a bit to find this, now back to hand coding all image links and also checking other code. Any fixes?

    That looks to me like you may have your site definition set up incorrectly and you appear to be using "Site Root Relative" vs "Document Relative"
    Go to Site > Manage Sites > click the  site you are working on > Click the Edit icon > Advanced Settings > Links relative to: should be set as Document, unless you have a very specific reason for choosing Site Root there
    If your server root folder is called www, you'll need to remove that folder from your site root. You are only transferring files from root to root, so the name of your local root folder is not important (the files inside it go to the server root). It is important not to accidentally have a duplicate of the server root folder inside your local root though which would accidentally nest your files within another folder when transferring to the server.

  • How to Set icon/image programatically in ADF before page loads

    This is my UI:
    Depends on the condition i want to set icon/image programatically in my java code.Before page load im calling this method.
    So i couldnt take binding value also,it throws null pointer exception.Then i tried setting icon/image programatically.
    <af:commandImageLink text="settings" icon="#{bean.iconsettings}" binding="#{bean.bind}"> </af:commandImageLink>
    My bean:
    private RichIcon iconsettings;(its getters and setters)
    private void method(){                         // method
    if(cond){
    this.iconsettings="/images/20.jpg";   //trying to set icon in a string.but it throws me error that cannot set RichIcon to string.
    else
    this.iconsettings="/images/19.jpg";
    Could any one tell me how can i set icon/image in java code.Before page loads im performing all above said tasks.Please help.

    Well, you set the icon property to a bean method, which you have done. The bean method however need to have the signature
    public String getIconsetting()
    // your code returning hte path to the icon
    if(cond){
         return ="/images/20.jpg";   //trying to set icon in a string.but it throws me error that cannot set RichIcon to string.
    else {
         return ="/images/19.jpg";
    The bindproperty is not needed, remove it and remove the RichIcon Iconsettings too´as it's not needed to and is the wrong type anyway.
    Timo

  • How to make an icon image using Photoshop

    I found out how to do this recently so I decided that I wanted to make a tut for those who don't know how to make an icon image. This icon image is for the libraries tab on your computer. Under the libararies tab there is Music, Pictures, Documents, and Photos
    First you will need the ICO (Icon image format) Format extension for photoshop which can be downloaded here:
    http://www.telegraphics.com.au/svn/icoformat/trunk/dist/README.html
    The download link and tutorial on how to install it is all in the link above.
    Once you have that all set you can now launch photoshop to create your icon image. Once you have launched it, create a new document with the size as in the image below.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/256x256_zpsbf3dcf8e.png~original[/IMG]
    Create the image you want. I used a simple one by using the custom shape tool by pressing "U" on your keyboard and with the
    basic blending options.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/IconImage_zpsd788c709.png~original[/IMG]
    The reason why the image is pixelated is because it is an icon image. Since the image is only 256x256 pixels when you zoom in on it that will get you the pixely result. The reason why I zoomed  in is so you can see it. But don't worry this is no the end result. Just continue reading and you will see.
    So once you have created the icon go ahead and press
    file>save as>(under format choose the ICO)>and choose the name that you want to name it. And save it in your C: drive. You will see why to save it in your C: drive in a sec.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/SampleicoPic_zpsd252bfba.png~original[/IMG]
    So now that you have created the icon and saved it now you can create the new library.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/NewLibrary_zps8ca703b2.png~original[/IMG]
    Name the library whatever you want I named it "Sample" for tutorial purposes. Notice how it gives you a default boring icon image for your library.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Sample1_zpsb5472840.png~original[/IMG]
    So now once you have created and named your library now it is time to get the icon image into place.
    Go to computer/c: Drive/users/YOU/ And now once you have reached this area you will need to access a hidden folder named "appdata" to do so press "Alt" then a menu bar will show. Click
    tools>folder options>and view. Find the option to view hidden folders then press apply then ok. Now we shall continue so AppData>Roaming>Microsoft>Windows>Libraries
    Now you should see all the libraries including the one you just created.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/showhiddenfolder_zpsad4a3c94.png~orig inal[/IMG]
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Libraries_zpsf6243bc0.png~original[/IMG]
    Once you have reached your destination then open a new text document with notepad and drag the library you just created in notepad. The result should look like this:
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Notepad_zps251a86f0.png~original[/IMG]
    once you have reached this point click at the end of the second to last line down then press enter and enter in this information
    <iconReference>c:\"NAME OF ICO FILE YOU CREATED IN PS".ico</iconReference>
    Example:
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/iconreference_zps1c1a3eca.png~origina l[/IMG]
    Once you have entered that information go to file>save and the icon image should appear on the library you created.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Finished_zps267f893a.png~original[/IMG]
    Now you are officially finished. Go and spread the news and joy. Bye for now
    -Dusty951512

    It is Windows only because all those screen shots are exclusively Windows, the file structure and paths do not resemble those of the Mac in the least.  As a Mac user, there's nothing I could take from your tutorial.  Sorry, 
    No drives named with letters like C: on the Mac, for instance.  No backward slashes either, ever.  No such paths either.  No "Notepad" on the Mac, we use TextEdit; but such a text editor is not remotely needed on the Mac to make and/or edit icons.  Etc.
    Those folders are not even called "Libraries" on the Mac…  Nothing resembling your tutorial at all.
    The icons in the Finder's Sidebar are not customizable at all in recent version of OS X.
    =  =  =
    You can edit any post of yours only until someone replies to it.  At this time your post is not editable by you any longer.

  • How Do I get icons image directory to work in a JAR file?

    Yes, I must admit after going through the tutorial and other stuff I am stiil stumped
    I have an application that uses the jlfgr icons for the toolbar, and it works fine as long as i actually run it from the directory that it is in.
    I would like to put in into a jAr file, and be able to execute it from other places.
    I have a Directory named PhoneBook
    in that are the classes I use
    AddressBook - the main class
    PersonEntry - The 'data class'
    and various other things like FileFilters.....
    inside that directory there are two more:
    images - contains all the icon images
    Data - where the default 'database' entries are stored.
    I use code like this:
         private void fillToolBar( JToolBar bar )
              Dummy = new JButton(new ImageIcon("images/New16.gif"));
              Dummy.setActionCommand("New");
              Dummy.addActionListener(this);
              Dummy.setToolTipText("New");
              bar.add( Dummy );
              // etc etc
    to get all the icons into the toolbar
    I have made a Jar file that has all the classes and all the directorys with the icons in it
    and so the program runs, but does not get the icons for the toolbar, I just get a whole load of 'dud' buttons.....
    AS this is the first time i've ever got the GUI to look right rather than just the code functioning properly
    I'd like to get the whole thing in a working Jar file
    So Could someone show me Step By Step, How I get my classes and images into a Jar file
    so that i can from a different directory go
    java - jar Phone.jar
    and have the GUI come up with all the images, assuming I'm totally thickheaded when it comes to Jar files.?
    I also can't get the images to show up if I merely run the 'program' from another directory than the one it is compiled in
    I can get the program to run, just not access the images with something like
    java -cp blah/blah/blah AddressBook
    {the main class is AddressBook }
    the data directory can be anywhere as I use a JFileChooser to allow the user to open and save desired files.
    I really would appreciate some clear workable help. {though I'm running out of Duke Dollars...}

    What you need is a correct path to the directory
    inside of the jar. This can be accomplished by adding
    a line to your main program like this:
    URL
    url=myProgram.class.getResource("images/New16.gif");
    Dummy = new JButton(new ImageIcon(URL));
    where myProgram.class is the name of the class
    file that contain the main method.
    Hope this helps....
    ;o)
    PS: I don't want your dukes...I got them coming out of
    my ears!
    O.K, that works thank you.
    I put something like:
    for all the 'buttons' in the toolbar
    URL url = null;
    Class ThisClass = this.getClass();
    url=ThisClass.getResource("images/New16.gif");
    Dummy = new JButton(new ImageIcon(url));
    Dummy.setActionCommand("New");
    Dummy.addActionListener(this);
    Dummy.setToolTipText("New Database");
    bar.add( Dummy );
    etc for all the rest of the 'buttons'
    After Reading the API docs on URL's etc I'm still not sure as to why it works, but it does....
    I am able now to place the class files in a jar along with the images and it all works fine
    although now I don't quite follow all my code....................
    I assume that
    url=ThisClass.getResource("images/New16.gif");
    returns some sort of 'relative url ' ???
    Thanks for the help though.

  • How do I remove padlock icon from all my files?

    On one of my drives, every single file has a little padlock icon superimposed over the file icon. I recall when I did a clean install of windows 7 RC over my Vista install, I wasn't getting write access to the drive so I had to take ownership of the drive and mess with the security settings before it started working normally.
    I have to admit, I find the security settings in all versions of NT mystifying... For instance, although my account is in the administrators group, having full access to administrators never seems to work. I always have to add my individual user account and explicitly give it full access.
    In any case, I can't remember exactly what it took, but after messing around with the security settings for a while, I eventually was able to have full access to the drive and have no problems reading/writing/deleting files and folders, but there's the padlock icon still on everything.
    Can anyone explain how to get rid of it, and/or maybe point me to a good, clear, understandable guide on how to properly set NTFS permissions.
    Thanks!

    <form id="aspnetForm" action="edit" enctype="application/x-www-form-urlencoded" method="post">
    <input id="__VIEWSTATE" name="__VIEWSTATE" type="hidden" value="/wEPDwULLTEzNzk0MzkwMDlkZD6SorGRLWx4w+alHb7GRMyulXR+" />
    </form>
    Windows Client TechCenter
    <input id="SearchTextBox" class="TextBoxSearch TextBoxSearchIE7" name="SearchTextBox" type="text" /><input id="SearchButton" class="SearchButton" name="SearchButton"
    src="http://i1.social.microsoft.com/globalresources/Images/trans.gif" type="image" /> 
    Sign out
    United States (English)
    Australia (English)Brasil
    (Português)Česká republika (Čeština)Danmark
    (Dansk)Deutschland (Deutsch)España
    (Español)France (Français)Indonesia
    (Bahasa)Italia (Italiano)Magyarország
    (Magyar)România (Română)Singapore
    (English)Türkiye (Türkçe)Россия
    (Русский)ישראל (עברית)المملكة
    العربية السعودية (العربية)ไทย (ไทย)대한민국
    (한국어)中华人民共和国 (中文)台灣
    (中文)日本 (日本語)香港特別行政區
    (中文)
    ZYBORG
    Resources for IT Professionals
    HomeWindows 7Windows VistaWindows
    XPLibraryForums
    Windows Client TechCenter >
    Windows 7 IT Pro Forums
    > Windows 7 Security
    > How do I remove padlock icon from all my files?
    > a9d3326a-9af4-4d81-9f6e-0df9575b4fea
    <form action="/Forums/en/w7itprosecurity/thread/16474fcf-688b-4eae-88f4-804306bafc0f/a9d3326a-9af4-4d81-9f6e-0df9575b4fea/edit" enctype="application/x-www-form-urlencoded" method="post">
    Edit Message
    <textarea cols="100" rows="20" name="body"><blockquote> <p>Hi,</p> <p>This is a new feature of Windows 7 RC. If a folder's ownership is SYSTEM, the icon would be appears.</p> <p>To
    remove the icon, please change the ownership of the folders. You may refer the following website.</p> <p><a href="http://www.vista4beginners.com/Change-permissions-take-ownership">Change the permissions and take ownership of your
    files and folders&nbsp; Windows Vista for Beginners</a>&nbsp;</p> <p>Important Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft
    does not guarantee the accuracy of this third-party contact information.</p> <hr> Arthur Xie - MSFT</blockquote> <p>You may call this a feature but I call it rediculous. The security and ownership system deployed in win 7 is beyond
    belief and horribly BAD!</p> <p>I have files which have disappeared from view under start / all programs which are clearly on my system. They can be seen by an administrator only account but not by a users acccount which has administrator privs.
    That really makes great since!</p> &nbsp;Returning to Win XP looks like a good option to me. Anyone who changes the ownership of an entire drive is asking for latent problems when various areas within windows needs ownership of SYSTEM or Trustedinstaller
    and others which were overwritten with the change.</textarea>
    <label for="hasCode">Resource.HasCodeLabel</label><input name="hasCode" type="checkbox" value="true" /> <label for="reason">Reason</label><input name="reason" type="text"
    />
    <input title="Submit" type="submit" value="Submit" />
    </form>
    Need Help with Forums? (FAQ)
    © 2011 Microsoft. All rights reserved.
    Terms of Use|Trademarks|Privacy Statement|Contact
    Us
    <script type="text/javascript"></script> <script type="text/javascript"></script> <script type="text/javascript"></script> <noscript></noscript> <noscript></noscript>
    This forum even has bugs! look at this mess.

  • Colors in Photoshop all wrong but OK in other apps. (For example "Whites appear yellow.")

    Q: The colors in Photoshop are all wrong. They have a neon look or are discolored with a blue, red, green or Yellow cast. I look at the same pictures in other applications and they look just fine. How do I fix this?
    A: Recalibrate your monitor using Adobe Gamma (OS9) or the Displays Control in System Preferences (OSX). Photoshop uses your monitor profile to display your images other apps don't. Be sure you start the recalibration using a fresh monitor profile (sRGB or the profile that came with your monitor for example). If you try to recalibrate using the old corrupt profile you will still have a corrupt monitor profile and your color will still be bad. Also, if you are using OS 9 make sure you are using ColorSync 3.0.4. The 3.0.4 patch is available on the Apple web site.
    See also support document 319456, "Colors Are Incorrect (For example White Appears Yellow)" at http://www.adobe.com/support/techdocs/319456.html. The document is for Windows, but it may be useful for Macintosh.
    Here is another link to monitor calibration http://www.gballard.net/psd/colorlooksbad.html

    Thanks. But it looks like in all my frustration, I wasn't  sure  my original call for help had posted, so must have  submitted the same question again.
    But I just had a new thought on the problem. While reviewing a story I received from another website,  I noticed that the photos attached to the article  looked  a lot like  what I described  in my  message. It made me wonder if I have a software problem at all . . . or if it's the screen on my Mac that needs recalibration!
    It only took 2 minutes to find a website that discussed it — with sample screens to help determine if that was what I'm dealing with. Since a screen supposedly showing a mix of numbered, grey boxes looked totally white to me and I could only see the white numbers on a screen that supposedly contained boxes in varying shades of black, I think I might be on the right track. Just not sure, since I had to reach the bottom of the page before spotting the pitch for a product that supposedly will recalibrate  for me. I'm not sure I want to tackle recalibration on my own, but may call the Mac Geniuses at our local mall  and see  if my hunch is right . . .and if so, what they would charge to do it for me.
    BTW, if it sounds like a calibration problem, do you think moving my computer  from one desk top another (just 5 feet away) could have caused it? I'm not sure, since it wasn't on my mind at the time, but I think that's roughly when I first started to notice discrepancies in color.

  • Header Image File - Wrong Aspect Ratio in PDF

    I imported a picture into a form and it looks great in the FormsCentral editor.  But when I export the form, the aspect ratio is all wrong.  The Form Setup is 700 pixels, letter, Portrait.  I don't see many setting options to play with.  See attached screen shots.
    This is what it looks like in the editor - logo looks great.
    This is what it looks like as a PDF - logo aspect ratio is hosed!

    I had a similar problem (and solved it):
    I combined (right click on selected files > "Combine supported files in Acrobat...") .jpg images to a PDF binder using Adobe Acrobat X Pro.
    Image source: http://www.kultpower.de/archiv/heft_powerplay_1992-03
    The result was a PDF with horizontally bloated pages that did not match the aspect ratio of the raw images.
    Why is that so?
    Unlike Foxit PhantomPDF, Adobe Acrobat uses EXIF metadata (ExifImageWidth, ExifImageHeight) stored in the image header instead of the real dimensions of the File (ImageWidth, ImageHeight).
    Windows users can verify EXIF info by using for example the free tools XnView, Exifier or best ExifToolGUI.
    In my case, the image dimensions were 1200x1710 (real actual dimensions) and around 1469x2084 (EXIF metadata).
    Now how can that be - this does not make any sense ?
    Well, obviously, the original file had larger dimensions and was resized without deleting the EXIF dimensions.
    Because Acrobat uses the EXIF info intstead of the actual dimensions, the PDF looks distorted as a result.
    Again, Foxit Phantom uses the actual image dimensions when creating PDFs.
    How to solve the issue:
    In case you have image files with different dimensions, the easiest way to fix this is by selectively deleting EXIF metadata using:
    1) PhotoShop for single files (File > Save for Web & Devices > set “Metadata” to “None”: http://photographylife.com/how-to-delete-exif-data#ixzz2i0wFMNpE
    2) ExifToolGUI (free) for multiple files in a folder: ExifTool direct > Command: -r -Exif:all= ( http://u88.n24.queensu.ca/~bogdan/ )

  • Custom Icon Images for Folders in KM

    Hello Everyody,
                   I have to display folders such as Pesonal Documents, Public documents, Recently used, Favourites etc which are there in the entry point repository in KM. Right now all these folders are being displayed with the default icon image specified. I want to replace these default images with custom images but couldnt see any property where i can change the image path for these folders. I checked the details of all these folders and even went through the properties but there it shows only the default image name speciefied for that folder and no active settings where i can change the image path for custom icon. Kindly suggest how to implement custom image for KM folder icons.
    Thanking you all in advance,
    Regards,
    Sarabjeet.

    Hi,
    If I understood, you have a KM navigation iview, where some folders apperar. You want to change the icon for each of them differently.
    For this do the following:
    First have a look into the KM.navigation iview and get the layout set property. Go to System config->KM->Content management->User interface->Settings->LayoutSet and find the layout set you are using. Go to appropriate resource renderer and check the "<b>Icon setting</b>". Change it to: <b>iconreplace</b>.
    Now get the KM details for your folders and change the <b>IconSource</b> property to your image Example:
    /etc/public/mimes/images/add.gif
    Voila...the icons for these folders are changed!
    Hope this is your case.
    Romano

  • Where does time machine store content that would be found in the Finder window under "All Images, All Movies, All Documents"? Also, I have many Garageband projects and mp3 files I can't find.

    Where does time machine store content that would be found in the Finder window under "All Images, All Movies, All Documents"? Also, I have many Garageband projects and mp3 files I can't find.

    Easiest way to find time machine files is to open up the folder or application(works for email and iphoto)  they were in - then click on time machine ICON or enter time machine from the time machine menu to go back through the files.

  • Applying custom icons to all files of a type

    I used to use ResEdit back int he day - and have used various tools on Mac and Windows to change icons. BUt I am stuggling with a default custom icon option for Mac OS X.
    I have a set of farily simply icons for use with a number of file types that I use a lot - csv, psl, pti, tp3, xml, cfr, and others and I would like to always have newly created files get the custom icon.
    Ideally this would be based on the extension - and they are not all from the same app.
    I am not afraid to use the terminal or edit package contents. Although some of them are windows apps - and I already have a custom set in the virtual machine.
    Some of the solutions I have seen out there such as Candy Bar seem to be only for application and folder settings.
    In a couple cases - such as the .cfr and .pti - the apps do not have an open method where you can double click on the file and have it open - so I woudl be okay with something like reprogramming TextEdit to have the necessary icons and plist updates. Although when I tried to edit the plist file in TextEdit - all I did was render TextEdit unusable.
    any help in the right direction will be appreaciated - I find it very helpful when I create 30 to 40 files ( a group of 5 differnet file types for each option ) to have icons that help me determine which ones I need to run a macro against - and which to send the customer - and which to upload to the vendor - etc.
    Also missing the colorful icons in the sidebar and iTunes - as well an Unsanity Haxies - guess what audio feedback does make me more productive or at the very least more certain that the system is behaving as I expect.

    A new Cocoa-AppleScript application can be created from the AppleScript Editor > File > New from Template > Cocoa-AppleScript Applet menu item, pasting in the following script:
    -- set icon
    on run -- application double-clicked
        tell current application's NSOpenPanel's openPanel()
            setFloatingPanel_(true)
            setTitle_("Choose file items to set an icon for:")
            setPrompt_("Choose") -- the button name
            setDirectoryURL_(current application's NSURL's URLWithString_(POSIX path of (path to desktop)))
            setCanChooseFiles_(true)
            setCanChooseDirectories_(false)
            setShowsHiddenFiles_(false)
            setTreatsFilePackagesAsDirectories_(false)
            setAllowsMultipleSelection_(true)
            set theResult to runModal() as integer
            if theResult is current application's NSFileHandlingPanelCancelButton then tell me to quit -- cancel button
            set theFiles to URLs() as list
        end tell
        repeat with eachFile in theFiles -- coerce the file paths in place
            tell eachFile to set its contents to its |path|() as text
        end repeat
        open theFiles
    end run
    on open theItems -- items dropped onto the application
        try -- get a path to the image to be used for the icon
            set imageFile to POSIX path of (choose file with prompt "Select an image file for the icon:" of type "public.image")
        on error -- cancel button
            tell me to quit
        end try
        set errorList to {} -- this will be a list of problem files, if any
        repeat with eachItem in theItems
            if not setIcon(imageFile, eachItem) then
                set end of errorList to (eachItem & return)
            end if
        end repeat
        if errorList is not {} then -- oops, show items where there was a problem
            display alert "Error setting icon." message "Icons of the following items were not set:" & return & return & errorList as text
        end if
        tell me to quit -- done
    end open
    to setIcon(imageFilePath, fileItemPath) -- set the icon of a file item
        set mySharedWorkspace to current application's NSWorkspace's sharedWorkspace()
        set myImage to current application's NSImage's alloc's initWithContentsOfFile_(imageFilePath)
        try
            return mySharedWorkspace's setIcon_forFile_options_(myImage, fileItemPath, 0) as boolean
        on error errorMessage
            return false
        end try
    end setIcon
    After saving, the resulting application can be double-clicked, or you can drop files onto it (the script can't be run from the script editor).  It can be tweaked further to include image files in the application bundle to select from (the icon images can be any image, not just icon files), or to be used in the Finder's toolbar, but for now the basic application should get you started.

  • Icon Images

    The icon images have changed on my computer screen and task bar, how do I change them back to the original ?

    Hello raj890,
    I see that you are having a problem with the icon images on your computer. I would like to help with this issue but I need some information.
    Can you provide the model and product number of the computer? Here is a link showing how to find that information.
    What operating system are you using?
    Have all the icons changed on the screen?
    Do they open the correct program?
    How long have your been having the problem?
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Change desktop icon image

    Can the graphic used in a desktop icon be changed? Forgive me if this the wrong forum. Are other good general Apple forums available?

    Hi!
    Are you attempting to use the icon from one file to paste to another file? If so, try this:
    Highlight the file with the icon you want to use and key in cmd+i to bring up Get Info. Click on the icon at the top of the Get Info wondow and key in cmd+c to copy it. Highlight the file that you want to paste the icon to, do cmd+i, highlight the icon in the get Info window, then key in cmd+v to paste it to this file. The icon will be the proper size to begin with, since it was a file icon to begin with. (The way shown in the preceding post should also work, but insure that you highlight and copy the graphic icon image first, before trying to paste it into the other file.)
    If you want to use a custom graphic that is not an icon, I found a simple way to convert file preview images to icons using Pic2Icon. I keep it in the Dock and drop a graphics file (or folder's worth of graphic files) on it and it immediately changes the generic icons to icons with the graphics on them. This freeware utility was developed by SugarCube Software, but is no longer available on the web, even though Googling will provide plenty of links. However, they were nice enough not to originally restrict it's redistribution and I have a copy on my iDisk if you want it. The link is posted below and the archived file will immediately begin downloading if you click on it. (I'll leave the link active for a few days or so before disabling it.)
    http://homepage.mac.com/majordadusma/filechute/pic2icon.dmg.sit
    You can also create such preview icons via Photoshop, if you have it...
    Gary
    1GHz DP G4 Quicksilver 2002, 400MHz B&W rev.2 G3, Mac SE30   Mac OS X (10.4.5)   5G iPod, Epson 2200 & R300 & LW Select 360 Printers, Epson 3200 Scanner

Maybe you are looking for

  • PI 7.1 "stateless" service interfaces prerequisites and limitations

    are there  any prerequisites and limitations for "stateless" Service interfaces. We are directly implementing PI 7.1, (i.e not upgrading form 7.0 or 3.0). so for all our service interfaces, shall we safely use tne interface pattern "statelss" instead

  • Need help to write matrix query

    Hi all, I have the query . I'm getting output like this chargetype amount start_date DA1 170 04/01/2005 DA2 1170 04/01/2005 DA3 1730 04/01/2005 DA4 17 04/01/2005 DA5 -120 04/01/2005 DA6 0 04/01/2005 DA1 170 04/02/2005 DA2 2005 04/02/2005 DA3 590 04/0

  • Counter of visits

    Hello, I use a counter of visits in a basic html website, I would like to put this counter in a flex website. How can I do ? The counter is accessible by an url adress : http://www.moncompteur.com/.........../ Thanks ! chandler

  • IW31/32- Change Date Restriction choices for "StartPoint" and "End"

    Hello, In IW31/32> Operation tab> then "Dates" screen. Is there a way to change Date Restriction choices for "StartPoint" and "End." Start Point: there are 4 choices: Must Start on, Cannot start before, cannot start after, start from resource plannin

  • How to drag a file to time capsule???

    How to drag a file to time capsule? I would like to use it  to store stuff like video and music, every time I try to drag a file in the TC it doesen't work ???