I'd like to be able to run a script without having to confirim that I want to run the script.
"You are about to run a script in Adobe InDesign CS5. You should only run scripts from a trusted source.
Do you want to run the script?"
Is there a way to execute the script without having to click this?
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.
Europe, Middle East and Africa