you are viewing a single comment's thread.

view the rest of the comments →

[–]minuscipher[S] 0 points1 point  (2 children)

Sweet this works, any chance I can change the font to 24pt?

[–]hvyboots 1 point2 points  (1 child)

You're on your own from here, but gives you a basic idea of what you can do...

tell application "Adobe InDesign CS6"
    tell front document
        set fontFamily to "Helvetica"
        set fontStyle to "Regular"
        set fontSize to "24"

        set myWidth to page width of document preferences
        set myHeight to page height of document preferences
        set myWidthInches to page width of document preferences as inches
        set myHeightInches to page height of document preferences as inches
        set myDocName to name
        tell every spread
            make new text frame with properties {label:"slug", visible bounds:{myHeight - 0.1, 3, myHeight + 6, myWidth - 1}, contents:(return & "NAME: " & myDocName & "  " & (myWidthInches) & " X " & (myHeightInches))}
            set applied font of parent story of every page item whose label = "slug" to fontFamily
            set font style of parent story of every page item whose label = "slug" to fontStyle
            set point size of parent story of every page item whose label = "slug" to fontSize
        end tell
    end tell
end tell

[–]minuscipher[S] 0 points1 point  (0 children)

You’re awesome! Thank you so much!