[JS IDS CS4] placing Indd-files
Hi all,
I'm trying to place an InDesign-file via JavaScript, if the script is run from the client it works like a charm but on the server I get an error.
app.documents.item(0).rectangles.itemByID(ItemID).place("Macintosh HD:Test.indd")[0];
If I point to a PDF works just fine.
Is IDS not capable of placing indd-files?
Error:
JavaScript Error!\n\nError Number: 45\nError String: Object is invalid\n\nFile: /Scripts/PlaceInddFile.jsx\nLine: 34\nSource: app.documents.item(0).rectangles.itemByID(ItemID).place("Macintosh HD:Test.indd")[0];
--
molsted