Re: Copy Picture to Clipboard
Re: Copy Picture to Clipboard
- Subject: Re: Copy Picture to Clipboard
- From: Shane Stanley <email@hidden>
- Date: Thu, 06 Jan 2011 12:43:26 +1100
- Thread-topic: Copy Picture to Clipboard
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden