This is on CS5 on OS X 10.6.8.
Ok, I’ve got the ‘page information’ marks working fine (script taken from Real World InDesign). However, I was asked if I could get the username (whoever is logged in at the time) to print as well.
I’ve tried many variations of what I have below and haven’t had any luck. It will either crash InDesign without printing or it prints with “pagemarks definition file error” at the top. Maybe you can’t use USER or LOGNAME variables in these scripts? Any help would be appreciated.
Here is the script that I was trying to make work (as is it gives the “pagemarks definition file error”)…
//pgmk.v02.00
<
Style (PageInfoOnPage)
MarksArray
[
<
Type FourCropMarks
Length 15
>
//Page information.
<
Type MarkText
Count 2
TextSize 10
RegistrationTextColor 1.0
//Feel free to replace our shameless advertising with
//your own shameless advertising.
FormatString [(%s %s %s) (%s %s)]
InfoValues [PubName PageLabel $LOGNAME Date Time]
Location <
Side Bottom
OutAnchor InnerCropMark
//Move info up–36 points is enough to
//get it onto the page for most printers.
//Adjust this value as you see fit.
OutOffset -36
OverAnchor EdgeOfPage
OverDirection [Left Right]
OverOffset [100 100]
MarkCorner [MarkLL MarkLR]
>
>
]
>