简体   繁体   中英

Expected end of line, etc. but found unknown token.- AppleScript Editor

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

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM