Hi everybody,
I try to make a script for print my indd doc automatically thanks to a 4D web service.
$script:=$script+Caractere(13)+”set pathname to “+Caractere(34)+”/Volumes/beta_rey_actif/print/10_11_42184.indd”+Caractere(34)
$script:=$script+Caractere(13)+”consoleout message”+Caractere(34)+” —— TEST ——-“+Caractere(34)
$script:=$script+Caractere(13)+”set name_file to “+Caractere(34)+”10_11_42184.indd”+Caractere(34)
$script:=$script+Caractere(13)+”set my_format to “+Caractere(34)+”a4″+Caractere(34)
$script:=$script+Caractere(13)+”consoleout message name_file”
$script:=$script+Caractere(13)+”set mgPresetList to name of every printer preset”
$script:=$script+Caractere(13)+”set mgPrintPreset to choose from list mgPresetList”
$script:=$script+Caractere(13)+”tell application “+Caractere(34)+”InDesignServer”+Caractere(34)
$script:=$script+Caractere(13)+”activate”
//$script:=$script+Caractere(13)+”set user interaction level of script preferences to never interact”
$script:=$script+Caractere(13)+”open pathname”
$script:=$script+Caractere(13)+”tell document name_file”
//$script:=$script+Caractere(13)+”consoleout message”+Caractere(34)+” —— second ——-“+Caractere(34)
$script:=$script+Caractere(13)+”print ” //using “+Caractere(34)+”a4″+Caractere(34) //without print dialog”
//$script:=$script+Caractere(13)+”end tell”
//$script:=$script+Caractere(13)+”close document name_file saving no”
//$script:=$script+Caractere(13)+”quit”
$script:=$script+Caractere(13)+”end tell”
$script:=$script+Caractere(13)+”consoleout message “+Caractere(34)+” —— TEST ——-“+Caractere(34)
$script:=$script+Caractere(13)+”end tell”
I don’t find how add a preset in my indd server.
Any ideas ?
Thanks a lot
Reymann