🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17799

Re: AS changing text attributes

#17799
From: Olav Kvern
Date: Mon, 12 May 2003 00:26
20 lines
1366 bytes
Kari--

The answer is in the error message. "[BOLD]" is a string, not an object. Strings don't have properties--such as "parent story," so the script fails.

I'm not sure why it would come up--maybe if there's only one instance of the string "[BOLD]" in the text? The other possibility is that the text you've found is inside a table cell.

In any case, when you get an error like this from what you think should be a text object, you need to add "object reference" to the script line, as in:



set myStory to object reference of parent story of object reference of myStartItem 




Or do it when you define the myStartItem variable.

Thanks,

Ole
Technical Details
Message-ID: <1de8dffa.9@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8dffa.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,3f638a313e6d5906
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-11 17:39:30 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: AS changing text attributes
Message-ID: <1de8dffa.9@WebX.la2eafNXanI>
Date: Sun, 11 May 2003 17:26:17 -0700
References: <1de8dffa.-1@WebX.la2eafNXanI>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit