🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9172

Re: Placing Images in InDesign Documents

#9172
From: Harihara_Sudhan
Date: Sat, 09 Sep 2006 04:25
33 lines
1910 bytes
Dear Dave,

Thanks for the suggestion it working fine to capture the text within the Tags, but we need to select the Text with XML Tags and copy it to new text frame.Is it possible to do?

Sir, I am not much familier in Java Script, Just know the JavaScript...

Thanks in advance for the help.

Here i pasted the Programm...

for (i = 0; i <elm.xmlElements.length; i++) { if (elm.xmlElements[i].markupTag.name == "ce:figure") { myCont= elm.xmlElements[i].xmlAttributes.item("aid").value; //	 myTextFrame = elm.xmlElements[i].insertionPoints[0].textFrames.add(); 	 myTextFrame = myDocu.textFrames.add(); 	 gb=myTextFrame.geometricBounds; 	 myTextFrame.geometricBounds = [gb[0]=gb[2]-7, gb[1]+=15, gb[2]-=5, gb[3]-=30];

// To find the particular texts..[Figure Captions]//

	app.findPreference =null;
	app.changePreference = null;

myfr[a]= myTextFrame.contents = elm.xmlElements[i].contents;
         myfin = myDocu.search(myfr[a],false,false,undefined);
         app.select(elm.xmlElements[i].texts[0])
	 app.cut();
	 continue;
           a++;
	 //End of the figure caption//
	 }
}

From the above code we are able to select the Text and paste within the text frame only, but not the tags.

sir, Please help us...

Thanks & Regards
T.R.Harihara Sudhan
Technical Details
Message-ID: <3bc0a58f.12@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossing
References: <3bc0a58f.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,7733bbfe5b65ce99
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Harihara_Sudhan@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Placing Images in InDesign Documents
Message-ID: <3bc0a58f.12@webcrossing.la2eafNXanI>
Date: Fri, 8 Sep 2006 21:25:29 -0700
References: <3bc0a58f.-1@webcrossing.la2eafNXanI>
Lines: 46
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit