8000 El Capitan compatibility · Issue #1 · jbender/alfred-norelaunch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

El Capitan compatibility #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account relat 8000 ed emails.

Already on GitHub? Sign in to your account

Open
tbnv opened this issue Oct 10, 2015 · 3 comments
Open

El Capitan compatibility #1

tbnv opened this issue Oct 10, 2015 · 3 comments

Comments

@tbnv
Copy link
tbnv commented Oct 10, 2015

Hello,

It doesn't seem to work on El Capitan. I mean, it doesn't do anything. 😉
Do you also encounter that issue?

@jbender
Copy link
Owner
jbender commented Oct 12, 2015

Hey there, I've been using it on El Capitan for a couple weeks now. Sometimes it does take a couple seconds to execute, though, is it a timing issue, or doesn't do anything ever? Were you using it before upgrading and now it doesn't work?

@tbnv
Copy link
Author
tbnv commented Oct 12, 2015

Hi,

I added your workflow to Alfred only a few days ago. On my iMac, it doesn't do anything. I triggered the restart command a few minutes ago and it didn't restart my Mac.

@tbnv
Copy link
Author
tbnv commented Oct 16, 2015

Okay, it looks like I found a way, and it doesn't even take a few seconds to execute, it's instant. 😉

tell application "Finder"
    activate
end tell

tell application "System Events"
    tell process "Finder"
        tell menu bar 1
            tell menu bar item "Apple"
                tell menu "Apple"
                    click menu item "Restart"
                end tell
            end tell
        end tell
    end tell
end tell

It's the same for shutdown, except you need to replace "Restart" in the script of course. Maybe the code is bloated or not clean but I don't know much about AppleScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0