How to write a script for get date to clipboard


hi experts,

 

how write script date clipboard,

the date format this:

 

05-may

 

regard

john

use function

var today = new date(); copytexttoclipboard(today)      function copytexttoclipboard(text){      var folderfortempfiles = folder.temp.fsname;      var clipbatfile =new file(folderfortempfiles + "/clipboard.bat");      clipbatfile.open('w');      clipbatfile.writeln("echo "+text+"2 | clip");      clipbatfile.close();      clipbatfile.execute();      clipbatfile.remove();   };   

source: https://forums.adobe.com/thread/799232



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"