The Macro editing frame is part of a Blizzard addon that is Load On Demeand ie. the MacroFrame isn't created until you type /macro. Running the script or the code in your addon before using /macro will cause an error.
You probably want to listen for the ADDON_LOADED event and if/when "Blizzard_MacroUI" is the addon loaded, then set the scale because the MacroFrame will have been created.
|