Run it inside InDesign.
On my mac trusted source can also be… ~/Documents/Adobe Scripts/ I can alias the file and run from any where ( well so I think? ) This worked here… ( doc open of cause )
alert( app.activeDocument.name );
I should have clarified that I want to execute the file externally, through a BAT file. I'm trying to eliminate all GUI steps. Essentially I have a set of routines I'd like run once a day, it would be ideal to run them outside of office hours as I'm dealing with the files and InDesign in other ways throughout my workday.
However as you pointed out if you run the script through the Script Panel there is no dialog asking for confirmation, so it must be possible to execute a script without the dialog.
That did the trick.