If you have an Untitled document then you can't get its full name. Your file must be saved at least one time if you want get full name of document.
But my requirement is while User run CS4 then open any existed document(saved before).'
After that, start running a scritpt
Actually my script is a Delphi program.
Part code as below( much like script):
bsInDesign := CreateOleObject('InDesign.Application.CS4');
bsInDoc := bsInDesign.ActiveDocument; <------this part would get the xxxx.indd opened by user manually before this program start running.
showmessage(bsInDoc.FullName);<======= error message raise here : can not get FullName , because the document do not saved.
So, my requirement is : allow user open any existed and saved xxxxxx.indd.
Then, my program according to this opened xxxxx.indd to get its FullName.
In Indesign 2.0 scrpit showmessage(bsInDoc.FullName); works fine.
How come this will get a strange error in Indesing CS4.
It is an unreasonable error.