Copy link to clipboard
Copied
Hi all those clever people out there. I'm wanting to know if there's any Script or GREP that can find multiple text boxes across document at a certain y coordinate and move it automatically to another y position?
Sorry, some background which could be confusing: I have automated lots of products to a page (3 products wide by 3 products deep). I have lots of SKU's under each product which are auto-sizing to fit, Most SKUs fit on one line (which I want to leave (y coordinate) where they are), but some run on to two lines which I want to align with the baseline. Here's the tricky part, because of the automation, I need to have one primary SKU in its own text box and then the rest (associated products) in their own text box.
Issues I have (hopefully screenshot attached explains better):
• Anchoring the associated text box aligns the text box to the right and doesn't flow underneath
• Using an object style / find and change uses the page edge or page margin, so can get line one to automatically move but rows 2 and 3 don't.
• Aligning text boxes to baseline, when there's two lines, it means primary SKU stays bottom left and needs to be first SKU in list, which goes back to first point and the anchoring/text wrap issue of text wrap does work with the anchoring, so if I can get the move to work, I would use the text wrap and move, then use breaking anchor script to get the text wrap to work.
My thinking is Anchor text boxes, then if I can have some sort of automation to find a text box at a certain position (which will always be the location in the automation) then use GREP and/or Script to move it to where I want it to be and remove anchor with script to get text wrap to work.
Something where I can put in my own co-ordinates (not actual measurements, just example)...
row 1: find text box at y=58 and move to y=56
row 2: find text box at y=150 and move to 148
row3: find text box at 180 and move to 178
Long shot, but you lot are pretty clever. Thanks in advance for even looking at this problem.
Anton
Copy link to clipboard
Copied
What hinders you touse Object Styles?
Copy link to clipboard
Copied
Hi Willi, thanks for looking into this.
So I have one template that automates products onto the page. So three products across by three products down. So I can do Find this Object Style and replace this Object Style. Which works for the first row, but not row 2 and three, as they jump to where the first row is. I could set-up styles for rows 2 and 3, but then I'd have to select each row and change the style in the find and change box, which by the time I've done that I could have manually moved, just trying to find a way to move all object up by a certain measurement the isn't relative to top of page or margin. So find this object style and move up by 5mm. I hope this makes sense or even better if there is an easy fix that I don;t know would be fantastic.
Anton
Find more inspiration, events, and resources on the new Adobe Community
Explore Now