Skip to content
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 related emails.

Already on GitHub? Sign in to your account

hs.layout.apply not able to find a window however hs.window does #2423

Open
fahussain opened this issue Jul 23, 2020 · 0 comments
Open

hs.layout.apply not able to find a window however hs.window does #2423

fahussain opened this issue Jul 23, 2020 · 0 comments

Comments

@fahussain
Copy link

fahussain commented Jul 23, 2020

I am trying to set the layout of the small "Reminders" window for "Microsoft Outlook" on my Mac but hs.layout.apply is not able to find this no matter what I try. I have tried using following methods:

1. hs.layout.apply({"Microsoft Outlook", "Reminders", nil, nil, nil, hs.geometry.rect(-400,-200,400,200)})
2. hs.layout.apply({"Microsoft Outlook", "Reminders", nil, nil, nil, hs.geometry.rect(-400,-200,400,200)}, string.match)
3. hs.layout.apply({"Microsoft Outlook", "Reminders", "LG Ultra HD", nil, nil, hs.geometry.rect(-400,-200,400,200)})
4. hs.layout.apply({"Microsoft Outlook", "Reminders", "LG Ultra HD", nil, nil, hs.geometry.rect(-400,-200,400,200)}, string.match)
5. hs.layout.apply({"Microsoft Outlook", hs.window("Reminders"), nil, nil, nil, hs.geometry.rect(-400,-200,400,200)})

and many more ways but the "Reminders" window is not found, however when I run hs.window("Reminders") I can find the window. Is this a bug or I am doing something wrong here?

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

1 participant