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(); };
More discussions in InDesign Scripting
adobe
Comments
Post a Comment