addressing text frames with a certain applied paragraph style
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