Re: Get the icon to the clipboard?????
Re: Get the icon to the clipboard?????
- Subject: Re: Get the icon to the clipboard?????
- From: Robbie Newton <email@hidden>
- Date: Thu, 07 Mar 2002 20:35:55 -0500
>
leave out the clipboard altogether and just tell the
>
other app to do whatever with 'myIcon'.
That was a thought, but with the script that I posted originally, that you
were referring to, does not work. It gets the icon family. Not the actual
pixels of the image of the icon.
Victor Yee eat solution that uses Sandi's Additions
-- Requires Sandi's Additons
on copyIconToClipboard(thisFile)
set thisFile to thisFile as string
tell application "Finder"
activate
set infoWindow to information window of alias thisFile
open infoWindow
TypeText tab
TypeText tab
TypeText "a" with Command
TypeText "c" with Command
close infoWindow
end tell
end copyIconToClipboard
The problem with that is that it requires the clipboard so it flashes back
and forth between FileMaker and the Finder. Yes I know... The subject of the
discussion was copy the icon to the clipboard. But I didn't realize that you
could not use the clipboard in the background. Bummer.
Any ideas on how to get rid of the clipboard and send it directly to
FileMaker? (FileMaker is very scriptable) I would just set a container field
in the DB to a value of the icon. (doing that from the AS)
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.