• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
scripting icon's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Deleting files/folders
  • Next by Date: Re: Help using dialog
  • Previous by thread: Re: Deleting files/folders
  • Next by thread: Re: Help using dialog
  • Index(es):
    • Date
    • Thread