scripting icon's
scripting icon's
- Subject: scripting icon's
- From: Axel Luttgens <email@hidden>
- Date: Fri, 27 Jul 2001 10:45:14 +0200
- Organization: ---
I'm perhaps a bit late, but time is scarce and I can't cope with reading
all messages immediately...
It seems that you are trying to set a file's icon with preexisting data
in the clipboard, perhaps by copying an icon in the "Info for..." window
of a file.
What you need is data in a format expected by the Finder for the "set
the icon..." command to work.
For instance, you might do something like:
tell app "Finder" to set SomeIcon
to icon of file "SomeFile" of folder "SomeFolder" of startup disk
and then go on with your loop:
on open item_list
tell application "Finder"
activate
repeat with this_item in item_list
set the icon of this_item to SomeIcon
end repeat
end tell
end open
Of course, there is no need here to use the clipboard at all.
But you could set the clipoard to SomeIcon.
If you want more info, put some file icon on the clipboard with
applescript, then open the scrapbook, paste and read the type info.
Now, copy an icon in the Finder's "Info for..." window, paste in the
scrapbook and read type info.
Hope this helps
Axel