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

Adobe Refresh Managerについて

Sizing images of multiple resolutions for print on a page of one resolution

Illustrator cs6 "Invalid Serial Number"