mingsai

Numbers Delete Old Tables

Feb 22nd, 2014
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "Numbers"
  2.     activate
  3.     if not (exists document 1) then error number -128
  4.    
  5.     tell the front document
  6.         delete (every table of every sheet whose name ends with "2012")
  7.     end tell
  8. end tell
Advertisement
Add Comment
Please, Sign In to add comment