InDesign CS - Threaded text frame help

I’m trying to format several threaded text frames but I can’t figure out how to get the script to continue beyond the first text frame. I’ve named the first text frame with the Script Label “IGF”


tell application "InDesign CS" 
activate 
tell document 1 
tell text frame "IGF" 
[do a lot of formatting here] 
end tell 
end tell 
end tell 

I’ve tried various ways of implementing “next text frame”, repeat loops and naming every single text frame with a Script Label but none have worked. Is there a way to format all the text of the threaded text frames?

Thanks,
BD

I’m working from memory here, so I might not have the syntax exactly right. You need to address the story. Try:

tell application "InDesign CS" 
activate 
tell document 1 
tell parent story of text frame "IGF" 
[do a lot of formatting here] 
end tell 
end tell 
end tell 

Thanks. That’s exactly what was needed to make it work.

BD