简体   繁体   中英

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?

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

set the clipboard to word 1 of RAccounts

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