Re: InDesign: Name of Paragraph Style
Re: InDesign: Name of Paragraph Style
- Subject: Re: InDesign: Name of Paragraph Style
- From: David Wolfe <email@hidden>
- Date: Wed, 14 Mar 2007 19:03:12 -0400
Thank you Shane! You're a god!
After I sent this plea for help, I set out to try this method,
thinking that I would have to get all the names first. But the way I
was going about it would have been a lot longer. The script works
perfectly. I even added the Character Styles. The completed script
will change all styles to Spanish and rename all paragraph and
character styles to add "SP:". Then we'll just drop the point size in
the body text styles and set off translating.
I will be registering for your Applescript Pro Sessions in June. I'm
looking forward to all that I know I'll learn. See you there.
Thanks again,
David Wolfe
On Mar 14, 2007, at 6:48 PM, Shane Stanley wrote:
On 15/3/07 9:42 AM, "David Wolfe" <email@hidden> wrote:
But as they are renamed, they are pushed
down the list alphabetically, then "reprocessed" resulting in several
of the paragraph styles in the middle of the list with new names like
"SP: SP:" and "SP: SP: SP: SP:", and some others not being renamed
because the counter runs out. Any ideas what I'm doing wrong?
Get all the names at once, and loop through them -- that'll be
quicker, too.
tell active document
set oldNames to name of paragraph styles 3 thru -1
repeat with i from 1 to (count of oldNames)
set oldName to item i of oldNames
set name of paragraph style oldName to ("SP:" & oldName )
--
Shane Stanley <email@hidden>
AppleScript Pro Denver, June 2007 <http://scriptingmatters.com/aspro>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40settingpace.com
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden