SaveAllFiles

From Niki

Jump to: navigation, search

save_all_files()

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.