• 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: 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

  • Follow-Ups:
    • Re: Copy Picture to Clipboard
      • From: Jim Thompson <email@hidden>
    • Re: Copy Picture to Clipboard
      • From: André Renault <email@hidden>
  • Prev by Date: Re: Copy Picture to Clipboard
  • Next by Date: Re: New to AppleScript,please help.
  • Previous by thread: Re: Copy Picture to Clipboard
  • Next by thread: Re: Copy Picture to Clipboard
  • Index(es):
    • Date
    • Thread