Re: Audit Bar Lines
I'm still having trouble. I download the file, copy it to
"C:\Program Files (x86)\Noteworthy Software\NoteWorthy Composer 2\Scripts"
and delete the .txt extension.
Good, this should leave the file entitled "auditBars.js"
That folder has 3 sub-folders: lib, wx, and wxtools, and 18 files. All files except the new one have a .php extension.
When user tools were first introduced the default language used for them was PHP. What you are seeing are the User Tools that are distributed with the "User Tool Starter Kit", which were all written in the early days, and are thus written in PHP.
I believe the "wx" and "wxtools" folders comprise a Windows eXtensions library for PHP.
The starter kit installs a PHP interpreter.
The current recommended user tool language is lua, and the lua interpreter is built into NWC
However, you are not forced to use lua or PHP to create user tools. EG, this one uses javascript, hence the .js extension. I've personally written tools with vbscript (.vbs) - the Microsoft supplied "WScript" interpreter handles both these languages just fine.
When I hit Alt-F8 I get a pop-up titled "User Tools" with 5 Groups listed, with the second, ".Plugins" selected. Under "Available Commands" there are 12 tools listed. I click the "New..." button and get another pop-up titled "User Tool Description". The first Text Box is "Group:".
The drop-down list is empty.
The empty dropdown just means that you haven't manually installed any user tools before, so haven't created any groups to put them in.
The groups that start with a period "." are automatic ones, and I, personally, don't put any other user tools in them.
E.G. The .Plugins group is populated automatically by User Objects that have built-in User Tools. These enable User Tool type use of the related Object - it only applies to some objects as not all contain user tools.
My system uses a holdover from the early days and thus I have a group called "ConsoleClipScripts" where my manually installed tools go. You can have as many groups as you want.
I also have a group called "Default" but I don't recall how it was created, too many moons have passed in the meantime.
If you type in the name of a group that doesn't exist, then that group will be created automatically. If you delete, or move, the last tool within a group then that group will automatically be deleted too.
I filled in ".Developer Tools". I put "Audit Bars" in the Name, and
"WScript " in the Command. Input Type was pre-selected as "Clip Text" and none of the 4 Options were selected. I click "Browse".
and the Scripts directory opens. I select auditBar.js and click "Open". The User Tool Description pop-up updates with "auditBar" in the Name and "Scripts\auditBar.js" in the Command.
The first part of this is correct. You have to opportunity to change the "Name" if the default doesn't suit you.
Also, it appears your system decided to overwrite the command field. Sorry about that, I should have considered the possibility in my earlier description.
Lawrie's last step: <check the command line to make sure there is a space after "WScript", then click "OK".> does not seem to apply, since the Command has changed. Clicking OK at this point seems to do nothing. Changing the Command back to "WScript " and pressing OK also seems to do nothing.
The correct command field should read
"wscript Scripts/auditBar.js"
without the quotes
<EDIT>
Following Warrens updated code the command line should now read:
"wscript Scripts\auditBar.js <PROMPT:Summarize?:=|Y|N>"