Als ik je vraag goed begrijp wil je de naam achterhalen van een document dat je op dit moment geopend hebt.
Dat doe je meestal door te vragen om de naam van het huidige document:
tell application "Microsoft Word"
set naam to the name of active document
end tell
Het huidige venster:
tell application "FileMaker Pro"
set naam to the name of window 1
end tell
Of (als je een programma niet rechtstreeks met AppleScript kunt benaderen) via System Events:
tell application "Finale 2005b" to activate
tell application "System Events"
tell process "Finale 2005b"
set naam to the name of window 1
end tell
end tell
Hopelijk helpt dit.
Hartelijke groet.