Naming Boxes in QuarkXPress

Hi,
I am using Quark 4.11 and Xtags to import boxes. I have named the boxes using Xtags when they are imported. I am trying to change the background color of the named boxes to a blend, but when I try I get an error message back saying it can’t get text box named vocab box. Here is my applescript.

tell application “QuarkXPress™ 4.11”
select (text box whose name is “vocab box”)
set properties of current box to {color:“magenta”, blend:{angle:“-90”, color:“magenta”, shade:“0%”, style:linear blend}}
end tell

Any help here would be greatly appreciated.
Thanks,
Jon

You need to tell the script where the box is located (i.e., which document). Try this:

Jon


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

Hi Jon,

I found your old message and I was wondering how you give your text boxes a name. I know this has nothing to do with your question of AppleScript in general, but your answer could be great help to me!

Thanks in advance! Kitty

If you selected a textbox:

tell application "QuarkXPress Passport"
	tell document 1
		set name of current box to "Geef het beestje maar een naam"
	end tell
end tell