83
This tool allows the user to repeat a measure many times. After selecting the measure to be repeated, there will be a prompt for the total number of times that measure will be played. For example, if you answer 10 to the prompt, the measure will be repeated 9 times showing only bar lines, the repeat measure sign, and repetition number on every 4th bar.
Staff Bold is 0.5 the size of Staff Metrics and Boxmark2 under User1 is 1.375 that of Staff Metrics.
wscript "'Browse can insert the path for you' \repMeas.js <PROMPT:Tot Times?=#>"
Suggested path \Program Files (x86)\Noteworthy Software\Noteworthy Composer 2\Scripts\
Rename the attachment removing .txt before installing.
This was my sample file, but you will have to change the User1 font if it doesn't contain Boxmark2.
!NoteWorthyComposerClip(2.751,Single)
|Clef|Type:Treble
|Key|Signature:F#|Tonic:G
|TimeSig|Signature:5/4
|Note|Dur:8th|Pos:-4
|Note|Dur:4th|Pos:-2
|Note|Dur:8th|Pos:-4
|Note|Dur:4th|Pos:-2
|Note|Dur:4th|Pos:-7
|Note|Dur:4th|Pos:-5
|Bar
!NoteWorthyComposerClip-End
You may need to change lines 58 and/or 59 to use a different font or User font number.
Enjoy!
** Updated attachment 02/28/2024 **
85
This is the newest version--I also tested the Wscript.Echo statement
WScript.StdOut.Write(WScript.StdIn.ReadAll());
WScript.Echo("Testing"); // This line may be taken out.
WScript.quit(99);
/*
WScript.StdErr.Write(WScript.StdIn.ReadAll());
WScript.quit(1);
*/
Same information, just in a different tab.
This might be helpful when working on scripts that change the staff (Return Code == zero).
89
When working on a script for a NWC tool, it can be helpful to see what is being passed to the script, especially the Fake and Context lines. This reads the clipboard and copies it to StdErr where a return code of 1 will display it. I called it seeClip.js:
WScript.StdErr.Write(WScript.StdIn.ReadAll());
WScript.quit(1);
Create the file in your usual Scripts folder (must end in .js). When installing it as a new script, browse for the name of it, then add "wscript " (note trailing space) to the beginning of the line. No prompts.