Quark 6 Text Boxes Name Errors
Quark 6 Text Boxes Name Errors
- Subject: Quark 6 Text Boxes Name Errors
- From: Jason Bourque <email@hidden>
- Date: Fri, 19 Mar 2004 13:42:53 -0500
Hello,
I have a 40 page document and this script that goes through and gets each text box name. Well some boxes it errors out on. And the error is not always on the same box. Any advise? -- Jason Bourque
tell application "QuarkXPress"
activate
set vDocName to name of document 1
set vPageCount to count of pages of document vDocName
-- This line will ensure that a document is open, before proceeding
if not (exists document 1) then error "No document is open."
tell document 1
repeat with vPageNth from 1 to vPageCount
set vTextBoxCount to count of text boxes of page vPageNth
repeat with vTextBoxNth from 1 to vTextBoxCount
delay 1
try
-- set vFoundSpecials to (name of every text box of page vPageNth) -- whose name is not "")
set vBoxItemNth to name of text box vTextBoxNth of page vPageNth
on error vErrMsg
tell application (path to frontmost application as text)
display dialog vErrMsg giving up after 2
end tell
set vBoxItemNth to ""
end try
end repeat
end repeat
end tell
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.