• 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 image to clipboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy image to clipboard


  • Subject: Re: Copy image to clipboard
  • From: Martin Orpen <email@hidden>
  • Date: Wed, 31 Mar 2004 18:43:24 +0100

on 31/3/04 4:13 pm, Simon Forster at email@hidden wrote:

> Trying to do the sameusing programs only installed with Mac OS X seems
> to be a little more involved. Quicktime will open most image files but
> I've never managed to get any sensible image file out of Quicktime. I
> can get Safari to open a URL and then use UI scripting to command c and
> command v. But this seems frightfully inelegant.

That's what I've done before using jpegs:

set myImage to choose file
tell application "Safari"
activate
open myImage
delay 2
tell application "System Events"
tell process "Safari"
keystroke "c" using {command down}
end tell
end tell
end tell

I never found any other method, although I was curious as to how the
clipboard differentiates between different classes of data.

Using the above you get:

set myData to the clipboard
class of myData
-->record

Whereas, if you copy a section of an image from Photoshop you get:

-->picture

Regards

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Copy image to clipboard
      • From: Simon Forster <email@hidden>
References: 
 >Re: Copy image to clipboard (From: Simon Forster <email@hidden>)

  • Prev by Date: Making one item in a list into a list
  • Next by Date: Re: Copy image to clipboard
  • Previous by thread: Re: Copy image to clipboard
  • Next by thread: Re: Copy image to clipboard
  • Index(es):
    • Date
    • Thread