Re: Save the clipboard picture to a file using image events
Re: Save the clipboard picture to a file using image events
- Subject: Re: Save the clipboard picture to a file using image events
- From: Shane Stanley <email@hidden>
- Date: Tue, 28 Jun 2005 08:57:10 +1000
- Thread-topic: Save the clipboard picture to a file using image events
On 28/6/05 8:00 AM, "MÁTYÁS Ferenc Farkas" <email@hidden> wrote:
> I have a picture on my clipboard, in the Finder I can see the picture
> on the Show Clipboard it says, that it contains a picture, it could
> be vector and pixel based, and I'd like to save it as a jpg file on a
> specified folder.
This should get it as a PICT file, which you can then convert using Image
Events:
-- make 512 byte string
set x to " "
repeat 6 times
set x to x & x
end repeat
set thePic to the clipboard
set thePath to (path to home folder as Unicode text) & "picture001.pict"
set fileRef to open for access file thePath
set eof fileRef to 0
write x to fileRef
write thePic to fileRef
close access fileRef
--
Shane Stanley <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden