using Automator/AppleScript for iMessage
I am trying to set up an automated calender event in Automator using an AppleScript. I open automator and select calender alarm as workflow type > insert Run AppleScript as my workflow. Here is my AppleScript. This should work?? It does not..
tell application "messages" to activate
delay 1
tell application "System Events"
delay 5
key code 45 using command down
delay 0.5
keystroke "Nick"
delay 0.5
key code 36
delay 0.5
key code 36
delay 0.5
keystroke "test"
delay 0.5
key code 36
delay 0.5
end tell
MacBook Air 13", macOS 10.15