Using OS X 10.9
Maverick
, I am trying to write an AppleScript
notification event.
I've successfully sent a title and a subtitle using this code:
set emailFrom to "Johnny Appleseed"
set emailTitle to "The Email Subject"
set emailMessage to "Hello, this is a test"
display notification with title emailFrom subtitle emailTitle
I am trying to display the emailFrom, emailTitle and emailMessage so it's formatted like this:
The AppleScript Notification Center documentation only discusses title and subtitle.
I have tried adding message
to the display notification, but it has not worked.
set emailFrom to "Johnny Appleseed"
set emailTitle to "The Email Subject"
set emailMessage to "Hello, this is a test"
display notification with title emailFrom subtitle emailTitle message emailMessage
How can I add the "message" part to the notification?