Re: [SPF - SPAM] - Re: Script: select next paragraph
I wanted it to to select the next paragraph after the one that was selected. Finally was able to get that paragraph's index by selecting it, then selecting from there to the beginning of the story, then getting the count of paragraphs within that text. It seems pretty lame for "NextParagraph" to work only in reference to a specified paragraph, since you could just as easily say Idapp.Select(myStory.Paragraphs.Item(n+1)) and use fewer keystrokes. Oh well...
-----Original Message----- From: InDesign Talk [mailto:indesign@lists.lassosoft.com] On Behalf Of Robert Tkaczyk Sent: Wednesday, July 07, 2010 11:41 AM To: InDesign Talk Subject: [SPF - SPAM] - Re: Script: select next paragraph
hi Kathe,
> IDapp.Select(myStory.Paragraphs.NextItem, > InDesign.idSelectionOptions.idAddTo) > > But it keeps generating the error message "Parameter is not optional."
> I wonder what parameter that might be?
WHICH paragraph ?
"myStory.Paragrapgs" is collection of all paragraphs in "myStory".
-- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/InDesign/Browse/ Manage your subscription: http://www.ListSearch.com/InDesign/
-- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/InDesign/Browse/ Manage your subscription: http://www.ListSearch.com/InDesign/
Jul 07
Dave Saunders Re: [SPF - SPAM] - Re: Script: select next paragraph
Jul 07, 2010; 13:17
Dave Saunders
Re: [SPF - SPAM] - Re: Script: select next paragraph
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!