If you're opening a template and want to save it as a normal document, you probably need to include the "statioery" parameter in your save. Try something like this:
tell ce_document to save to le_nouveau_document without stationery
close document 1 saving no
Thanks for replying.
I still get an idlk file and an error.
--> Adobe InDesign CS4 got an error: Can’t get document 1 of document "Sans titre-3"
I tried other variation:
close file le_nouveau_document saving no--> Can’t get file "HD:Users:stereo:Applications:Automatisation Téléhoraires:Dossiers:InDesign - À valider:StThomasTimesJournal_20100131_1009_1_Quot.indd" of document "Sans titre-2".
close documents saving no
--> Can’t get every document of document "Sans titre-3"
I'm on Snow Leopard 10.6.2 and use ID CS4 v6
You need to move outside the "tell ce_document" block. In fact, if you only have one document, you're better off just referring to document 1. The problem with references like "tell ce_document" is that "ce_document" is based on the doc's name, so as soon as you save as another document, the reference no longer works.
You need to move outside the "tell ce_document" block.
Thanks a lot, it’s working perfectly now. Its part of a workflow where Hazel is monitoring a couple of folders and where the files move from folder to folder (where scripts are launched depending of the folder). A couple years ago, UserLand Frontier could have been perfect for that kind of stuff. Thanks Again!