Is Windows 'clip' blocked in Adobe ExtendScript?

浪子不回头ぞ 提交于 2020-01-03 04:27:44

问题


In Adobe ExtendScript (based on java script) you can trigger system commands as if you are in a Windows console with 'system.callSystem()'

This works:

system.callSystem("notepad c:/test.txt")

Notepad opens with the content of the file.

But these examples that try to paste to the clipboard don't work:"

system.callSystem('clip < c:/test.txt')
system.callSystem('dir | clip')

I've tried numerous variations with 'clip' and none of them work.

Is 'clip' blocked from working with ExtendScript, or am I doing something wrong?

来源:https://stackoverflow.com/questions/34702235/is-windows-clip-blocked-in-adobe-extendscript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!