define save_all_files { current = $file_path $file_name filename = focus_window("last") while(filename != "") { if($modified) { save() } filename = focus_window("next") } focus_window(current) }
This saves all open files.