Re: Any way in applescript to use an image as a folder icon?
Re: Any way in applescript to use an image as a folder icon?
- Subject: Re: Any way in applescript to use an image as a folder icon?
- From: Graff <email@hidden>
- Date: Fri, 04 Jun 2004 02:49:38 -0400
On Jun 4, 2004, at 1:50 AM, Walter Ian Kaye wrote:
At 10:38p -0400 06/03/2004, Graff didst inscribe upon an electronic
papyrus:
This is one thing that has stumped most of us. I believe the current
consensus is that there is no way to do this with plain-vanilla
AppleScript. Maybe you can find a scripting addition or application
that will help you to do it but this is a common question and I have
yet to see a good answer for it.
Hmm... one could possibly use GraphicConverter to create an icon, and
then use some resource osax to copy the resource to an Icon<CR> file,
and use SetFile to set the metadata flags. Just a wild thought.
Yeah, I thought of that but it's a real pain in the arse. That <CR>
mucks things up real good and the whole resource thing doesn't help,
not to mention the whole hidden thing. What a combination...
I still think that it is something that should be added to some
AppleScript dictionary that comes with Mac OS X. Maybe in the
dictionary of one or more of Finder, System Events, or Standard
Additions. Just add a new property which can be read and set.
In the Finder dictionary there is already a property "icon" for class
"item" but it doesn't appear to be usable to get or set the icon data.
This script:
----
set theFolder to choose folder
tell application "Finder"
icon of theFolder
end tell
----
returns:
--> missing value
This is true no matter if the folder does or does not have a custom
icon in the Finder
- Ken
_______________________________________________
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.