🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #10002

Finding a paragraph style in a text box

#10002
From: Kris_Mize
Date: Wed, 12 Jul 2006 14:47
11 lines
1186 bytes
I writing a script that takes a text frame and changes paragraph styles to a paragraph based on the current style. However, once I attempt to grab the paragraph style from the selected paragraph, it errors out. Here is a sample of my script;

tell myBox
	set paraRef to paragraph paraNumber
	if applied paragraph style of paragraph paraRef contains "Main Feature Description" then
	set applied paragraph style of paragraph paraRef to noPar
	set applied character style of paragraph paraRef to noChar
	set paraTag to paraTag + 1
	end if

We are running 10.4.6 with InDesign CS1. Thank you in advance for any advice.
Technical Details
Message-ID: <3bc0e373.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ispa.de!news.ecp.fr!news.stben.net!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,edce4de98901b55,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Kris_Mize@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Finding a paragraph style in a text box
Message-ID: <3bc0e373.-1@webcrossing.la2eafNXanI>
Date: Wed, 12 Jul 2006 07:47:44 -0700
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ispa.de!news.ecp.fr!news.stben.net!webcrossing