Article View: adobe.scripting.indesign
Article #15736Re: [AS] Open without showing window in InDesign CS
From: Ton_Kuypers
Date: Wed, 19 Nov 2003 20:21
Date: Wed, 19 Nov 2003 20:21
43 lines
2924 bytes
2924 bytes
<FONT FACE="Verdana"><SPAN STYLE='font-size:12.0px'>Tnx, will do some more checking...<BR> <BR> But when I open a template and start working in it, how do I make it visible?<BR> I guess (when I get my other scripts running) the only way is to save the file, giving it a name close and reopen it?<BR> <BR> Ton<BR> <BR> <HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>Dave Saunders <member@adobeforums.com><BR> <B>Reply-To: </B><folder.eea52bc@adobeforums.com><BR> <B>Date: </B>Wed, 19 Nov 2003 12:13:31 -0800<BR> <B>To: </B><adobe.scripting.indesign@adobeforums.com><BR> <B>Subject: </B>re: [AS] Open without showing window in InDesign CS<BR> <BR> A new message was posted by Dave Saunders in <BR> <BR> <B>InDesign Scripting</B> --<BR> [AS] Open without showing window in InDesign CS.<BR> <BR> I just tried this and it worked: <BR> <BR> Tell application "Finder" <BR> set myFile to (choose file) as string <BR> end tell <BR> <BR> tell application "InDesign CS" <BR> open myFile without showing window <BR> open myFile with showing window <BR> activate <BR> end <BR> <BR> Without the activate, it was easy to conclude it wasn't working, but once I realized that it all might be happening in the OS background, that resolved the issue. <BR> <BR> I'm not sure what you mean about "sending scripts to hidden windows." You can certainly operate on the document and its attributes, but because it doesn't have a window, you won't be able to do anything that depends on it having a window. For example, you can't have selections in a hidden window. <BR> <BR> Dave <BR> <BR> <HR ALIGN=LEFT SIZE="3" WIDTH="200">View/reply at [AS] Open without showing window in InDesign CS <a href="http://www.adobeforums.com/cgi-bin/webx?13@@.2cce7aba/0"><http://www.adobeforums.com/cgi-bin/webx?13@@.2cce7aba/0></a> <BR> Replies by email are OK.<BR> Use the unsubscribe <a href="http://www.adobeforums.com/cgi-bin/webx?280@@.2cce7aba!folder=.eea52bc"><http://www.adobeforums.com/cgi-bin/webx?280@@.2cce7aba!folder=.eea52bc></a> form to cancel your email subscription.<BR> <BR> <BR> </SPAN></FONT>
Technical Details
Message-ID:
<BBE18F43.F774%tkuypers@pandora.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<BBE17E62.F761%tkuypers@pandora.be>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,9859c8f1cd692854 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-19 12:38:09 PST From: Ton_Kuypers@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: [AS] Open without showing window in InDesign CS Message-ID: <BBE18F43.F774%tkuypers@pandora.be> Date: Wed, 19 Nov 2003 12:21:07 -0800 References: <BBE17E62.F761%tkuypers@pandora.be> Lines: 59 User-Agent: Microsoft-Entourage/10.1.4.030702.0 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit