🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15736

Re: [AS] Open without showing window in InDesign CS

#15736
From: Ton_Kuypers
Date: Wed, 19 Nov 2003 20:21
43 lines
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 &lt;member@adobeforums.com&gt;<BR>
<B>Reply-To: </B>&lt;folder.eea52bc@adobeforums.com&gt;<BR>
<B>Date: </B>Wed, 19 Nov 2003 12:13:31 -0800<BR>
<B>To: </B>&lt;adobe.scripting.indesign@adobeforums.com&gt;<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>
&nbsp;&nbsp;[AS] Open without showing window in InDesign CS.<BR>
<BR>
I just tried this and it worked: <BR>
<BR>
Tell application &quot;Finder&quot; <BR>
&nbsp;set myFile to (choose file) as string <BR>
end tell <BR>
<BR>
tell application &quot;InDesign CS&quot; <BR>
&nbsp;open myFile without showing window <BR>
&nbsp;open myFile with showing window <BR>
&nbsp;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 &quot;sending scripts to hidden windows.&quot; 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">&lt;http://www.adobeforums.com/cgi-bin/webx?13@@.2cce7aba/0&gt;</a> <BR>
Replies by email are OK.<BR>
Use the unsubscribe <a href="http://www.adobeforums.com/cgi-bin/webx?280@@.2cce7aba!folder=.eea52bc">&lt;http://www.adobeforums.com/cgi-bin/webx?280@@.2cce7aba!folder=.eea52bc&gt;</a> &nbsp;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!webx
References: <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