Indesign and Applescript method

Hi.
Is there any method called Next item, Previous item in Apple script. In java script and vb we have this method.

VB syntax for is :

set myatt =xml.XMLAttribute
set myattname = myatt.FirstItem
set myname = myattname.Name

ā€“
set myattname =myatt.NextItem(myattname)

I have written script, but it does not accept the Next item Method. Is there some other method used instead of this. If so, can anyone let me know.

-jacintha

I think what you are looking for is a repeat loop

so for example:


tell application "Adobe InDesign CS2"
	tell document 1
		set theFrames to text frames
		repeat with aframe in theFrames
			set FrameID to id of aframe
			display dialog FrameID
		end repeat
	end tell
end tell

does that help ?

mm