Re: Seting a file's icon from AppleScript.
Re: Seting a file's icon from AppleScript.
- Subject: Re: Seting a file's icon from AppleScript.
- From: John Delacour <email@hidden>
- Date: Thu, 20 Mar 2003 21:00:32 +0000
- Mac-eudora-version: 6.0a11
At 11:15 am -0800 20/3/03, Joseph Silverman wrote:
Can anyone help me with a code snippet to set the icon (128x128
ideally) of a file (application actually) to the contents of a
graphical file (can be gif, jpg, tiff, whatever, heck - it can even
be a .icns file).
So far as I remember you just say
tell app "Finder" to set icon of item "<pathname>" to <icon family>
where <iconfamily> is the data from an 'icns' resource. I've never
done it in OS 10 but in OS 7.6+ you could set the icon of item x to
(get the icon of item y)
_______________________________________________
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.