

This cleaner method requires that the script have more access to your GUI. There's also an option at the top of the script to use a "cleaner" and perhaps more reliable method of seeing if a webpage has loaded.
Web scheduler code#
You'll be prompted to enter the times if the script comes across a shift it doesn't know about already-which it probably will, if you've run the old version since last week, because I didn't catch the fact that there was a logic error in the old code and it had to get the shift legends every single time. The biggest change you'll see is that the script no longer gets the shift start/stop times automatically, because they hid the legends page behind elevated user access.
Web scheduler update#
Update! It works with last week's WMT update now. Maybe that'll be my next project, if there's interest.
Web scheduler how to#
I really don't know much about PowerShell but there may be a way to do it on Windows as well, a quick google produced this post showing how to create a calendar appointment using PS. My guess is the check-which-question step is too complex, but I could be wrong. Perhaps there's a way to port the whole thing to Shortcuts, I don't know-I haven't worked with Shortcuts at all. I did some perfunctory searching just now and it seems like you can use Shortcuts to run an AppleScript command on a connected Mac, but you can't actually run AppleScript on an iOS device itself. In terms of porting this script to iOS, that's doubtful.

For one I don't have the knowledge to create an app like that and for two I'm hoping that the code being readable means there will be less grief from on high about this (unlikely I know, which is why I'm staying anonymous). My guess based on looking at VoidTime's settings is that he did exactly what I did: went to the WMT Scheduler website in the background and automatically entered your login information. Theoretically yes, someone wrote an app to do it before. That said it really works best if you enter in the proper information, please don't try to stress-test everything. Anyone who wants to attempt can feel free.īasically the entire thing is hacked together, but it works and there's even a moderate amount of error-checking built in. I imagine the idea could transfer to Windows PowerShell but I have extremely limited experience with that. I don't have the skills to create a full-blown app and I wouldn't want to in any case, because then you couldn't read the source code. It won't tell you what kind of leave you're on, or who else is working with you, or anything like that.

Got bored sitting around at home and decided to make an AppleScript to create events in Calendar from my Web Schedule page.
