Apple Scripts
ijed
Posts: 28
Hi,
Just wondering if anyone has any info (that a PC person would understand ) about connecting to a mac and either running an apple script or sending apple script commands directly from Netlinx.
Thanks
Just wondering if anyone has any info (that a PC person would understand ) about connecting to a mac and either running an apple script or sending apple script commands directly from Netlinx.
Thanks
0
Comments
You can connect to a MAC using TElNET when the daemon is enabled. Will need user credentials, once authenticated, you can run scripts using the command line (like DOS).
SSH is enabled by default, but that will be more difficult to get going.
Good luck!
Thanks AMXJeff - Sounds like fun....
Also found one of your posts here that was helpful:
http://www.amxforums.com/showthread.php?8261-Remote-Shutdown-of-MacOS&p=57188#post57188
and one from Bob about telnet connections to a mac:
http://www.amxforums.com/showthread.php?2702-IP_CLIENT_OPEN-to-ssh-port-22&p=16366#post16366
I guess for good comms I'd want the mac to send some sort of ACK back to the NI Master.
SO I enable telnet:
http://support.apple.com/kb/ta20443
connect
then send osascript commands - or run a bash script.
Any caveats i should be aware of? Some posts regarding iTunes control say it can be slow to execute.
The desired outcome is to trigger an executable script on a master mac which controls video capture start/stop on 20 slave macs. I'm already seeing issues with not being able to get feedback from the 3rd party video capture software so all I can really do is assume their stuff works ... would like to avoid calling assumption Mom where possible