Juhu!!!
Ich danke dir für deine Hilfe!
Es funktioniert jetzt alles.
select text of myDummyframe funktioniert doch, wie du sagtest, allerdings nur dann wenn der Inhalt des Frames auch sichtbar ist auf der Seite in Indesign. In meinem Falle war der DummyTextframe einfach zu klein. Ich hab jetzt die Größe geändert und es funktioniert wie es soll.
on makeFootnote(myDocument, myInsertion, myText, myparagrahStyleRef)
with timeout of 600 seconds
tell application "Adobe InDesign CS2"
tell myDocument
set myDummyframe to make text frame with properties {label:"dummy", contents:myText, geometric bounds:{0, 0, 200, 200}}
set applied paragraph style of text of myDummyframe to myparagrahStyleRef
my PlaintextTags2Style(myDocument, myDummyframe)
set myNewfootnote to make new footnote with properties {label:"autofussnote"} at myInsertion
select text of myDummyframe
tell application "Adobe InDesign CS2"
copy
end tell
select last insertion point of myNewfootnote
tell application "Adobe InDesign CS2"
paste
end tell
delete myDummyframe
end tell
end tell
end timeout
end makeFootnote