mingsai

Numbers Close All Unsaved Documents

Feb 22nd, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "Numbers"
  2.     activate
  3.     repeat with i from (count of documents) to 1 by -1
  4.         set thisDocument to document i
  5.         if file of thisDocument is missing value then
  6.             close thisDocument without saving
  7.         end if
  8.     end repeat
  9. end tell
Advertisement
Add Comment
Please, Sign In to add comment