• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Quark 6 Text Boxes Name Errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Quark 6 Text Boxes Name Errors
      • From: Hans Haesler <email@hidden>
    • Re: Quark 6 Text Boxes Name Errors
      • From: Hans Haesler <email@hidden>
  • Prev by Date: Re: Hat bug.
  • Next by Date: Re: [OT] Re: Hat bug.
  • Previous by thread: Re: RegEx ignores space in pattern
  • Next by thread: Re: Quark 6 Text Boxes Name Errors
  • Index(es):
    • Date
    • Thread