Re: Writing clipboard PICT to file
Re: Writing clipboard PICT to file
- Subject: Re: Writing clipboard PICT to file
- From: Motoyuki Tanaka <email@hidden>
- Date: Sat, 13 Oct 2001 16:15:08 +0900
At 10:27 -0600 10/11/2001, Ehsan Saffari wrote:
>
Is it necessary to append
>
a PICT header to construct a proper PICT?
Yes. You have to add 512 byte header before PICT body to save as PICT file.
>
Can this be done without
>
involving an image app?
If you don't mind using third-party osax, you can with Tanaka's osax 2:
set myPic to the clipboard as "PICT"
set myFile to choose file name -- or set myFile to new file
MT Write Pict File myPic to myFile
Hope this helps.
==============================================================
Motoyuki Tanaka Fukui Prefectural University
email@hidden Faculty of Economics
http://mtlab.ecn.fpu.ac.jp/