Re: Coerce small icon into picture (getting the icon)
Re: Coerce small icon into picture (getting the icon)
- Subject: Re: Coerce small icon into picture (getting the icon)
- From: Johan Solve <email@hidden>
- Date: Thu, 30 Nov 2000 23:08:22 +0100
>set iconsuite to (the icon for file filename) as small eight bit icon
-- selects last words and gives error "Can't make xxxx into the expected
type"
set the clipboard to iconsuite as picture
I can answer the Finder part. Take another look at the definition
of icon family in the Finder's dictionary. You'll find contains icon
data for each of the 10 icon resource types. So you don't need to
coerce it, you need to get the property of it:
tell application "Finder"
get icon of item 1
set theIcon to result's small 8 bit icon
end tell
R23
OK, so I have a small eight bit icon. But I can't coerce that into a
picture that I can send to clip2gif.
So:
I can get a large 8-bit icon and coerce it to a picture using Akua Sweets
or
I can get the small 8-bit icon using Finder
but not both...
--
Johan Svlve
Web Application/FileMaker Developer
MONTANIA SOFTWARE & SOLUTIONS [FSA Member]
http://www.montania.se mailto:email@hidden
Halmstad Branch: Brogatan 16, SE-30243 Halmstad
phone +46 35-127205 fax +46 35-2802654 mobile +46 709-515570
Ronneby HQ: Soft Center , SE-37225 Ronneby
phone +46 457-386200 fax +46 457-26479