• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom Icons?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Icons?


  • Subject: Re: Custom Icons?
  • From: Walter Ian Kaye <email@hidden>
  • Date: Wed, 21 Jan 2004 14:14:02 -0800

At 01:24p -0500 01/19/2004, Graff didst inscribe upon an electronic papyrus:

Apparently you can't do this directly through AppleScript. This topic has been discussed on this list before and to my knowledge no one has found a solution.

- Ken

On Jan 19, 2004, at 11:37 AM, Jonathan Levi MD wrote:

Is there currently a way to get/set a Finder item's custom icon using AppleScript?

Well, if you already have the icon *as* an icon (not a PICT on the clipboard, but actual icon data, e.g. 'icns'), or if you are copying one folder icon to another, then you can certainly do it. If you're copying a folder icon, you can just copy the invisible Icon<CR> file and use SetFile (part of the dev tools) to set the customicon flag. If you're setting a file icon, you'll need to insert the necessary icon resource[s] having id -16455, and then use SetFile. Finder may need updating afterward.

I haven't done it, but I see no reason for it not to work.


-boo
bottom posting
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Custom Icons? (From: Jonathan Levi MD <email@hidden>)
 >Re: Custom Icons? (From: Graff <email@hidden>)

  • Prev by Date: Re: Still more strange things S(
  • Next by Date: Re: Address Book: Delete Person (still can't)
  • Previous by thread: Re: Custom Icons?
  • Next by thread: Re: Custom Icons?
  • Index(es):
    • Date
    • Thread