Article View: adobe.scripting.indesign
Article #9725Re: [JS] Simple Question
From: Dave_Saunders
Date: Fri, 21 Jul 2006 15:21
Date: Fri, 21 Jul 2006 15:21
8 lines
811 bytes
811 bytes
When the open() method is used with a file object, it attempts to open the file as a text file.
You need:
myDocument = File("~/Desktop/AutomationExersise/BusCardTemplate.indd");
app.open(myDocument);
Dave
Technical Details
Message-ID:
<3bc0fe30.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc0fe30.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,82d0387528319a7b X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: [JS] Simple Question Message-ID: <3bc0fe30.0@webcrossing.la2eafNXanI> Date: Fri, 21 Jul 2006 08:21:12 -0700 References: <3bc0fe30.-1@webcrossing.la2eafNXanI> Lines: 9 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing