简体   繁体   English

预期的行尾等,但发现未知令牌。-AppleScript编辑器

[英]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.

相关问题 Photoshop Applescript调用JavaScript导致错误“预期的行尾等,但找到了标识符” - Photoshop Applescript calling JavaScript causing error “Expected end of line, etc. but found identifier” 尝试填写网络表单的applescript预期出现行尾错误 - Expected end of line error on applescript trying to fill a webform 在控制Google Chrome浏览器时,Applescript JavaScript“行尾但找到了标识符”错误 - Applescript JavaScript “End of Line but found identifier” Error when controlling Google Chrome 编辑中 <html> , <head> , <body> 在所见即所得编辑器中等 - Editing <html>, <head>, <body> etc. in WYSIWYG editor 使用jQuery为简单的编辑器获取所选文本,替换它等 - Get selected text, replace it, etc. using jQuery for a simple editor ace编辑器-移至行尾 - ace editor - move to the end of the line 如何使用 &#39;id_token&#39;、&#39;access_token&#39;、expiry 等直接创建 userManager? - How can create userManager directly with 'id_token', 'access_token', expiry etc.? 实例化 - jQuery etc. Instantiation Pegjs 应为 [0-9.] 或输入结束但找到“a” - Pegjs Expected [0-9.] or end of input but "a" found 如何在 SailsJS 中添加前端框架(React、Vue 等)? - How to add a front-end framework (React, Vue, etc.) to SailsJS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM