Copy Picture to Clipboard
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