Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonpittman/05264047d47f1a36d312 to your computer and use it in GitHub Desktop.
Save brandonpittman/05264047d47f1a36d312 to your computer and use it in GitHub Desktop.
Fill in empty word search with random letters using AppleScript
tell application "Pages"
set alphabet to "abcdefghijklmnopqrstuvwxyz"
set _table to table 1 of front document
set _cells to every cell of _table
repeat with _cell in _cells
if value of _cell = missing value then
set value of _cell to (some item of alphabet)
end if
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment