2D Grid Palette of Buttons: Virtual Elgato Stream Deck

Hi @rlivingston, Thanks for developing this. It's handy.

I was wondering, instead of making a macro with a switch that has up to 100 cases, can you program it to execute one of the 100 macros (named 00~99) that is within a macro group named P00, P01 etc.?

I did a search on the forum and it looks like it is doable. See:

I have made some modification to the AS made by @gglick and tested it myself. I'm not familiar with AS at all. There is probably a better way to match an item in a list, but here is what it works:

set macroGroupName to "P00" as string
set macroNameInGroup to "00" as string

tell application "Keyboard Maestro"
	tell its macro group macroGroupName
		set MacroIdList to id of every macro
		set MacroNameList to name of every macro
	end tell
end tell

tell application "Keyboard Maestro Engine"
	repeat with i from 1 to (count of MacroNameList)
		if macroNameInGroup is equal to item i of MacroNameList as string then
			set MacroToRun to item i of MacroIdList
			do script MacroToRun
			return
		end if
	end repeat
end tell