![]() Now we get to the meat of this workflow: the swicsfix-mail.py script. Because I want this script synced to all my devices, I have it saved in iCloud, which is why the root=icloud part is in the URL above. The last step is to open the URL just created, which will run the swicsfix-mail.py Pythonista script. ![]() It’s a magic variable that Workflow should show at the bottom of the screen while you’re typing, and you enter it by tapping on it. Where the part at the end shouldn’t be typed in literally. Here it is: pythonista3://swicsfix-mail.py?root=icloud&action=run&argv= ![]() The new URL is cut off in the screenshot because the variable at the end didn’t get word-wrapped properly. This is then used in the second step to create a new URL that will invoke Pythonista and run a script. The first step is to percent-encode the input URL. It’s defined as an Action Extension, and it accepts URLs as input. Here are the steps of the “SWA to Calendar” workflow. Tap on it to add it to one of your calendars.īecause this is a round-trip reservation, go through the same steps for the other leg. This is like any other event you get emailed. The workflow ends up at Pythonista (something I want to change, but I haven’t figured out the best way yet) and soon an email will come with the calendar event for the flight as an attachment. That brings up a list of Action Extension workflows that accept URLs as their input.Ĭhoose “SWA to Calendar” from this list and wait for the workflow to run. Long-pressing on one of them brings up a popup menu of things that can be done with that link:Ĭhoosing “Share…” brings up the standard Sharing Sheet, from which we choose Workflow. In this case, it’s a round-trip reservation, so there are two links. Tap on the “Add to calendar” link to bring up a popup with links to each flight in that reservation. ![]() We start on the Southwest webpage for the reservation. What I came up with is a combination of Workflow (which will soon be Shortcuts) and Pythonista.īefore getting into the details of the workflow and the script, let’s see how it works. ![]() Since I often make reservations when I’m on the road with only my iPad and iPhone, I wanted an iOS-based solution. 1 It’s a great solution, especially when combined with Hazel, but I have to be at a Mac to use it. One of my favorite pieces of home-grown automation is my swicsfix script, which edits the calendar event that Southwest Airlines provides after you make a reservation and adds alarms set to go off shortly before the 24-hour checkin window opens. Next post Previous post Adding SWA calendar events on iOS ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |