• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting changes to InDesign Master Pages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting changes to InDesign Master Pages


  • Subject: Re: Scripting changes to InDesign Master Pages
  • From: Peter Boctor <email@hidden>
  • Date: Wed, 23 Jul 2003 10:32:43 -0700

I think you want to first filter all the text frames with that label and then search just those, so something like this:

set cFindText to "03-30-2003"
set cReplaceText to "06-30-2003"

tell application "InDesign 2.0.2"
tell document 1
search (text frames whose label is "Footer") for cFindText replacing with cReplaceText
end tell
end tell

At 3:49 PM -0400 7/22/03, Larry McMunn wrote:
I need to script changing a date in a footer in a document.
The date is in a text frame labeled "Footer" on master page "B-Master"

The following will change all occurrences in the document. But I haven't found a syntax to limit the change to only the text frame from the master page.

set cFindText to "03-30-2003"
set cReplaceText to "06-30-2003"
tell application "InDesign"
tell document 1
search every story with find attributes {find text:cFindText} ,
with change attributes {change text:cReplaceText}
end tell
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Scripting changes to InDesign Master Pages (From: Larry McMunn <email@hidden>)

  • Prev by Date: Re: Why is AS so poorly documented?
  • Next by Date: Re: Indesign vs Quark: NO every text of every story
  • Previous by thread: Scripting changes to InDesign Master Pages
  • Next by thread: Re: Scripting changes to InDesign Master Pages
  • Index(es):
    • Date
    • Thread