-- open file dialog for saving
output_name = getSaveFileName caption:"Save your file." types:"Speedsheet (*.ssh)|*.shh| All Files(*.*)|*.*|"
if output_name != undefined then -- if the user cancelled the file selection
output_file = create output_name -- create file for writing, overwrite if already exists
-- loop through each object in selection
for iterator = 0 to selection.count do
format "Object name %s" selection[iterator].name to: output_file
So I've written a pretty simple script that just writes some values out to a text file. How do I run it - in other words have it output that file.
Also, how do I create a menu bar for my MacroScript (http://www.maxforums.org/thread.aspx?tid=415062)? At the bottom of that page, the author says that he creates a button for his MacroScript and I have no idea how to do that. Does clicking on that button run the MacroScript (the problem that I mention above)?