G’day
I’m tearing my hair out over this. This old scipt was written for 5 I think, but worked once under 7, then stopped working.
Is there something wrong with this part, cause I’m getting an error with it ‘Unknown Object Type’
set CharStyle to make new character spec at document DocName's end with properties {name:"Label", color:"Registration"}
I’ve checked the quark Dictionary, but as usual, I prefer concrete examples.
Thanks
Santa
tell application "QuarkXPress Passport"
if not (exists character spec "Label" of document DocName) and not (exists style spec "Label" of document DocName) then
set CharStyle to make new character spec at document DocName's end with properties {name:"Label", color:"Registration"}
set ParaStyle to make new style spec at document DocName's end with properties {name:"Label"}
set character style of ParaStyle to CharStyle
end if