Date on the mac
Posted: September 18th, 2008, 3:45 pm
I'm trying to time stamp my errorLog.txt
In the scripting guide there is this example for alerting the current system time:
var timeSrt = system.callSystem("cmd.exe /c \"time/t\"");
alert("Current time is " + timeStr);
How can I accomplish this on the Mac/osx?
In terminal, the command is "date" but I cant' find the method for executing a command in Terminal.
Thanks!
-C
In the scripting guide there is this example for alerting the current system time:
var timeSrt = system.callSystem("cmd.exe /c \"time/t\"");
alert("Current time is " + timeStr);
How can I accomplish this on the Mac/osx?
In terminal, the command is "date" but I cant' find the method for executing a command in Terminal.
Thanks!
-C