• 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: Jason Bourque <email@hidden>
  • Date: Wed, 23 Feb 2005 09:24:30 -0500

Hans,

Thank you. That worked. What is the reason for always setting the selection
to Null? I see it in most of your scripts.


Jason Bourque


On 2/21/05 5:50 PM, "Hans Haesler" <email@hidden> wrote:

> 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


 _______________________________________________
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: Hans Haesler <email@hidden>
References: 
 >Re: Quark 6.5 Page Name of Group Items (From: Hans Haesler <email@hidden>)

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