简体   繁体   English

在applescript中将文本设置为剪贴板

[英]setting text to clipboard in applescript

Whenever i try to run the following code: 每当我尝试运行以下代码时:

set RAccounts to (read POSIX file "/Users/student/Desktop/Accounts.txt") set word 1 of RAccounts to clipboard

It gives me the error " cannot set text to clipboard " any help without having to do keystrokes etc. also when i try 它给我错误“无法将文本设置为剪贴板”的任何帮助,而不必尝试击键等。

get word 1 of RAccounts and paste

it tells me cannot make into type boolean any help guys? 它告诉我不能将boolean类型化为任何帮助人员吗?

如果您想将单词1放入剪贴板。

set the clipboard to word 1 of RAccounts

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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