prabu:Hi Emma
While i try the above script, QuarkXPress got an error : Can't make class text box.
Have you any idea...!
Regards
Prabu
Have you got a Quark document open? The script assumes you have. This should work in any version of Quark. Can you describe very carefully exactly what you are doing when you get the error? (Try quitting Script Editor and Quark and re-loading both, too).
Then this script will name the box:
tell application "QuarkXPress"
tell document 1
make new text box at beginning with properties {bounds:{"12 mm", "20 mm", "50 mm", "90 mm"}}
set name of text box 1 to "myTextBox"
properties of text box 1
end tell
end tell
It is easily deleted with 'delete text box 1' (deletes the frontmost text box in the document) or 'delete text box "myTextBox" ' deletes the named box.