Re: Quark 6.5 Page Name of Group Items
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