thanks, solger. not sure how to use that with the 'v.command' variable that lokasenna suggested. tried this:
Code:
function() reaper.Main_OnCommand(reaper.NamedCommandLookup(v.command), 0) end
tried with and without quotes around v.command. in either case i get crashing. if i paste a command id directly, as in your example, it works. looks like i have something wrong in syntax for the variable?
edit:
spoke too soon. looks like replacing this:
Code:
{ label = "REPLACE\nw1000ms", command = _fad0ff7281777ae665363b96d96f1651 },
with this:
Code:
{ label = "REPLACE\nw1000ms", command = "_fad0ff7281777ae665363b96d96f1651" },
makes it work. i'm guessing that's because the underscore at the start of the id necessitates quotes?
thanks again,
babag