Quark 6 script help

We are slowly moving to Quark 6 but need a safety net. I will need this script for Quark 6 to Quark 5 but figure I’ll try this side first.

Here’s my script

set diskName to ""

tell application "Finder"
	set diskName to name of startup disk as string
end tell

set thePath to (diskName & ":" & "Desktop folder:")
tell application "QuarkXPress�"
	activate
	set quarkFile to (choose file with prompt �
		"Choose the Quark Doc." of type {"XDOC"})
	open quarkFile
	set Thispath to (thePath & "test_4")
	save document 1 in Thispath version 40
	--save document 1 version 40 in Thispath
	close document 1
end tell

My problem is the line

save document 1 in Thispath version 40

doesn’t save to version 4. I’ve tried a few variations but Quark 4 will not open this file.

Does anyone know the syntax? I checked the dictionary and it seems to reflect the code above?

OS 9.2.2
Quark 4.11
AS 1.6

Thank you,

Steven.

Hi,

I can not test it , but try :


 save document 1 in Thispath version v40 

That is the syntax of the dictionnary of my X-Press4.0

It saw v40 as a variable and not part of the version syntax? I copied and pasted from your post to my script.

I hope it is some variation of what has been tried and not a case where Quark just forgot to make that part of their application work?

Thanks for trying.

Steven

If you mean to save a doc with Q6 as Q5, change these two lines.

"Choose the Quark Doc." of type {"XDOC", "XPRJ"})

and

save document 1 in Thispath version vers 50

Kjeld

The problem is that you can just revert to xpress 5 from xpress 6… From the gui or applescript…

save document 1 in ThisPath version vers 40 

This worked! I haven’t tested this on Quark 6 yet but I am hopeful!

Thank you for the help on this one.

Steven

I am sorry to dissapoint you.
Saving from 6 to 5 works.
Saving from 5 to 4 works.
Saving from 6 to 4 does not work.

However you can make a script which saves from v6 to v5, opens the document in Q5 and then saves it to v4. But conversion to older versions always can give problems (e.g. text flow).