• 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: Save the clipboard picture to a file using image events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Save the clipboard picture to a file using image events (From: MÁTYÁS Ferenc Farkas <email@hidden>)

  • Prev by Date: Save the clipboard picture to a file using image events
  • Next by Date: Re: path to as string
  • Previous by thread: Save the clipboard picture to a file using image events
  • Next by thread: maddening
  • Index(es):
    • Date
    • Thread