Article View: adobe.scripting.indesign
Article #15158[VB] Open and update Link problem.
From: Perrin_Kliot
Date: Thu, 18 Dec 2003 17:10
Date: Thu, 18 Dec 2003 17:10
10 lines
1196 bytes
1196 bytes
I'm trying to write a simple script that will open a document and update the linked text file, unfortunately nothing about ID scripting is simple for me :-o
Set myInDesign = CreateObject("InDesign.Application.CS")
Set myDocument = myInDesign.open("document.indd")
set myLinks = myDocument.links(1)
myLinks.update
This script opens the file fine but doesn't update the link because ID opens a dialog box asking the user to update the link manually. If I close the dialog box and run the script again it works fine. How do I suppress the dialog box? or am I approaching this wrong?
Thanks Perrin
Technical Details
Message-ID:
<2cceffc3.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,6b79b85a79aa8ebb,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-18 09:37:55 PST From: Perrin_Kliot@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: [VB] Open and update Link problem. Message-ID: <2cceffc3.-1@webx.la2eafNXanI> Date: Thu, 18 Dec 2003 09:10:02 -0800 Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit