Active Directory Scripting
Over the last year I have made multiple scripts to automate Active Directory (AD) changes via PowerShell. My scripts all pull data from shared .XLSX documents in a Google Team Drive. Upon running one of the scripts information in the shared .XLSX will be updated to show if changes for a user have or have not yet taken place. There are three main scripts I have made. The first is for updating an existing user's group memberships, the second deletes a specified user, and the third one enables or disables a user. All three of the scripts also update a .log file for each action taken within them.
Reactive Desktop Script
One thing that I really love about music is the album artwork! While listening to Spotify one night I thought that it would be neat if my Desktop could change to the album artwork of the song I was listening to. After a little bit of research I wrote an AppleScript that also used Python to do just that. The script is run every 10 second while Spotify is open and starts by simply checking to see if the current song is different from the last time it ran to minimize unnecessary processing. If the song has changed, then the script will download the album artwork using a URL retrieved via the Spotify scripting library. The downloaded album artwork is only 500x500 pixels which would look terrible on most modern day computers and monitors. For that reason, the script then passes the file to a Python script that analyzes the image for the most prominent color which is then passed back to the AppleScript. At this point a blank image is created at the dimensions of the display with the background of the most prominent color and the album artwork is centered upon it. That image is then saved to a directory within the user's library and set as the desktop image!