Just to be clear, You do not need Applescript to connect to the Arduino from LiveCode. Although you can if you want. In the stack I uploaded to onrev there were four cards and one of them was a card that allows you to connect to the port and communicate with it and then to disconnect the port.
I am working on an updated version. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Jul 12, 2012, at 1:06 PM, Thomas McGrath III wrote: > One of the scripts i was using to connect to the arduino in OSX: > > Global gThePort > on mouseUp > put getMacUSBDriver() into gThePort > if last char of gThePort is cr then delete last char of gThePort > replace "tty" with "cu" in gThePort > put gThePort into thePort > > put quote & thePort & quote into thePortName > > put "" into field "Results" > put "BAUD=" & "9600" && "PARITY=" & "N" && "DATA=" & "8" && "STOP=" & "1" > && "odsr=" & "on" && "octs=" & "on" && "odtr=" & "on" && "orts=" & "on" into > tSerial > set the serialControlString to tSerial > if the result is not empty then put "SerialControlString: " & the result > into field "Results" > open driver thePortName for text update > if the result is not empty then > put "Driver: " & the result after field "Results" > else > put "Connected" after field "Results" > end if > > end mouseUp > > > on mouseUp > close driver gthePort > if the result is not empty then > put the result into field "Results" > else > put "Port Closed" into field "Results" > end if > end mouseUp > > > -- Tom McGrath III > http://lazyriver.on-rev.com > 3mcgr...@comcast.net > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode