Porting from QuarkXpress v4 to v6 (and OS9 to OSX)

Hi!

I am currently trying to port an Applescript using QuarkXpress 4.01 and OS9 to QuarkXpress 6 and OS X

The script is as follows:


tell application "QuarkXPress Passport"
	activate
	open MyDocument use doc prefs no remap fonts no
	tell document 1
		make new page at beginning with properties {master spread:"Obo-S2B1"}
	end tell
end tell

With the new configuration (QuarkXpress 6 and OS X) the script executes to completion but fails to change the master spread property of the newly created page.

Also, in my document I have about 60 different master spreads. But I can not reach them through the QuarkXpress object model.

Any help is appreciated.

regards,
Ilan

Try this : [Tested on QXP 6 Demo]


 tell application "QuarkXPress Passport" 
    activate 
    open MyDocument use doc prefs no remap fonts no 
    tell document 1 
       make new page at beginning with properties {master spread:"S2B1"} -- the name is what you have to change 
    end tell 
 end tell 

Scripting QXP 6 is not Scripting QXP 5, is not Scripting QXP 4.11, is not Scripting QXP 4.1, etc.

In QXP 6, you must tell a master spread by ignoring all chars before the dash!
Why ? Because it is Quark!

Thanks that worked.
Now I just have to rename all the master spreads. The rest of the script worked fine except for the
open filename
statement which now requires an alias instead of a string

Ilan

What for?
If the name of your Master Spread is “Obo-S2B1”, you just have to call it by ignoring the prefix :
instead of {master spread:“Obo-S2B1”}
you must write : {master spread:“S2B1”}
No need to rename…

Did you solve this ? If not, be more explicative : are you trying to make changes on your master spreads?

Regards.