applescript handler example (#2124)

This commit is contained in:
Jared Wenerd 2024-03-21 15:53:08 -06:00 committed by GitHub
parent dc066dc18f
commit bdf7fc2505
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -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)
```