• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Copy Picture to Clipboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Copy Picture to Clipboard (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: New to AppleScript,please help.
  • Next by Date: Re: variables vrs properties
  • Previous by thread: Re: Copy Picture to Clipboard
  • Next by thread: New to AppleScript,please help.
  • Index(es):
    • Date
    • Thread