Skip to content

Commit

Permalink
applescript handler example (#2124)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwenerd authored Mar 21, 2024
1 parent dc066dc commit bdf7fc2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions applescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,13 @@ beep 10
-- delay for 5 seconds
delay 5
```

### Handlers

```applescript
on doubleNumber(n)
return n * 2
end doubleNumber
set doubledValue to my doubleNumber(2)
```

0 comments on commit bdf7fc2

Please sign in to comment.