Problem Printing Postscript files - Quark 6 & 7

I have this in a sub-routine, which loops through the documents correctly, gives no errors, yet produces no .ps output files

tell application "QuarkXPress"
		open this_item use doc prefs yes remap fonts no do auto picture import yes
		--open this_item use doc prefs yes remap fonts ask do auto picture import yes
		delay 11
		tell document 1
			set docName to the name
		end tell
		tell document docName
			set fileName to docName & ".ps"
			set printfilename to myFolder & fileName --myFolder is a pre-defined destination alias as a global variable
			print PostScript file printfilename
			--display dialog "success"
		end tell
		close document docName saving no
	end tell

When I change it to this below, it works correctly, but saves the documents in the Quark Application directory, which is a big pain - is it possible to make the above work correctly?

tell application "QuarkXPress"
		open this_item use doc prefs yes remap fonts no do auto picture import yes
		--open this_item use doc prefs yes remap fonts ask do auto picture import yes
		delay 11
		tell document 1
			set docName to the name
		end tell
		tell document docName
			print PostScript file docName
			--display dialog "success"
		end tell
		close document docName saving no
	end tell

Hi dean

This worked for me saving to a folder called “POSTCRIPT FILES” on my desktop

set this_item to (choose file)
tell application "QuarkXPress"
	open this_item use doc prefs yes remap fonts no do auto picture import yes
	--open this_item use doc prefs yes remap fonts ask do auto picture import yes
	delay 11
	tell document 1
		set docName to the name
	end tell
	tell document docName
		set fp to "Donatello:Users:steve:Desktop:POSTSCRIPT FILES:"
		set fileName to fp & docName & ".ps" as string
		--set printfilename to myFolder & fileName --myFolder is a pre-defined destination alias as a global variable
		print PostScript file fileName
		--display dialog "success"
	end tell
	close document docName saving no
end tell

That was in Quark 7

here is another way to do this works with 6.52 I don’t have 7
it saves the PS in the same folder as the file


tell application "QuarkXPress"
	activate
	set filename to name of document 1
	set thePath to file path of document 1
	tell application "Finder"
		set workpath to "" & (container of thePath as alias)
	end tell
	print PostScript file (workpath & filename & ".ps")
end tell

Hi All,

I am using Quark 6.5. I having a bunch of Quark files in a folder and I want to create PDF of those files in a folder. Is it possible to do it.
Regards
Pooja

Yes it is you can make a droplet that processes the files in the folder :slight_smile: if your looking for someone to write this code I would suggest www.macfreelancer.com

mme