Article View: adobe.scripting.indesign
Article #15748Re: [AS] Open without showing window in InDesign CS
From: Ton_Kuypers
Date: Wed, 19 Nov 2003 22:57
Date: Wed, 19 Nov 2003 22:57
30 lines
1547 bytes
1547 bytes
Dave, Olav,
The reason my scripts wouldn�t run when the file was opened invisible:
tell application "InDesign CS"
set mydoc to open "MacHarley:Users:ton:Desktop:Template.indt" �
without showing window
tell active document
(*
This won't work when document is hidden:
-> set vTitleBox to page item 1 of spread 1 whose �
label is "TitleBox"
But this one does:
*)
set vTitleBox to page item 1 of spread 1 of mydoc whose �
label is "TitleBox"
set text of vTitleBox to "Menu stands
Supports de menu
Menustandaards"
end tell
tell mydoc to make window
end tell
You need to add the reference to the document in all statements...
Now let's see what the difference in speed is :-)
Ton
Technical Details
Message-ID:
<BBE1B3E6.F7A4%tkuypers@pandora.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!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 X-Google-Thread: f939a,9859c8f1cd692854 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-19 15:07:57 PST From: Ton_Kuypers@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!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: <BBE1B3E6.F7A4%tkuypers@pandora.be> Date: Wed, 19 Nov 2003 14:57:26 -0800 References: <BBE17E62.F761%tkuypers@pandora.be> Lines: 31 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