Hi, it's all part of the scripting guide ;-)
tell application "Adobe InDesign CS5.5"
tell active document set article1 to make article with properties {name:"Article1"} set article2 to make article with properties {name:"Article2"} set article3 to make article with properties {name:"Article3"} set article4 to make article with properties {name:"Article4"} move article4 to beginning of article 0 --which is an index; should be the first now move article1 to end of article 0 --should be the second now move article3 to after article4 --should be the second now; article 1's now the third move article2 to before article1 --should be the third now; 1's now the last end tell end tell
Hope it'll work!
Hans-Gerd Classen
|