loadConditionSets from external document


hallo forum,

i'll import saved conditionalsets external template actual document. i'm not able. until have following:

 

 

//given document "mydocument"... var mydocument = app.documents.item(0);  //load conditionalset's external document mydocument.loadconditionsets(file("c:\ta_r02_pl_master.indt")) 

 

 

maybe can me synthax? code doesn't work fine.

thank you

hi,

 

wrong syntax, try this:

mydocument.loadconditions(file("/c/ta_r02_pl_master.indt"), true); 

 

it assumes file("/c/ta_r02_pl_master.indt").exists == true

 

jarek



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Is this Captcha code corrupt?

How to Grab email address from webform and insert into form action

Thread: "Broken" background image with Super Key