As per the title, I need to automate unwinding my date 7 days back upon I launch a specific macOS application bundle and putting the timestamp back to normal 45 seconds into its uptime.
What I need to do is:
- Watch an application bundle with a specific name to be opened (like
FileSystemWatcherin .NET) - Change the date 7 days back between the
Application opened by userandFirst application window appearsevents (events written in pseudocode) - Wait 40-45 seconds while the application checks the trial period status
- Wind the date forward to normal state.
It looks like the Automator standard library does not implement a wholly native solution for this part of workflow, and I need to find a workaround. I know it is wrong using non-seamless methods of application integration, like launcher shell scripts, and I do not prefer cracks either, just because they are illegal and also due to the fact of putting a stamp into the application menus, like K'ed by MacKed team. This severely damages the eye candy and is too explicit saying the software has indeed been pirated.
I do not endorse nor condone any forms of computer piracy. This question has been asked exclusively for educational purposes.