geplaatst door: guanabana
Ik wil de bookmarks van mijn indesign documenten van naam veranderen (eigenlijk omzetten naar een andere taal)

Ik heb een script gemaakt, het werkt goed. Het enige probleem is dat hij enkel de hoofd bookmarks aanpast (en zelfs vindt).

Dit is het script:

tell application "Adobe InDesign CS5"
tell active document
set allBookmarks to every bookmark
repeat with x from 1 to count of allBookmarks
log name of item x of allBookmarks as list
set name of item x of allBookmarks to my getTextInExcel(x)

end repeat
end tell
end tell

on getTextInExcel(x)
tell application "Microsoft Excel"
tell active workbook
tell active sheet
set thisVal to formula of cell ("A" & x)
log thisVal
end tell
end tell
end tell
return thisVal
end getTextInExcel

Kan er iemand mij helpen met het aanvullen van dit script zodat ALLE bookmarks gewijzigd kunnen worden?