This script is made using the “Record Macro” and is supposed to copy the flow info over to Project info, however when running this it just open the “Project Info” and doesn’t do anything.
If someone knows how to write this in Lua I would be most grateful
local app=DoApp.DoApp()
app:doCommand([[File.ScoreInfo]])
app:doCommand([[Project.SetScoreInfoInternal?BlobID=11&OpenScoreID=7]])
Pressing buttons seems pretty basic for scripting. Even Finale’s first iteration of that offered that ability. I haven’t tried it, but there are keyboard options for accessing buttons, and those should work, no?
UPDATE: I can confirm scripting does NOT capture even keystrokes in a dialog (at least in the Info Dialog), making scripting all but useless for a huge number of tasks. That’s assuming I’m creating a script correctly. Someone with more experience in this area can test this. HOWEVER, you CAN maneuver and select anything in a dialog using only keystrokes.
Not by (Dorico) scripting, but within the Project Info dialog you can use the “Copy info from” section at the bottom – select the Project in the left-hand column, and then copy info from Flow 1.
Hi!
Yes I know I can copy the info by hand but not via lua scripting.
I have a bunch of music xml files and I have made a script to batch open them, resetting some layout stuff and then saving them.
That works great, however when opening those xml’s the name of the piece is always set in to the Flow Info inside Dorico, but I want them to be set in the Project Info, that’s why I’m looking for a way to change it via scripting.
In situations such as this I tend to work with external scripting / automation tools.
I seriously cannot recommend Keyboard Maestro for Mac enough, the tool very impressive and will make it possible to automate almost everything - even cross application macros (which might make sense for your multi-file processing). It has saved me many hours of work. Sadly I am not using a Mac for my primary work anymore.
If you’re on Windows, AutoHotkey seems to be the way to go - haven’t tried it yet, though.