Hi guys,
I am really new to this and would appreciate any help you can offer. Syntax is a bitch when doing code and I am not a coder. With that being said what I want to do is Start a page in Indesign with some items that are always there using applesript. I am finding out that certain custom fonts will "applied font" not work. The real problem is i need a logo to be placed in a box at the bottom of the page called "HUDlogo" But it doesnt work.
Here is the code:
I am really new to this and would appreciate any help you can offer. Syntax is a bitch when doing code and I am not a coder. With that being said what I want to do is Start a page in Indesign with some items that are always there using applesript. I am finding out that certain custom fonts will "applied font" not work. The real problem is i need a logo to be placed in a box at the bottom of the page called "HUDlogo" But it doesnt work.
Here is the code:
Code:
tell application "Adobe InDesign CS6"
load swatches from ("Web Design 1/Users/scottmemberg/Desktop/LennarSwatches.ase")
set myDocument to make document
tell margin preferences
set top to 0.25
set left to 0.25
set bottom to 0.25
set right to 0.25
end tell
tell view preferences of myDocument
set vertical measurement units to inches
set horizontal measurement units to inches
end tell
tell document preferences of myDocument
set page width to 8.5
set page height to 11
set facing pages to false
set page orientation to portrait
end tell
tell page 1 of myDocument
set myHeaderBar to make text frame
set geometric bounds of myHeaderBar to {".25", ".25", ".75", "8.25"}
set vertical justification of text frame preferences of myHeaderBar to center align
set contents of myHeaderBar to "LENNAR®"
set fill color of myHeaderBar to "Primary - Blue"
tell paragraph 1 of myHeaderBar
set properties to {fill color:swatch "Primary - White" of myDocument}
tell paragraphs to set justification to center align
set point size to 25
set applied font to "Lennar Logo" --DOESNT find the logo even though its there loaded in my system
set font style of paragraph 1 to "Expanded Heavy"
end tell
set myDisclaimer to make text frame
set geometric bounds of myDisclaimer to {"9.83", ".25", "10.75", "8.25"}
tell text frame preferences of myDisclaimer
set inset spacing to {0.0625, 0.0625, 0.0625, 0.5625}
end tell
set contents of myDisclaimer to "FPO>>Disclaimer goes here Corporation and/or its subsidiaries. (0000) 0/00"
set fill color of myDisclaimer to "Accent - Grey"
tell paragraph 1 of myDisclaimer
set properties to {fill color:swatch "Primary - White" of myDocument}
tell paragraphs to set justification to left justified
set point size to 7
set applied font to "Helvetica Neue"
set font style of paragraph 1 to "47 Light Condensed"
end tell
--SMALL BOX where logo is to be placed into
set HUDlogo to make rectangle with properties {geometric bounds:{"9.8925", "7.7539", "10.335", "8.1839"}}
set stroke weight of HUDlogo to 0
set fill color of HUDlogo to "None"
set properties of HUDlogo to {content type:graphic type}
tell HUDlogo to place file "/Users/scottmemberg/Desktop/IMG_3452.jpg" -- i know that this isnt how its written
end tell
activate
end tell
Last edited by a moderator: