Quark XPress batch processing files

I am trying to get this script to process a folder of files in Quark XPress 6.5. I can use the syntax from “tell app…” -on with positive results, but I do not want to have the need to open the files first. The folders have mixed filetype contents and the Quark files are the only ones I need to touch. I simply need to open the files, ungroup all, then close while saving. The “close saving yes” syntax seems to hold the script up in the different revisions I have had so far, is this a bug? Any help is very much appreciated. Have a good day!

Levon


set userChoice to (choose folder)
tell application "QuarkXPress"
	repeat with i from (count of group boxes) to 1 by -1
		try
			tell grouped box i
				set grouped to false
			end tell
		end try
	end repeat
	close saving yes
end tell

Model: Dual 2.3GHz G5
AppleScript: 2.1.1/SD4
Browser: Firefox 2.0.0.4
Operating System: Mac OS X (10.4)

Hi Sprale

You need to be telling the finder to open files of file type “XPRJ” which is the code for quark docs.
when your script repeats thru the folder it should ignore every other file type!!

i’m not sure if i’m understanding you right here but the quark docs will have to be opened to be processed!!