Getting Macro Panel's data

Hi,

I have been doing quite some small scripts in the Macro Panel but now I have a bunch of open tabs there. I was wondering if there’s an option for accessing the data in each tab so that I could export all of them at once and clear the whole Macro Panel.

Thanks.

from AppKit import NSApp
macroViewControllers = NSApp.delegate().macroPanelController().tabBarControl().tabItems()
i = 0
for macroView in macroViewControllers:
	print("macro", i)
	print(macroView.macroText().string())
	i += 1
1 Like

Thank you so much again, Georg.