Re: Copy Picture to Clipboard
Re: Copy Picture to Clipboard
- Subject: Re: Copy Picture to Clipboard
- From: Jim Thompson <email@hidden>
- Date: Thu, 6 Jan 2011 10:50:10 +0900
Yes. It works. Thank you very much, Mr. Stanley.
Good day,
Jim
On Jan 6, 2011, at 10:43 AM, Shane Stanley wrote:
On 6/1/11 12:37 PM, "Shane Stanley" <email@hidden>
wrote:
But if you want the actual image that you can paste into a graphics
program,
you're probably out of luck. You would have to first read the file
as a png,
which is not something AppleScript can do.
Well that was a bit hasty. Try this:
set thePNG to alias "Macintosh HD:Users:shane:Desktop:Test.png"
set theData to read thePNG as «class PNGf»
set the clipboard to theData
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/
apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden