🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #983

Re: ID CS3 FindChange Paragraph Style - please help

#983
From: GraemeS
Date: Wed, 25 Feb 2009 01:24
27 lines
2136 bytes
No luck I'm afraid Ole.

I got an error message that is now different from my other attempts. I'll try to type the error message as accurately as I can below for you.. (it's a pity ID doesn't let me 'copy' the error message)

JavaScript Error!

Error Number: 25
Error String: Expected: :
Line: 1
Source: app.findTextPreferences.properties =
{findWhat:"section_style"};app.changeTextPreferences
.properties =
{appliedParagraphStyles.item
("Section")};app.findChangeTextOptions.properties =
{include footnotes:true, include master pages:true,
include hidden layers:true, whole word:false};
Offending Text: footnotes

Ole, the full line I used that got the error above was:
text	{findWhat:"section_style"}	{appliedParagraphStyle:app.documents.item(0).paragraphStyles.item("Section")}	{include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}	Find text section_style and apply my parastyle Section.

The Offending Text message is now different from what I have been getting previously... I have been getting 'Offending Text: paragraph' when using the following code:
text	{findWhat:"section_style"}	{applied paragraph style:paragraph style "price" of document 1}	{include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}	Find text section_style and apply my parastyle Section.

Thanks for your response Ole. As you guessed, I'm a bit of a noob, but I love the challenge - it's just a pity that this one has me bamboozled completely.

Graeme
Technical Details
Message-ID: <59b7fae5.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b7fae5.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fad635109a00016d
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: GraemeS@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: ID CS3 FindChange Paragraph Style - please help
Message-ID: <59b7fae5.2@webcrossing.la2eafNXanI>
Date: Tue, 24 Feb 2009 17:24:10 -0800
References: <59b7fae5.-1@webcrossing.la2eafNXanI>
Lines: 39
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit