• 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
Copy Picture to Clipboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Copy Picture to Clipboard


  • Subject: Copy Picture to Clipboard
  • From: Jim Thompson <email@hidden>
  • Date: Thu, 6 Jan 2011 10:20:06 +0900

Dear AppleScripter,

Hello.  I want to send a PNG picture to the clipboard.  If I run the following code, I'll get the file path as a string instead of as a picture.

set myPict to "SDHC MEMORY:More:graduation.png:"
tell application "Finder"
set the clipboard to myPict
end tell

AppleScript Language Guide suggets that I need to specify a data type.  But there's no such example.  I suppose 'as text' can be omitted if I want to copy a string into the clipboard.  So how can I copy the file as a picture into the clipboard?

Thanks a lot in advance.

Jim
 _______________________________________________
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: Shane Stanley <email@hidden>
    • Re: Copy Picture to Clipboard
      • From: OzSanta <email@hidden>
    • Re: Copy Picture to Clipboard
      • From: AndrĂ© Renault <email@hidden>
  • Prev by Date: Re: slow shell
  • Next by Date: Re: Copy Picture to Clipboard
  • Previous by thread: Re: slow shell
  • Next by thread: Re: Copy Picture to Clipboard
  • Index(es):
    • Date
    • Thread