Clarification Running a script two ways.
Posted: Mon Jul 02, 2007 2:59 pm
7/2/2007 9:44:32 AM
Just asking for verification.
If I have a Vbs script meant to run via WScript Host, loaded in Zeus,
as the current document, and I execute a tool set as a Dos command with the argument:
"$fn"
then Zeus is executing my script via WScript Host --- Correct?
--------------------------------------------------------------------------------
Then if instead I (record a macro) to Macro\Execute Document as Script,
(looking at the Macro source I see the line:
call zeus.MacroExecuteDocument
This will execute the current document (though a vbs file) as a Zeus Macro, which must run the vbs file with an internal engine and not with WScript host. ---- Correct?
-----------------------------------------------------------
I want to be able to run my current document via WScript Host, so I use the Tool I made that uses the "$fn" argument.
I put this tool on my pop-up menu.
Apparently you cannot bind a Tool to a Key, only a Macro ? -----Correct?
If this is true, is there a way I can run my current document in WScript Host from a macro, that I could bind to a key?
---- Thanks, Ed
Just asking for verification.
If I have a Vbs script meant to run via WScript Host, loaded in Zeus,
as the current document, and I execute a tool set as a Dos command with the argument:
"$fn"
then Zeus is executing my script via WScript Host --- Correct?
--------------------------------------------------------------------------------
Then if instead I (record a macro) to Macro\Execute Document as Script,
(looking at the Macro source I see the line:
call zeus.MacroExecuteDocument
This will execute the current document (though a vbs file) as a Zeus Macro, which must run the vbs file with an internal engine and not with WScript host. ---- Correct?
-----------------------------------------------------------
I want to be able to run my current document via WScript Host, so I use the Tool I made that uses the "$fn" argument.
I put this tool on my pop-up menu.
Apparently you cannot bind a Tool to a Key, only a Macro ? -----Correct?
If this is true, is there a way I can run my current document in WScript Host from a macro, that I could bind to a key?
---- Thanks, Ed