set findThese to {":"}
tell application "Adobe InDesign CS3"
set allSel to selection
try
set aSel to item 1 of allSel
on error
return
end try
if class of aSel is character or class of aSel is insertion point then
set aStory to parent story of aSel
set n to index of aSel
set myC to ""
repeat
set n to n + 1
set myC to contents of character n of aStory
try
if myC is in findThese then exit repeat
end try
--select character n of aStory
--my showCharacter
end repeat
if contents of character (n + 1) of aStory is " " then
select character (n + 2) of aStory
else
select character (n + 1) of aStory
end if
my showCharacter()
end if
end tell
on showCharacter()
tell application "Adobe InDesign CS3"
set aSel to a reference to item 1 of selection
set aFrame to item 1 of parent text frames of aSel
if class of parent of aFrame is text then
set aFrame to first item of parent text frames of parent of aFrame
end if
repeat until class of aFrame is page or class of aFrame is document
set aFrame to parent of aFrame
end repeat
if class of aFrame is page then
set active page of layout window 1 to aFrame
set zoom percentage of layout window 1 to 200
end if
end tell
end showCharacter