Drooply Posted September 30, 2014 Share Posted September 30, 2014 Hi When using Alfred 2 to shutdown or restart my Mac, it does it as if I have the setting on to "Reopen windows when logging back in", which is a setting i despise. Is this a bug(that Alfred 2 does not use the users standard setting)? Or is it possible to use these functions without this option on? Thanks. Link to comment
jdfwarrior Posted October 1, 2014 Share Posted October 1, 2014 Hi When using Alfred 2 to shutdown or restart my Mac, it does it as if I have the setting on to "Reopen windows when logging back in", which is a setting i despise. Is this a bug(that Alfred 2 does not use the users standard setting)? Or is it possible to use these functions without this option on? Thanks. The option isn't normally available. I made a workflow for it that, I haven't tried in quite some time so I'm not sure if it still works correctly or not. You can try it here Link to comment
jbender Posted December 3, 2014 Share Posted December 3, 2014 Don't mean to resurrect a zombie thread here, but I just made those modifications and open-sourced it. Feel free to download it from the repo here. Link to comment
manjaro Posted August 19, 2015 Share Posted August 19, 2015 Hi Guys, I do not prefer to install a workflow for this. Could Alfred-2 provide an option to choose, similar to what the OSX does. Link to comment
Vero Posted August 19, 2015 Share Posted August 19, 2015 Hi Guys, I do not prefer to install a workflow for this. Could Alfred-2 provide an option to choose, similar to what the OSX does. To include this into Alfred would require some bodging, as this option is not readily available for third-party apps to control, and Alfred is proudly bodge-free If you want to try out the workflow, you can set the workflow to use the same keyword, and uncheck the box for the default restart/shutdown keywords instead. You can always revert back to the default behaviour and remove the workflow if you don't enjoy using it. Cheers, Vero Link to comment
sasha Posted September 8, 2015 Share Posted September 8, 2015 I'd also say make sure it's not actually an OS glitch, not Alfred's fault. Try restarting the normal way, sans Alfred, just to see...It seems like a relatively common issue (current OSX version and all) that even when you uncheck "Reopen windows when logging back in" the windows still reopen (despite what programs are designated "login items"). Link to comment
jdfwarrior Posted September 9, 2015 Share Posted September 9, 2015 I'd also say make sure it's not actually an OS glitch, not Alfred's fault. Try restarting the normal way, sans Alfred, just to see... It seems like a relatively common issue (current OSX version and all) that even when you uncheck "Reopen windows when logging back in" the windows still reopen (despite what programs are designated "login items"). +1 on this. I've noticed this several times in the past. I hate it reopening everything after a restart and even though the setting in OSX is there to *NOT* reopen, it'll reboot and open up 20 windows.. Grr Link to comment
manjaro Posted October 4, 2015 Share Posted October 4, 2015 Don't mean to resurrect a zombie thread here, but I just made those modifications and open-sourced it. Feel free to download it from the repo here. Thanks. Your repo has only the workflow binary. Could you also open source the source itself. Best Regards, Joe. Link to comment
manjaro Posted October 4, 2015 Share Posted October 4, 2015 To include this into Alfred would require some bodging, as this option is not readily available for third-party apps to control, and Alfred is proudly bodge-free If you want to try out the workflow, you can set the workflow to use the same keyword, and uncheck the box for the default restart/shutdown keywords instead. You can always revert back to the default behaviour and remove the workflow if you don't enjoy using it. Cheers, Vero Thanks Vero. Will try that. Link to comment
matthiasr Posted November 24, 2015 Share Posted November 24, 2015 Hi, tried both workflows. But none works. Maybe this is because i am working with a german Mac OS X. I tried already to adjust the script to the appropriate german menu entry. But still no luck. Of course i granted Alfred 2 the right to control the computer. Any idea what might be wrong? Regards, Matthias Link to comment
joonas Posted November 29, 2015 Share Posted November 29, 2015 (edited) Hi, tried both workflows. But none works. Maybe this is because i am working with a german Mac OS X. I tried already to adjust the script to the appropriate german menu entry. But still no luck. Of course i granted Alfred 2 the right to control the computer. Any idea what might be wrong? Regards, Matthias I have no idea why those aren't working, but I'm glad you asked this question, because it got me curious. This has been bothering me for a long time as well. I started looking into this and I found another way to do it. Since I couldn't figure out how to change "Reopen windows..." setting via code, I ended up making what is essentially a macro that goes through the same process you go through, when you manually trigger one of these from the apple menu. The way this workflow differs from Alfred's own System commands, is that it honors the "Reopen windows..." setting. System Commands.alfredworkflow To change "Reopen windows..." setting quickly: - Use keyword with modifier “Cmd” - Change “Reopen windows…” setting (Space) - Cancel (Esc) I'm not very good at making workflows, so maybe this is not perfect, but it works for me, so I'm happy. Edited November 29, 2015 by joonas Link to comment
patrickmcd Posted January 23, 2016 Share Posted January 23, 2016 This is above my pay grade, but perhaps checking the confirm checkboxes for restart & shutdown could force Alfred to open the native OSX confirmation prompts which include the "reopen windows..." option, instead of Alfred's own confirmation prompts. Link to comment
powernap Posted February 10, 2016 Share Posted February 10, 2016 I have no idea why those aren't working, but I'm glad you asked this question, because it got me curious. This has been bothering me for a long time as well. I started looking into this and I found another way to do it. Since I couldn't figure out how to change "Reopen windows..." setting via code, I ended up making what is essentially a macro that goes through the same process you go through, when you manually trigger one of these from the apple menu. The way this workflow differs from Alfred's own System commands, is that it honors the "Reopen windows..." setting. System Commands.alfredworkflow To change "Reopen windows..." setting quickly: - Use keyword with modifier “Cmd” - Change “Reopen windows…” setting (Space) - Cancel (Esc) I'm not very good at making workflows, so maybe this is not perfect, but it works for me, so I'm happy. Thanks mate, this works just fine for me. Maybe you should consider putting the workflow on http://www.packal.org/. Link to comment
joonas Posted December 16, 2019 Share Posted December 16, 2019 (edited) This is an old topic by now, but I was doing some googling and this post was the first result when I searched for "Alfred reopen windows when logging back in" and so I thought I'd let anyone stumbling into this know that I did indeed add this to packal years ago and I believe I've since updated it a few times. Updated System Commands.alfredworkflow: - Packal: http://www.packal.org/workflow/system-commands - Github: https://github.com/joonaspaakko/System-Commands.alfredworkflow There might be some differences in wording and whatnot, but the .alfredworkflow files are identical in both sources. I also updated the previous Dropbox link just now, but I'm sure I forget to keep that up to date in case I need to make some changes. The original workflow is still here. Edited December 16, 2019 by joonas Kamil 1 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