Re: Getting an icon of an item
Re: Getting an icon of an item
- Subject: Re: Getting an icon of an item
- From: email@hidden
- Date: Mon, 27 Aug 2001 22:04:29 EDT
In a message dated 8/27/01 7:06:28 PM,
email@hidden writes:
>
tell application "Finder"
>
set theIconData to icon of file ((choose file) as text)
>
end tell
This will not do what was asked, which is to get a copy of the icon, as an
image, on the clipboard. This will just set a variable to the file's icon.
Depending on what actually needs to be done here, this might be enough. You
can set the icon of another file or folder to the icon of any other:
tell application "Finder"
set icon of file "MacHD:SomeFile" to icon of file "MacHD:SomeOtherFile"
end tell
I too have not been successful in getting the icon, as an image, onto the
clipboard with AppleScript. I'd be interested to know if anyone knows a way...
Ken Fleisher
email@hidden