Hello,
Has anybody an idea how to get the page on which a box is placed ?
Regards
Thomas
Hello,
Has anybody an idea how to get the page on which a box is placed ?
Regards
Thomas
Hi
Here a small suggestion (with XPress 3):
tell application "QuarkXPress 3"
tell document 1
show selection
return page number of current page
end tell
end tell
Thanks,
but I am looking for something like
tell document 1
get page number of picture box 1
end tell
Do you have also suggestion for this problem ?
Regards,
Thomas
I do not know if there is a simpler means, but I think that it is necessary to display the page containing the picture or text box to know its number…
Here an example:
tell application "QuarkXPress 3"
tell document 1
show picture box 1
return page number of current page
end tell
end tell
Thomas,
It’s not obvious, unfortunately. But this is it…
–for page number
index of page 1 of picture box 1
–for name (defined by section start)
name of page 1 of picture box 1
Ray
Yes Ray, quite simply (brilliant :D)
Thanks, I would have never thought of referencing it that way. Now if I could just find a link to/from an anchored box and the text box that contains it.
Thomas
Jerome,
I can’t recall if there is a direct way to do this (I think not). However, if you get the text of a story, the anchored boxes actually show up as special characters. I believe you can then get the offset of the surrounding character, and then refer to “text box 1 of character xxxx” or something like that.
As for the links, it is reasonably easy to get the links of anchored picture boxes with a filtered reference to “file path of image 1 of every picture box whose anchored is true”. Since the layering order cannot change, I believe you can then expect the order to be consistent with the characters found in the story.
Ray