scripting icon's
scripting icon's
- Subject: scripting icon's
- From: "Nathan Ardoin" <email@hidden>
- Date: Tue, 26 Jun 2001 15:16:18 -0700
Hey ther, I am trying to script setting an icon, so that whatever I have copied into the clipboard I want it to paste it onto the file dropped onto the dropplet, and I am stuck at a certain spot, anyway here is the script:
on open item_list
tell application "Finder"
activate
repeat with this_item in item_list
set the icon of this_item to the clipboard as icon
end repeat
end tell
end open
the part that does not seem to work is "set the icon of this_item to the clipboard as icon" it doesn't error out but it doesn't do what is intended either, I have also tried "set the icon of this_item to the clipboard as picture", which does not work but does error out... I've looked around on the net for a possible answer but haven't found one, I am not that great at scripting the finder, as its the one program I don't really script..... Any help would be greatly appreciated.
-nate