Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

Copy to clipboard including quotationmarks

$
0
0

Hi,

 

I wish to copy a string to the clipboard including the quotation marks. The following command on OSX is one way to do that.

 

 echo \"test\" | pbcopy

 

But when I use system.callSystem(...) the quotation marks are skipped. Is there a way to include them?

 

var ctrl_string = "\"test\"";
system.callSystem("echo " +  ctrl_string + " | pbcopy");

 

Thanks,

Johan


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>