Boarder24 Posted March 27, 2013 Share Posted March 27, 2013 (edited) I present to you the airplane workflow: d.pr/f/T1el Update v1.2: d.pr/f/EBpv Update v1.3: Was an in-house update. Update v1.4: I uploaded the wrong Workflow. Update v1.5: http://d.pr/f/GOiB Changelog:v1.2 holding down ctrl to toggles only bluetooth, and holding down cmd toggles only wifi. Still working to advanced brightness settings.v1.4 Have now integrated updates via Alleyoop workflow (Download here) Check for updates asap!v1.5 Has been sent out via Alleyoop, brightness settings have been edited. Now if you brightness is half filled it will go to 4 squares (see pic) and vice-verse. Still working to get brightness working at it's best. It will toggle your wifi and bluetooth, and set your brightness to to save battery. I have yet to find away to toggle the brightness back to it's default state. An if statement might work, but I have little skill in that field. For those of you that are applescript geniuses, please let me know if you find a solution! If you have any questions please read the "readme" tab of the workflow before messaging me! Edited March 31, 2013 by Boarder24 bcometa 1 Link to comment
vdesabou Posted March 31, 2013 Share Posted March 31, 2013 Hi, the link is for a "Connect to VPN" workflow, not the Airplane Mode one. Am I missing something? Link to comment
Boarder24 Posted March 31, 2013 Author Share Posted March 31, 2013 Hi, the link is for a "Connect to VPN" workflow, not the Airplane Mode one. Am I missing something? No you are 100% correct. I don't understand why no one else contacted me about this. Anyway, I have been meaning to update the original post. v1.5 is now available direct download. Link to comment
bcometa Posted April 8, 2013 Share Posted April 8, 2013 since brightness is probably being lowered, and until you can find out how to "save" the brightness before lowering, can you just have the "back to normal" toggle move it to around 90% or so? either way, very cool time saver! Link to comment
Boarder24 Posted April 8, 2013 Author Share Posted April 8, 2013 since brightness is probably being lowered, and until you can find out how to "save" the brightness before lowering, can you just have the "back to normal" toggle move it to around 90% or so? either way, very cool time saver! I'll do you one better. Instructions on how to set the "back to normal" brightness. It's quite simple. 1: Open the "/usr/bin/osas..." script in the middle. 2: Change the 0.5 to any number from 0 to 1 that is above 0.25. (Where it says): "if brightnessLevel is 0.25 then set brightnessLevel to 0.5" 3: There is no step 3. Enjoy! Link to comment
tschoof Posted April 25, 2013 Share Posted April 25, 2013 Is there a possibility of including the state of BT, WiFi and Brightness? When toggling back and forth, it's kinda confusing and hard to know what BT has been ‘toggled’ to. Link to comment
Boarder24 Posted April 25, 2013 Author Share Posted April 25, 2013 I'll look into it this weekend. Haven't really been playing with the script that much since the last update. Link to comment
rice.shawn Posted April 25, 2013 Share Posted April 25, 2013 One way that you could do things to return to the previous state would be to get the values (wifi on/off, bt on/off, brightness level) and write them to a file in the workflow non-volatile storage. After that, when you disable airplane mode, you can have the workflow open the file, read the values, and then set them to the previous ones. It shouldn't be too hard. You could store the file as a plist, xml, or text file, whichever is easiest for you. Link to comment
anthonymobile Posted December 20, 2019 Share Posted December 20, 2019 I just updated this workflow with a Python script to read and toggle the brightness as well. Enjoy. https://github.com/anthonymobile/alfred/blob/master/AirPlane Mode with Brightness Toggle.alfredworkflow 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