Re: Extract image preview from Quark
Re: Extract image preview from Quark
- Subject: Re: Extract image preview from Quark
- From: Shane Stanley <email@hidden>
- Date: Sat, 10 Feb 2001 08:17:57 +1100
On 10/2/01 4:54 AM +1000, Steve Delmont, email@hidden,
wrote:
>
Is there any way to extract the image preview from a Quark eps file
>
and store the extracted data in its own file?
Play with this:
tell application "QuarkXPress 4.11"
tell document 1
set theData to image 1 of picture box 1
end tell
end tell
set fileRef to (open for access file "Macintosh HD:Pic" with write
permission)
-- need 512 bytes of header, content irrelevant
set theHeader to ""
repeat 16 times
set theHeader to theHeader & "12345678901234567890123456789012"
end repeat
write theHeader to fileRef
write theData to fileRef
close access fileRef
tell application "Finder" to set file type of file "Macintosh HD:Pic" to
"PICT"
--
Shane Stanley, email@hidden