Dear All,
Can I make a text frame in the slug area of a page through Applescript in InDesign CS2.
Regards
Rajeev Kumar
Dear All,
Can I make a text frame in the slug area of a page through Applescript in InDesign CS2.
Regards
Rajeev Kumar
:)YES. remember that slug goes outside your document width and Height
regards Quentin
example follows hope it helps!
--ASInD New Doc With Slug and text frame
set docsizeW to 100 -- Image width Size to be printed
set DocsizeD to 100 -- Image Depth or Height Size to be printed
set docslug to 50 --The Slug amount to put around document
set slugline to "Hello I am in the slug!!!!"
set RetOK to "OK"
tell application "Adobe InDesign CS2"
activate
set mydocument to make document -- make a new document
tell view preferences of mydocument
set horizontal measurement units to millimeters
set vertical measurement units to millimeters
end tell
tell document preferences of mydocument
set page height to DocsizeD --Set height and width of Doc
set page width to docsizeW
set document slug uniform size to true -- slug o be same all round the document
set slug top offset to docslug -- now put the slug around the document
end tell
set mypage to page 1 of mydocument
tell mypage
try
set thetextframe to make text frame
set label of thetextframe to "slugtextframe"
set geometric bounds of thetextframe to {-20, 10, -10, docsizeW - 10}
set the contents of thetextframe to slugline
on error
set RetOK to "Fail"
end try
end tell
end tell -- app indesign
return RetOK
--end run
You should be able to, just use the proper coordinates when setting the geometric bounds. As long as it is on the paste board it should work.