Integer Loops?

Help!

This script returns the error, “expected end of line, etc. but found ‘repeat’”

what am i doing wrong?

thanks for helping someone whose last programming attempt was in Extended Basic on a TI99-4A. Cheers.

tell application “Extensis Portfolio 6.1”

set numrecords to count records of front gallery

end tell

set a to 1

repeat until a > numrecords

tell application “Extensis Portfolio 6.1”

set xfile to field "filename" of record a of front gallery

set xcaption to the field "description" of record a of the front gallery

-- set xkeywords to the field "keywords" of record a of the front gallery

end tell

tell application “iView MediaPro”

tell window 1
	
	
	set caption of every media item whose name contains xfile to xcaption
	
	
end tell

set a to a + 1

end repeat

end tell

Hi,

You see at the end there:

tell application “iView MediaPro”

     tell window 1 
              
              
             set caption of every media item whose name contains xfile to xcaption 
              
              
     end tell 
      
     set a to a + 1 
      
     end repeat 

end tell

The ‘end repeat’ and end tell is in the wrong order.

gl,