• 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
Get the icon to the clipboard?????
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get the icon to the clipboard?????


  • Subject: Get the icon to the clipboard?????
  • From: Robbie Newton <email@hidden>
  • Date: Thu, 07 Mar 2002 15:37:14 -0500

Hello everyone,

I am using this script below to get the icon of a file or folder (I think).

tell application "Finder"
try
set myFile to (choose folder with prompt "Select a file to get the
icon...")
on error errMsg number errNum
if errNum = -128 then
error number -128
end if
end try
set myIcon to the icon of myFile
set myImage to myIcon as picture
set the clipboard to myImage
end tell

I do not understand why this will not work. I can get the myIcon data to
return but it gives me an error when setting it to the clipboard. I want to
get the image of the icon into FileMaker. If anyone knows of another way to
do this, please let me know.


TIA
-Robbie
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Get the icon to the clipboard?????
      • From: JollyRoger <email@hidden>
  • Prev by Date: Re: Good beginner's book
  • Next by Date: Re: What sort of monopoly is MS supposed to have in Macintosh apps?
  • Previous by thread: Re: What sort of monopoly is MS supposed to have in Macintosh apps?
  • Next by thread: Re: Get the icon to the clipboard?????
  • Index(es):
    • Date
    • Thread