Mavericks gives us "Notification Support for LiveCode" :-)
Rolf Kocherhans
rolf.kocherhans at id.uzh.ch
Wed Oct 23 09:36:56 EDT 2013
Well, not really - but Mavericks gives us "Notification Support"
for AppleScript and we can use AppleScript in LiveCode.
It does work very well, the icon of the app sending the AppleScript
will also be in the notification window !
In case anyone is interested, here is an example:
on mouseUp
put "LiveCode" && the environment into tTitle
put "vers." && revAppVersion() into tSubtitle
put long system time & "," && the long system date into tNotification
displayNotification tTitle, tSubtitle, tNotification
end mouseUp
command displayNotification tTitleText, tSubtitleText, tNotificationText
put "display notification "& quote & tNotificationText & quote &\
" with title " & quote & tTitleText & quote &" subtitle "& quote &\
tSubtitleText & quote &""& return & ""into tAppleScriptCode
do tAppleScriptCode as AppleScript
end displayNotification
Cheers
Rolf
More information about the use-livecode
mailing list