Article View: adobe.scripting.indesign
Article #51Re: Edit script to be usable in CS3 (place Specific Asset on Page)
From: Kasyan_Servetsky
Date: Thu, 02 Apr 2009 07:55
Date: Thu, 02 Apr 2009 07:55
12 lines
1053 bytes
1053 bytes
var myDoc = app.activeDocument;
myLib = app.libraries.item("Library.indl");
app.findTextPreferences = app.changeTextPreferences = null;
app.findTextPreferences.findWhat = "[SampleLibrary Asset]";
myFounds = myDoc.findText();
for (j = myFounds.length - 1; j >= 0; j--) {
app.select(myFounds[j]);
myLib.assets.item("[SampleLibrary Asset]").placeAsset(myDoc);
}
app.findTextPreferences = app.changeTextPreferences = null;
Technical Details
Message-ID:
<59b87a73.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b87a73.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,2f274ed16856cf45 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Kasyan_Servetsky@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Edit script to be usable in CS3 (place Specific Asset on Page) Message-ID: <59b87a73.0@webcrossing.la2eafNXanI> Date: Thu, 2 Apr 2009 00:55:23 -0700 References: <59b87a73.-1@webcrossing.la2eafNXanI> Lines: 7 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit