• 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
addressing text frames with a certain applied paragraph style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

addressing text frames with a certain applied paragraph style


  • Subject: addressing text frames with a certain applied paragraph style
  • From: Terry Ofner <email@hidden>
  • Date: Thu, 28 Feb 2008 15:49:00 -0500

I am exporting InDesign pages to xml via xhtml cross-platform export. The only issue I have is that the auto-page numbers do not show up in the xml output. I have been trying to set the content of text frames whose applied paragraph style is "page" (the text frame with the auto page number). Here is my appleScript which does not seem to work:

tell application "Adobe InDesign CS3"
tell document 1

set theStyle to paragraph style "page"
set DocPages to the document offset of every page

repeat with i in DocPages
tell page i
set pageNum to document offset as string
set myTextFrames to (every text frame whose applied paragraph style is theStyle)
repeat with t in myTextFrames
set contents to pageNum
tell text 1 of parent story to recompose
set applied paragraph style of parent story to "page"
end repeat
end tell


end repeat
end tell

end tell

any suggestions would be super.
Terry

_______________________________________________
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
  • Prev by Date: Re: recursive folder count
  • Next by Date: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • Previous by thread: Re: recursive folder count
  • Next by thread: newbie help - parsing pathnames to rename files
  • Index(es):
    • Date
    • Thread