Get the icon to the clipboard?????
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.