🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17824

Re: AS changing text attributes

#17824
From: Kari Puikkonen
Date: Tue, 13 May 2003 09:57
28 lines
1310 bytes
Ole,

Thanks for the revision.

The script didn't work for me until I changed this line:



repeat with myStory in stories



to these two lines:



set mySelection to selection 
repeat with myStory in mySelection



...and I have to select all the text with the Type Tool or select the frame with the Selection Tool (insertion point is not enough).
But hey, now it works!

I found these - object reference of this and that - the most brain smashing thing when scripting InDesign AppleScripts,
but I hope that in one day I will get it...

Kari the Ever Learning
Technical Details
Message-ID: <1de8dffa.13@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!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-13 03:09:49 PST
From: "Kari Puikkonen" <kari.puikkonen@welho.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!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.13@WebX.la2eafNXanI>
Date: Tue, 13 May 2003 02:57:01 -0700
References: <1de8dffa.-1@WebX.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit