Re: Copy image to clipboard
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.