I am trying to create a applescript which utilises the keystroke spacebar I have this code
tell application "System Events"
keystroke {Space}
end tell
But When I play the script "space" just doesn't work. I don't receive an error message or anything (the whole code opens a recording software within the script that when spacebar is pressed recording stars but the script doesn't start the recording.)
This post shows how to hold a modifier key left shift and send it to system events, but is the syntax above correct to press the space bar?