-
Notifications
You must be signed in to change notification settings - Fork 25
/
faq.html
executable file
·58 lines (36 loc) · 3.51 KB
/
faq.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
layout: default
title: Hammerspoon FAQ
permalink: /faq/
---
<h1>FAQ</h1>
<h2>Do you collect information about crashes?</h2>
By default, yes. This can be disabled in the Hammerspoon preferences.
For more information, see our <a href="/privacy.html">Privacy Policy</a>
<h2>Accessibility issues</h2>
Hammerspoon depends on access to the macOS accessibility stack to interact with the desktop, and due to the security requirements in macOS, the user is required to manually allow Hammerspoon access to the accessibility features.
macOS manages the list of applications with access to accessibility features in System Preferences. Click on the `Security & Privacy` icon, then the `Privacy` tab and then `Accessibility` from the list. You should ensure that Hammerspoon is present in this list and is ticked.
<h3>I can't add Hammerspoon to the list, or enable it</h3>
It is unlikely, but possible, that the database controlling access to accessibility features, has become de-syncronised from reality. There is a guide to how to recover from this situation, at <a href="http://mizage.clarify-it.com/d/6ervmn">http://mizage.clarify-it.com/d/6ervmn</a> (replace 'divvy' in the SQL query, with 'hammerspoon')
It's also possible that your Launch Services database has become confused/corrupt. You can force it to rebuild with the command: <pre>sudo /System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user</pre>
<h3>Hammerspoon is not sending keystokes to other applications after upgrading to Catalina</h3>
Try resetting all of Hammerspoon's permissions by executing this in Terminal:
<pre>tccutil reset All org.hammerspoon.Hammerspoon</pre>
<h2>hs.application issues</h2>
<h3>Application names aren't what I expect</h3>
<p>If you are trying to find Microsoft Office applications (e.g. using hs.appfinder.appFromName("Word")), they present a different application name to the OS than they display in the system menu bar. Use "Microsoft Word", "Microsoft Excel", etc. instead.
<p>You can get a list of the real names of all running applications in the Hammerspoon Console with the following snippet:
<pre>
hs.fnutils.each(hs.application.runningApplications(), function(app) print(app:title()) end)
</pre>
<h3>I can't make :findMenuItem() or :selectMenuItem() work in the Hammerspoon Console</h3>
Many macOS applications (e.g. Emacs, IBM Notes, Adium) mark their menus as disabled when their windows lose focus, so you may find that you can't play with them from the Hammerspoon Console. Your only option here is to encode the actions in your init.lua or bind them to events (such as hotkeys) from the console, then transfer focus back to the application window.
<h2>Issues with full-screen applications</h2>
<h3>No graphical/UI elements appear when an application is in full-screen mode</h3>
This is known to happen when running Hammerspoon with the Dock icon enabled. Try unchecking the "Show dock icon" option in the Hammerspoon Preferences, or add the following code to your <code>init.lua</code> file:
<pre>
hs.dockIcon(false)
</pre>
<h2>Can I donate money to Hammerspoon's developers?</h2>
<p>That is a tremendously generous thought, which we appreciate very much. However, we've taken the view that we would rather keep working on Hammerspoon for fun and not feel obligated to work on it because of money.</p>
<p>Instead, we would ask that you decide how much Hammerspoon is worth to you, and donate that amount of money to a charity of your choosing.</p>