Skip to main content
Participant
December 11, 2022
Question

Need a script to Time Track

  • December 11, 2022
  • 3 replies
  • 772 views

Need a script to Track - How much time I worked to complete the image in a log file

 

Please help

This topic has been closed for replies.

3 replies

Imaginerie
Community Expert
Community Expert
December 12, 2022

If you go the the plug in section of the CC app (the rainbow icon app that centralises all Adobe offerings)

 

 

you'll find a plethora of time trackers specifically for Photoshop. I haven't tested any, but there is a rating system available so you can make your own mind.

Some are free, some aren't! I know they're not scripts, but thought it would help!

Legend
December 12, 2022

There are apps that specifically track comouter usage and time, look around on the Interwebs for reviews.

Stephen Marsh
Community Expert
Community Expert
December 11, 2022

I believe that you would need to run the timer script once to set the start time. Then run it a second time to set the completion time. It wouldn't be an active timer, just a manual start/stop log.

 

A basic example:

 

#target photoshop

var os = $.os.toLowerCase().indexOf("mac") >= 0 ? "mac" : "windows";
if (os === "mac") {
    logFileLF = "Unix";
} else {
    logFileLF = "Windows";
}
var logFile = new File('~/Desktop/Log_File.txt');
var dateTime = new Date().toLocaleString();
logFile.open("a");
logFile.encoding = "UTF-8";
logFile.lineFeed = logFileLF;
logFile.writeln(dateTime);
logFile.writeln(activeDocument.name);
logFile.writeln("\r");
logFile.close();

 

If an active timer was run from say Adobe Bridge, then it could be left active running until it was stopped, without tying up Photoshop.