Copy link to clipboard
Copied
Trying to develop a script that will align an object horizontally center and vertically to bottom.
This is what I have but can't get it to align to the bottom
tell application "Adobe InDesign 2025"
set selList to selection --assumes more than one item selected
tell document 1
align align distribute items selList align option horizontal centers
align align distribute items selList align option vertical centers
end tell
end tell
Copy link to clipboard
Copied
in the future, to find the best place to post your message, use the list here, https://community.adobe.com/
p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.
<"moved from using the community">
Copy link to clipboard
Copied
have you tried bottom edges?
Copy link to clipboard
Copied
tell application "Adobe InDesign 2025"
set selList to selection -- assumes items are selected
tell document 1
-- Align horizontally to center
align align distribute items selList align option horizontal centers
-- Align vertically to bottom
align align distribute items selList align option bottom edges
end tell
end tell
as per @leo.r
Copy link to clipboard
Copied
Thank you. I got this from someone. it aligns the image to the page centered horizontally and vertically .1875" from the bottom of the page.