mingsai

Numbers Delete every Sheet without 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.     tell the front document
  4.         repeat with i from (count of sheets) to 1 by -1
  5.             if the (count of tables of sheet i) is 0 then
  6.                 delete sheet i
  7.             end if
  8.         end repeat
  9.     end tell
  10. end tell
Advertisement
Add Comment
Please, Sign In to add comment