This option indicates that the specified script is to be run without user intervention. It is applicable to AxWscript only. No compilation, command line or runtime error windows will be displayed, and a notification icon will not be shown.
Any user interface specified in script code will still be displayed normally. However, it is intended that this option be used in conjuction with the ScriptTarget class's IsUnattended property at runtime, in order to provide alternative non-visual logic. See the Gui/Cui/Unattended (GCU) Design Pattern for addition information.
Because no errors are reported, this option should be used with care - on well tested code.
IMPORTANT: specifying the /unattended option on the command line will override the Log Errors in the Event Log option dialog setting, and ALWAYS output errors to the application event log on supported operating systems.
Applies To
All languages, AxWscript only
Shortcut
/una
Example
> axscript /unattended hello.jsx
The example above, will run script in in unattended mode. No visual errors or notification icon will be displayed. Any errors will be recorded in the application event log if the operating system supports it.
Portable Script File (.psf) Behavior
This option is NOT persisted in a Portable Script (.psf) File.
See Also
Viewing Information in a Portable Script File | Including Author, Script & Code Information