How would i go about the below automator command into a bash script. As I packaged the software with composer correctly and remove the hostname from the Plist of the system I used to build the package, but I wanted for the package to fill in the users hostname under the Broadcast name field in Reflectors preferences.
on connectedDevice() tell application "Reflector 2" activate
end tell
tell application "System Events" keystroke "," using command down
end tell delay 2 tell application "Reflector 2" quit end tell
end connectedDevice
connectedDevice()
