- on handle_string(msg)
set duration to last word of msg
set mLength to (count characters of msg)
set dLength to ((count characters of duration) + 1)
set reminder to (characters 1 thru (mLength - dLength) of msg) as string
tell application "LaunchBar"
delay 5 --delay the execution of next statement by 5 seconds
do shell script "/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier -title 'Timer' -message '" & reminder & "'"
end tell
end handle_string