Hi there Niv and welcome...
You can do this via AppleScript using GUI Scripting...
activate application "QuickTime Player"
tell application "System Events"
tell process "QuickTime Player"
-- GUI Scripting statements:
keystroke space
end tell
end tell
activate application "GarageBand"
tell application "System Events"
tell process "GarageBand"
-- GUI Scripting statements:
keystroke space
end tell
end tell
activate application "iTunes"
tell application "System Events"
tell process "iTunes"
-- GUI Scripting statements:
keystroke space
end tell
end tell
For this script to run you need
GUI Scripting to be turned on.
regards
Ric