# code-block-pro/1.13.0/build/shiki/samples/applescript.sample

Code Block Pro – Beautiful Syntax Highlighting, version 1.13.0. 19 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.13.0/code/build/shiki/samples/applescript.sample
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.13.0/raw/build/shiki/samples/applescript.sample
- Modified: 2022-08-22T22:25:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-block-pro/1.13.0/code/build/shiki/samples/applescript.sample#L10-L20`.

```
tell application "Address Book"

    set bDayList to name of every person whose birth date is not missing value

    choose from list bDayList with prompt "Whose birthday would you like?"

    if the result is not false then

        set aName to item 1 of the result

        set theBirthday to birth date of person named aName

        display dialog aName & "'s birthday is " & date string of theBirthday

    end if

end tell

-- From https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html
```
