duarteharris Posted February 11, 2015 Share Posted February 11, 2015 Hello. I've been looking for a workflow that changes the system date, but couldn't find one. Does anyone know of one or how to make it? Thank you and take care, Link to comment
Vero Posted February 11, 2015 Share Posted February 11, 2015 Hello. I've been looking for a workflow that changes the system date, but couldn't find one. Does anyone know of one or how to make it? Thank you and take care, Hi there, Could you please fill in your Powerpack email address in your forum profile before discussing workflows and other Powerpack-only features? Cheers, Vero [Edit: Thanks for filling in your details] Link to comment
rice.shawn Posted February 14, 2015 Share Posted February 14, 2015 You'll have to use the Bash command `systemsetup` systemsetup Help Information ------------------------------------- Usage: systemsetup -getdate Display current date. Usage: systemsetup -setdate <mm:dd:yy> Set current date to <mm:dd:yy>. Usage: systemsetup -gettime Display current time. Usage: systemsetup -settime <hh:mm:ss> Set current time to <hh:mm:ss>. Usage: systemsetup -gettimezone Display current time zone. Usage: systemsetup -settimezone <timezone> Set current time zone to <timezone>. Use "-listtimezones" to list time zones. If you read through this thread at the Adobe forums, then you'll see some examples of AppleScript. Because the command needs an administrator's password (sudo access), you'll probably have to do something like: set _month to 12 set _day to 12 set _year to 12 set myScript to "systemsetup setdate " & _month & ":" & _day & ":" & _year do shell script myScript with Administrator privileges Obviously, you'll want to set the variables dynamically because that script will just set your system date to 12 Dec 2012. But, I haven't tested it, and screwing around my the date on my system is going to make so many programs throw so many fits that I don't really want to test it, so I leave you here on your own. Be careful about breaking things. duarteharris 1 Link to comment
duarteharris Posted February 16, 2015 Author Share Posted February 16, 2015 Thanks Shawn. That seems a bit complicated for my level, but I'll give it a try. What should I bee looking for about breaking things? Thanks again for your help, Link to comment
rice.shawn Posted February 16, 2015 Share Posted February 16, 2015 For breaking things? Well, so many different aspects of the system rely on the system time. If you use Time Machine, then it might go crazy. Many different synchronization tools might behave unexpectedly. Things might get recorded at the wrong times, having a weird effect on other things later, after you reset the system. Basically, system time is a fairly important part of many programs, and messing with it might achieve unknown effects. It probably won't crash any programs or anything like that, but it is likely to corrupt data. Not corrupt in an "unreadable" way, but corrupt in a "that's just wrong" sort of way. There are just too many variables to predict, and it is likely to break things. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now