NoteWorthy Composer Forum

Forums => Tips & Tricks => User Tools => Topic started by: NoteWorthy Online on 2016-12-24 03:39 pm

Title: Retrieve NWC File Version, Font, and Play Time Information
Post by: NoteWorthy Online on 2016-12-24 03:39 pm
NWC 2.75 has a builtin INFO method that can be accessed from the command line. It shows you some summary stats about a file, including NWC version used to create it, play time, and fonts used. You can access this facility from the User Tool mechanism using the attached Windows batch file. The recommended user tool settings are also shown.

Additional Details: A file's path name is sent to user tools that handle File Text. The file path is only provided for existing non-sample files. If you want to retrieve the version info for an old file, you must make sure that you do not save it prior to invoking this tool. Once you save a file in a new version of NWC, the old information is lost.

Additionally, user tools receive input encoded as utf-8. If your files are named with characters beyond simple ASCII, you will likely experience issues with this tool.

Spoiler (click to show/hide)
Title: Re: Retrieve NWC File Version, Font, and Play Time Information
Post by: NoteWorthy Online on 2016-12-24 05:04 pm
Fixed numerous problems with initial command.
Title: Re: Retrieve NWC File Version, Font, and Play Time Information
Post by: Flurmy on 2016-12-24 05:42 pm
I still miss something.
After running the user tool I just get:
Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.75,Single)
|Text|Text:"Processing File: \'C:\]Tmp\]Pollet - Deuxime sonate sans pdales.nwc\'"|Font:StaffBold|Pos:8|Wide:Y
!NoteWorthyComposerClip-End
So what?

P.S. Please note that the 'รจ' in the filename disappeared.
Title: Re: Retrieve NWC File Version, Font, and Play Time Information
Post by: NoteWorthy Online on 2016-12-24 06:11 pm
I don't know what is happening for you, although the filename character issue is mentioned above. If you are not getting a report after running the tool, then the batch command is not concluding properly (the exit /b 99 call triggers report mode back to NWC).

It might help if you explained more details about your system. Also, are you able to run the user tool command shown below? If so, what do you get?

Code: [Select · Download]
cmd.exe /C "set && exit /b 99"
Title: Re: Retrieve NWC File Version, Font, and Play Time Information
Post by: NoteWorthy Online on 2016-12-24 06:51 pm
I made some additional changes in an attempt to eliminate any possible causes for Flurmy's troubles.
Title: Re: Retrieve NWC File Version, Font, and Play Time Information
Post by: Flurmy on 2016-12-24 08:24 pm
Also, are you able to run the user tool command shown below? If so, what do you get?
Yes, it runs. It opens a dialog box reporting the listing that results from the "set" command.
I suppose that's what you expected.
Also, the new version of nwcInfo.cmd works too.
Thanks