FinaleScript - Change Score name

General notation questions, including advanced notation, formatting, etc., go here.

Moderators: Peter Thomsen, miker

Post Reply
User avatar
ICBSprod 22-12
Posts: 21
Joined: Mon Feb 17, 2020 6:24 pm
Finale Version: 27
Operating System: Windows

Post by ICBSprod 22-12 » Mon Feb 17, 2020 7:09 pm

Hi!

1: Is there any way (and if so - how?) to use FinaleScript to change the score name in multiple files? I am about to finish a project which consist of nearly 900 Finale files. And I need to change the Score name. Every file will have the same scorename.

2: Is there anyone out there that can give an understandable introduction to FineScript? (For dummies) I have read Finale help about the topic. It did not help me very much. I have managed to find out how to change some of the information in the Copyright field in my 900 finale files mentioned above, but thats about it.

- From my point of wiev, I believe the FinaleScript feature would be a very handy tool, if I just could understand how to use it.

Børge
Nørway
Norway - Win10 - Finale user since 3.7 - now on 27 - SmartScore 64 Pro


User avatar
motet
Posts: 8284
Joined: Tue Dec 06, 2016 8:33 pm
Finale Version: 2014.5,2011,2005,27
Operating System: Windows

Post by motet » Mon Feb 17, 2020 7:47 pm

I call it "documentation by rumor," but there is documentation of sorts in the manual. I've never done anything like you seek, but it seems like it should be possible. There's a batch process folder and subfolder command to apply it to a bunch of files. menu item "score manager" should bring up the score manager, then select tab "file info", then type "New Score Name" near "Score Name". Something like that. See documentation for exact wording!

I'm suspect you'll have to do a lot of trial and error to get it right, but for 900 files it's probably worth it! If you get it to work, please report back.

User avatar
Skjalg
Posts: 40
Joined: Tue Dec 27, 2016 7:16 pm
Finale Version: 26
Operating System: Mac

Post by Skjalg » Mon Feb 17, 2020 9:32 pm

There are some navigational issues in the Score Manager. If possible, use [tab] for navigation. And - most important - have the script to select the "File Info" tab in the Score Manager as the very first script action... It is easy to forget that the SM remembers that tab setting between sessions.
Finale26
Mac High Sierra
Finale user since 1995

User avatar
motet
Posts: 8284
Joined: Tue Dec 06, 2016 8:33 pm
Finale Version: 2014.5,2011,2005,27
Operating System: Windows

Post by motet » Mon Feb 17, 2020 9:57 pm

Skjalg wrote:
Mon Feb 17, 2020 9:32 pm
have the script to select the "File Info" tab in the Score Manager as the very first script action... It is easy to forget that the SM remembers that tab setting between sessions.
Does it hurt to issue the tab command if the tab is already selected?

User avatar
ICBSprod 22-12
Posts: 21
Joined: Mon Feb 17, 2020 6:24 pm
Finale Version: 27
Operating System: Windows

Post by ICBSprod 22-12 » Fri Feb 21, 2020 6:48 pm

Thanks to You all!

I have almost achieved my goal. And I do think I understand the tool a bit better now, maybe...
I can now open Score manager, select the correct tab.
Changing Score name was somehow harder though.
I can enter all the text boxes/fields directly by using the "near" command, and change the text in them, unless Score Name Insert.
I have tried all variations/combinations of the Label name, but with no result.
Anything I am missing here?
Using the tab function worked, but it takes too much time waiting for the cursor to tab through all the text boxes to finally enter the last one before entering new text.

Anyone out there who knows how to access the Score Name field directly?

And what is the best way to close the ScoreManager window? I told the script to move the pointer to the "X" in the upper right corner, and then "click", as long as the window don't have an "OK" button. But is this the best way? (Tried to use: Close "Score Manager", but that closed the whole document...)

Børge
Norway - Win10 - Finale user since 3.7 - now on 27 - SmartScore 64 Pro

User avatar
motet
Posts: 8284
Joined: Tue Dec 06, 2016 8:33 pm
Finale Version: 2014.5,2011,2005,27
Operating System: Windows

Post by motet » Fri Feb 21, 2020 7:27 pm

Alt+N will get you to the Score Name insert box:

type raw alt "N"
type "Some Name"

User avatar
motet
Posts: 8284
Joined: Tue Dec 06, 2016 8:33 pm
Finale Version: 2014.5,2011,2005,27
Operating System: Windows

Post by motet » Fri Feb 21, 2020 7:31 pm

Executing

menu item "Score Manger"

with the score manager already open will close it.

User avatar
ICBSprod 22-12
Posts: 21
Joined: Mon Feb 17, 2020 6:24 pm
Finale Version: 27
Operating System: Windows

Post by ICBSprod 22-12 » Fri Feb 21, 2020 8:49 pm

Beautiful!!

Thanks from Norway!
Børge
Norway - Win10 - Finale user since 3.7 - now on 27 - SmartScore 64 Pro

User avatar
ICBSprod 22-12
Posts: 21
Joined: Mon Feb 17, 2020 6:24 pm
Finale Version: 27
Operating System: Windows

Post by ICBSprod 22-12 » Wed Mar 18, 2020 7:03 am

I have built my FinaleScripts I need to finalize my project.
But one question remains.

I am now going to batch prosess. Batch prosessing in general is no problem, but I am facing one more challenge.

I have one main folder with 899 subfolders. The subfolders are named 001, 002, 003, and so on, up to 899.
In each subfolder there is two finale files. In the subfolder 001, I have the files; "001 A5.musx" and "001 KORALBOK.musx"
In subfolder 002, I have the files; "002 A5.musx" and "002 KORALBOK.musx", and so on.

I am only going to prosess the "...KORALBOK..." files.
Is there any way to make FinaleScript skip spesific files? Or limit the batch prosess to spesific files?
I need FinaleScript to skip the "...A5..." files, or limit the prosess to the "...KORALBOK..." files.
Can that be done?

Børge
Norway
Norway - Win10 - Finale user since 3.7 - now on 27 - SmartScore 64 Pro

User avatar
HaraldS
Posts: 229
Joined: Mon Dec 19, 2016 11:46 am
Finale Version: 25.5
Operating System: Windows

Post by HaraldS » Wed Mar 18, 2020 2:05 pm

As FinaleScript in general is unable to execute decisions or make use of variables, I suggest you hide all files which should be excluded from processing with the „Hidden“ or „Read only“ file attribute. This should be possible in Windows Explorer. If you search all those files, you can most likely set those attributes for all of them at once.

In general: for your goals, you might consider Autohotkey or JWLua. They can be combined with FinaleScript and allow decisions and variables.
Finale 3.0-25.5, German edition, Windows 7
trombonist, pianist, conductor / Recklinghausen, Germany

Post Reply