🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1745

Re: Open Dialog doesn't open files

#1745
From: Olav_Kvern
Date: Wed, 28 Jan 2009 17:17
13 lines
1259 bytes
Hi Matt,

re: "I have even just copied the snippet from the Official Scripting Guide to see if I was causing the error with my first line but I get the same error here for the second line.
var myDocument = app.open(File("/c/myTestDocument.indd"), false);
var myLayoutWindow = myDocument.windows.add();"

The first question--do you have a file named "myTestDocument.indd" on a drive named "c"?

The second parameter controls whether the document opens with a visible window or not. If you omit it or change it to true, you don't need the line that creates a new window.

Thanks,

Ole
Technical Details
Message-ID: <59b7b420.5@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
References: <59b7b420.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,26a8cc073352501a
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Olav_Kvern@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Open Dialog doesn't open files
Message-ID: <59b7b420.5@webcrossing.la2eafNXanI>
Date: Wed, 28 Jan 2009 09:17:49 -0800
References: <59b7b420.-1@webcrossing.la2eafNXanI>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit