Question

The scenario is , I'm going to pass some text to the LabelWriter Printer .. Its a sample for checking. But at compile time itself getting error.

 tell application "AppleScript Runner"

OPEN “COM1:9600,n,8,1” FOR OUTPUT AS #1 
PRINT #1, “HELLO WORLD”

end tell

Error: Expected end of line, etc. but found unknown token

Was it helpful?

Solution

To add to the comments by Atomic Toothbrush.

This is a snippet from one of my old Applescripts that uses the built in Command line [efax (fax)1 program to communicate with a modem.

set phone_num to "0207000000"
set thecall to do shell script "efax -v0 -d /dev/cu.modem -a TDT" & phone_num

I have also used the built in Command line program Screen to receive data from a totem Bluetooth Modem. ( I do not have a snippet to hand at the mo. On an old mac which I will need to dig out)

But before you even get into trying this you should read up on Applescript basics.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top