🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15735

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

#15735
From: Dave_Saunders
Date: Wed, 19 Nov 2003 20:13
17 lines
1358 bytes
I just tried this and it worked:

Tell application "Finder"
 set myFile to (choose file) as string
end tell

tell application "InDesign CS"
 open myFile without showing window
 open myFile with showing window
 activate
end

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.

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.

Dave
Technical Details
Message-ID: <2cce7aba.0@webx.la2eafNXanI>
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:08 PST
From: Dave_Saunders@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: <2cce7aba.0@webx.la2eafNXanI>
Date: Wed, 19 Nov 2003 12:13:31 -0800
References: <BBE17E62.F761%tkuypers@pandora.be>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit