🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #393

Re: Clear text overrides in applescriot for Indesign CS3 on Mac OSX 10.5.6

#393
From: Tynan
Date: Wed, 25 Mar 2009 15:44
72 lines
2878 bytes
woohoo!

working!, thanks a stack for the textprep code, once the block at the top captures the variables and does whatever else it does, the rest is simple enough

I've posted my changes for anyone else that's in the same boat, apologies for any ghastly coding in there, but it works!

thanks again, this code appears at L102 and runs all the way down to the 'try'

............
if (StyleName == "")
		{
		//	bolds etc
			if (bold)
				StyleName = "Body text (Bold)";
			if (italic)
			{
				if (bold)
					StyleName = "Bold text (Bold/Italic)";
				else
					StyleName = "Body text (Italic)";
			}

			//	allcaps and smallcaps to allcaps, despite the character style name!
			if (allcaps)
				{
					StyleName = "Small caps (Body text)";
					if (italic) StyleName = "Small caps (Italic)";
					if (bold) StyleName = "Small caps (Bold)";
					if (bold)
						{if (italic) StyleName = "Small caps (Bold/Italic)";
						}
				} else
			{
				if (smallcaps)
				{	
					StyleName = "Small caps (Body text)";
					if (italic) StyleName = "Small caps (Italic)";
					if (bold) StyleName = "Small caps (Bold)";
					if (bold)
						{if (italic) StyleName = "Small caps (Bold/Italic)";
						}
				}
			}			

			//	underlined
			if (underline)
					{	
					StyleName = "Body text (Underscored)";
					if (italic) StyleName = "Body text (Underscored) italic";
					if (bold) StyleName = "Body text (Underscored) bold";
					if (bold)
						{if (italic) StyleName = "Body text (Underscored) bolditalic";
						}
					if (smallcaps)
						{
						StyleName = "Body text Smallcaps (Underscored)";
						if (italic) StyleName = "Body text Smallcaps italic (Underscored)";
						if (bold) StyleName = "Body text Smallcaps bold (Underscored)";
						if (bold)
							{if (italic) StyleName = "Body text Smallcaps bolditalic (Underscored)";
							}
						}
					if (allcaps)
						{
						StyleName = "Body text Smallcaps (Underscored)";
						if (italic) StyleName = "Body text Smallcaps italic (Underscored)";
						if (bold) StyleName = "Body text Smallcaps bold (Underscored)";
						if (bold)
							{if (italic) StyleName = "Body text Smallcaps bolditalic (Underscored)";
							}
						}
					}
Technical Details
Message-ID: <59b86485.12@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b86485.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,eb2cfe05176434d3
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Tynan@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Clear text overrides in applescriot for
 Indesign CS3 on Mac OSX 10.5.6
Message-ID: <59b86485.12@webcrossing.la2eafNXanI>
Date: Wed, 25 Mar 2009 08:44:08 -0700
References: <59b86485.-1@webcrossing.la2eafNXanI>
Lines: 81
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit