Inside of a Macro, I am looking to retrieve the LastWriteTime date for a file and if it is over an hour old, it changes which path to take down a Detour tool with an action tool.
I know I can get that information via a Directory Tool but is there a way to do it via a formula?
Basically I am trying to use this to avoid a time consuming process of accessing a download token that most of the time we already have nabbed and stored in a text file. Here is the process outline:
- Check the stored token file's age from right now to the LastWriteTime.
- Check age of file for LastWrittenTime for great than 50 minutes old from right now:
- TRUE: send the process through the API process
- FALSE: skip the process and use the token already there
That's the entire thing. I feel like I've conquered the awful parts w/ all sorts of crazy workflow steps but this somewhat simple task is tripping me up. 😂
Am I using the wrong tools? Can I use the Directory tool in a Macro and impact a detour?
Help!
Humbled Bret