[英]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. 场景是,我将一些文本传递给LabelWriter打印机..它是用于检查的示例。 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. 这是我的一部老Applescript的摘录,它使用内置的命令行[ efax (fax) 1程序与调制解调器进行通信。
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. 我还使用了内置的命令行程序Screen从图腾蓝牙调制解调器接收数据。 ( I do not have a snippet to hand at the mo. On an old mac which I will need to dig out) (我没有摘录的片段,在旧的Mac上,我需要将其挖掘出来)
But before you even get into trying this you should read up on Applescript basics . 但是,在开始尝试之前,您应该先阅读Applescript基础知识 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.