• 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
Re: Getting an icon of an item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Waiting for completion
  • Next by Date: Re: Change a File's Creation Date (OS 9.1)
  • Previous by thread: Re: Getting an icon of an item
  • Next by thread: Unsuscribe
  • Index(es):
    • Date
    • Thread