I was told this forum would be appropriate to post a question about applescript. Using automator, I have created a "timeInAndOut.app". Currently it is set as a login item, so every time i log into my work computer, it opens textedit, opens a specific file on my desktop, copies the date and time to clipboard and then pastes it into the text file and closes textedit, saving the file.
Originally i thought about just running the .app as a logouthook, but idk if that is going to work like i want it, or at all. I have decided the easiest way would be a simple script that checks the time and if it is between a certain time, the cpu should shutdown.
normally i just use control-option-command-eject to shutdown at the end of my split shift, but it would be nice to just run that script, have it log the date and time and shutdown the computer.
it should be a simple "if" condition, but idk how to properly word the syntax. Any help would be greatly appreciated.
Originally i thought about just running the .app as a logouthook, but idk if that is going to work like i want it, or at all. I have decided the easiest way would be a simple script that checks the time and if it is between a certain time, the cpu should shutdown.
normally i just use control-option-command-eject to shutdown at the end of my split shift, but it would be nice to just run that script, have it log the date and time and shutdown the computer.
it should be a simple "if" condition, but idk how to properly word the syntax. Any help would be greatly appreciated.