🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
3 messages
3 total messages Started by KEL_DOUGAL Thu, 02 Apr 2009 07:14
Edit script to be usable in CS3 (place Specific Asset on Page)
#47
Author: KEL_DOUGAL
Date: Thu, 02 Apr 2009 07:14
13 lines
1172 bytes
Can someone help me edit this script to be usable in InDesign CS3

myLib = app.libraries.item("Library.indl");
myFounds = app.activeDocument.search("[SampleLibrary Asset]");
for (j = myFounds.length - 1; j >= 0; j--) {
 app.select(myFounds[j]);
 myLib.assets.item("[SampleLibrary Asset]").placeAsset(app.activeDocument);
}

This use to work in InDesign CS2 but it not working in C2.
 I tried placing the script to /Applications/Adobe InDesign CS3/Scripts/Scripts Panel/Version 4.0 Scripts /. But it did not help.

Thanks in advance.
Re: Edit script to be usable in CS3 (place Specific Asset on Page)
#51
Author: Kasyan_Servetsky
Date: Thu, 02 Apr 2009 07:55
12 lines
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;
Re: Edit script to be usable in CS3 (place Specific Asset on Page)
#103
Author: KEL_DOUGAL
Date: Thu, 02 Apr 2009 08:09
2 lines
644 bytes
This did the trick.
Thanks again.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads