Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use N : application "Numbers"
- --------------------------------------------------------------------------------
- # PROPERTY VALUES & GLOBAL VARIABLES
- property document : a reference to document 1 of N
- property sheet : a reference to active sheet of my document
- property table : a reference to table 1 of my sheet
- global them
- --------------------------------------------------------------------------------
- # IMPLEMENTATION:
- on run
- if not (exists my table) then return false
- set them to a reference to (every row of my table ¬
- where the value of cell 1 = the value of cell 2 ¬
- and the value of cell 1 ≠ missing value)
- highlight()
- ---OR:
- -- comment()
- --OR:
- -- delete -- WARNING: permanent!
- end run
- --------------------------------------------------------------------------------
- # HANDLERS:
- to highlight()
- set the background color of them to ¬
- {65535, 65535 / 4, 65535 / 2}
- end highlight
- to delete
- delete them
- end delete
- to comment()
- set the value of cell 3 of them to "SNAP!"
- end comment
- ---------------------------------------------------------------------------❮END❯
Add Comment
Please, Sign In to add comment