• 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
Re: Quark 6.5 Page Name of Group Items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark 6.5 Page Name of Group Items


  • Subject: Re: Quark 6.5 Page Name of Group Items
  • From: Hans Haesler <email@hidden>
  • Date: Mon, 21 Feb 2005 23:50:30 +0100

On  Mon, 21 Feb 2005, Jason Bourque wrote:

>I have a few boxes selected on 2 pages of a spread. I run a script to get a
>uniqueID of each box. Well all boxes report a page number as the first page
>in the spread. Not the correct page number if the box is on the second page
>of the spread.
>
>Here is my script. How can I fix this?
>
>            set vTextBoxNth to (first text box whose uniqueID is vBoxID)
>            set vProductPage to (name of page 1 of vTextBoxNth) as number


Insert the command 'set selection to null' as soon as the IDs are collected.

Please try this script:
---
set boxIDsList to {}
set pageNamesList to {}
tell document 1 of application "QuarkXPress 6.5"
  repeat with i from 1 to count of text boxes of current spread
    tell text box i
      if selected is true then
        set end of boxIDsList to uniqueID
      end if
    end tell
  end repeat

  set selection to null

  repeat with i from 1 to count of boxIDsList
    tell generic box id (item i of boxIDsList)
      set end of pageNamesList to (name of page 1) as integer
    end tell
  end repeat
end tell
pageNamesList
---

Regards,
Hans

---
Hans Haesler <email@hidden>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Quark 6.5 Page Name of Group Items
      • From: Jason Bourque <email@hidden>
References: 
 >Re: "Authorization API" (Was: do shell script) (From: Christopher Nebel <email@hidden>)
 >Quark 6.5 Page Name of Group Items (From: Jason Bourque <email@hidden>)

  • Prev by Date: Re: RegExps in AS
  • Next by Date: Re: RegExps in AS
  • Previous by thread: Quark 6.5 Page Name of Group Items
  • Next by thread: Re: Quark 6.5 Page Name of Group Items
  • Index(es):
    • Date
    • Thread