local ok, result = pcall(function() return jarvis.macros.save() end) if not ok then -- result here is the error msg from save_recording return jarvis.cmd.not_found(tostring(result)) end local name = jarvis.macros.recording_name() or "макрос" return jarvis.cmd.ok(string.format("Сохранил %d шагов.", result))