Re: Copy image to clipboard
Re: Copy image to clipboard
- Subject: Re: Copy image to clipboard
- From: Walter Ian Kaye <email@hidden>
- Date: Wed, 31 Mar 2004 13:32:25 -0800
At 02:47p -0500 03/31/2004, Hanaan Rosenthal didst inscribe upon an
electronic papyrus:
I think I know where I got confused.
You can use the write command to save the contents of the clipboard to
a file, but not the other way around.
Even converting the file to PICT or TIFF doesn't work.
Converting the file to PICT will work, if you remember to read the
PICT file starting at byte 513.
Also be sure you do not have the field selected if you do a 'set' command.
This was my test:
set fpath to "path:to:PICT"
set fdata to read file fpath as picture from 513
tell application "Finder"
set apath to application file id "com.filemaker.pro7" as Unicode text
end tell
tell application apath
set <<class ccel>> "graphic" of <<class cTBL>> "test" of <<class
cDB >> 1 to fdata
end tell
(I don't know why I could not get FMP7's terminology; maybe I need to
delete some cache files. In any case, you get the idea.)
Hanaan, what did you use to convert the file from GIF to PICT?
_______________________________________________
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.