- edited description
Copy to Clipboard
Implement system independent copy-to-clipboard:
function getSystemInfo() {
var info = $.os + " AE " + app.version + "/" + app.isoLanguage;
return info;
}
if (!isWin()) {
system.callSystem('echo "' + getSystemInfo() + '" | pbcopy');
} else {
// shout out to Zlovatt!
var cmdString = 'cmd.exe /c cmd.exe /c "echo ' + myString + ' | clip"';
system.callSystem(cmdString);
}
Comments (8)
-
reporter -
reporter - edited description
-
+1
What about getting the clipboard too? On MacOS it's
system.callSystem("pbpaste")
. Can you get the windows version?also, is
getSystemInfo
something that should be added too? -
reporter Yeah, sorry for the sloppy request. I think
getSystemInfo
is helpful too. And it makes sense to be able to copy and paste.The joke is that Windows doesn't have a
paste
command. Unless you use a third party script calledpaste.exe
And it doesn't seem you can useclip
either. -
- changed status to resolved
Add copyToClipboard function
Usage: aeq.copyToClipboard(stringToCopy) or aeq.command.copyToClipboard(stringToCopy); Resolves:
#18→ <<cset fc268cde5aba>>
-
Add getSystemInfo function
Usage: aeq.getSystemCommand(), returns OS ae version and ae-language See
#18→ <<cset 942857c8cba6>>
-
reporter Beast! Thanks 😁
-
- changed milestone to 1.0 Release
- Log in to comment