KJA*_*KJA 3 command-line automation clipboard 18.04
我正在尝试使用 Actiona 执行自动化任务,并且需要将 HTML 文件的内容复制到剪贴板中。在 Actiona 中使用剪贴板编码工具不是解决方案,因为它只使用文本数据类型(mime 类型),我需要将其复制为 HTML(文本/html)。我想知道是否可以通过在其中一个步骤中运行系统命令来实现。
小智 5
我发现了一个类似的问题Copy the contents of a file into the clipboard without display its contents - Unix & Linux:
安装xclip
使用:
sudo apt install xclip
Run Code Online (Sandbox Code Playgroud)
要复制脚本:
xclip -sel c < yourfile.html
Run Code Online (Sandbox Code Playgroud)
xclip -t text/html -sel c < filename.html
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
744 次 |
最近记录: |