Can I 'paste' PostScript into a Quark picture box?
Can I 'paste' PostScript into a Quark picture box?
- Subject: Can I 'paste' PostScript into a Quark picture box?
- From: Pat Cannon <email@hidden>
- Date: Fri, 7 Jun 2002 21:46:05 -0500
Hi,
I have a script we use every day to place trim marks, register marks,
etc. on QuarkXPress pages for prepress production. Among other
things it builds a custom register mark from QuarkXPress graphic
boxes; I did it this way so that no external graphic files are
required.
Now my managers in their wisdom have decided that we need the company
name etc. at microscopic size in the register mark. They have
created the mark they want in Adobe Illustrator. Of course I could
just have my script place the Illustrator file but I'd rather not
have the external file that would always have to travel with the
QuarkXPress page.
The closest I've come so far is to "paste" the image as raster data
into a picture box, thus embedding the image in the Quark file. To
do that I read the picture data from a file. I make the file by
exporting the mark from a picture box where I pasted it, after
copying it from Photoshop in bitmap color mode. Like so:
tell application "QuarkXPress 4.04"
tell current page of document 1
set imageData to image 1 of picture box 1
end tell
end tell
set markFile to choose file name with prompt "Create the mark
file:" default name "exportedMark"
open for access markFile with write permission
write imageData to markFile
close access markFile
Then I can 'paste' the mark like so:
set imageData to read file markFilePath as picture
tell application "QuarkXPress 4.04"
tell current page of document 1
set image 1 of picture box "Use this box" to imageData
end tell
end tell
So my question is: Can I do something like this, but using vector or
ideally PostScript data somehow? I'd really like to have a more
compact & resolution-independent graphic. Plus it'd be cool to have
the PostScript text right in my script and not need the marks file to
read & 'paste'.
Anybody done something like this?
TIA,
Pat
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.