Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Postscript generation

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

I try to generate PostScript file with Quark XPress using AppleScript.

Here’s the piece of code I used to do this :

tell application "QuarkXPress Passport™ 4.11"
tell document 1
set the print setup to {printer type:"Acrobat Distiller", data format:binary data, resolution:300}

with timeout of 3600 seconds
print PostScript file PSFile
end timeout
end tell
end tell

where ‘PSFile’ is a valid full pathname file

I experiment –48 or –120 error or
postscript file generated in unexpected place

Any ideas ?


MacOS 9.2.1
AppleScript 1.6
Quark XPress 4.11
Acrobat Distiller PPD (4.0)
AdobePS 8.7.3
 
I've been having the same problem!
Here's what I've found so far.
My script:
Code:
 tell document 1
		set docName to the name
		copy {data format:binary data, halftone screen:"105", registration marks:off, resolution:1270, separation:false} ¬
			to print setup
		print PostScript file docName
end tell

This puts the .ps file where the original exists. I haven't been able to add a "reference" to save it somewhere I specify without getting a -48 error and something about a duplicate file.
 
You'll have better luck finding help if you try posting in an applescript or quark forum. Postscript itself has nothing to do with your problem.
 
You'll have better luck finding help if you try posting in an applescript or quark forum. Postscript itself has nothing to do with your problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top