Re: Copy image to clipboard
Re: Copy image to clipboard
- Subject: Re: Copy image to clipboard
- From: Hanaan Rosenthal <email@hidden>
- Date: Thu, 1 Apr 2004 09:34:21 -0500
Resolution:
This finally takes the file (I believe any major format should work)
and puts it in the clipboard.
set imageFilePath to "path:to:image_name.gif"
set pictFilePath to "path:to:tmp.pict"
tell application "Image Events"
set theImage to open file imageFilePath
tell theImage
save as PICT in pictFilePath
end tell
end tell
set fdata to read file pictFilePath as picture from 513
set the clipboard to fdata
On Mar 31, 2004, at 6:49 PM, Walter Ian Kaye wrote:
>
At 06:02p -0500 03/31/2004, Hanaan Rosenthal didst inscribe upon an
>
electronic papyrus:
>
> Is there ANYTHING you people don't know? :-)
>
>
Yes. :-)
>
>
1. How did you convert the file to PICT?
See above
>
2. Why did you CC me?
I thought we were best friends, what happened? First you never call,
and now this? :-)
>
3. Why did you send your email as something other than plain text?
I just stupidly pasted the script with style. Fixed.
Hanaan
--
Hanaan Rosenthal * Custom Flow Solutions
MEDIA AUTOMATION CONSULTING
401-487-2957 * email@hidden
* www.customflowsolutions.com *
be successful... ...work less.
_______________________________________________
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.