Below you will find answers to some of the more frequently asked questions on cliclick.
I doubleclick the application, but nothing happens except a “Terminal” window being opened.
Cliclick (as well as a number of other tools available for download on this site) is a shell application. This means it does not have a graphical user interface and that it is fully text-based. To use it, you have to use an application such as “Terminal” (in /Applications/Utilites).
When I run cliclick on Mojave / macOS 10.14, nothing happens
Go to System Preferences ➔ “Security & Privacy” ➔ “Privacy” and add cliclick and/or Terminal in the “Accessibility” and/or “Full Disk Access” sections. Judging from feedback I received from users, it looks like the permissions you have to grant differ from system to system. For instance, on my main Mac with a fresh Mojave installation, it has worked from the beginning without any special settings.
When I try to execute “cliclick” in Terminal, I only get a “cliclick: Command not found.” message
When entering a command name (such as “cliclick”), the shell will never search the whole computer for it, as it would be much too slow – and potentially insecure. Instead, it only looks inside a few folders (and, additionally, uses some sort of caching mechanism.) When you get this message, the command (“cliclick”) could not be found in one of these folders.
The problem can be solved in one of two ways: a) put the command in one of the folders where commands are expected to be or b) add the folder containing the desired command to the the list of folders to be searched for commands. Either way, you have to deal with a shell variable called “PATH“: it contains a colon-separated list of paths (each one pointing to a folder) to search for commands. You can see what’s in your
PATH by entering
echo $PATH at the shell (like any of the commands mentioned in this text, you have to hit Return afterwards to make the shell execute the command).
If you would like to change PATH or add one or more directories to it, you can do so by executing
(If you get an error, you are probably using the tcsh shell instead of the default Bash. In that case, the command has to be
setenv PATH /my/favourite/path:$PATH.)
OR you can use the full path to cliclick in Terminal: simply drop cliclick onto an open Terminal window (there has to be at least one space after the path, but newer Mac OS X versions will add it automatically) and add the coordinates where the click should occur, for instance "26 12". So, the resulting line will look like "/Volumes/cliclick/cliclick 26 12" (if you drag cliclick directly from the disk image you downloaded). As soon as you hit Return, you'll see that the Apple menu is clicked.
If you consider using cliclick or any other Terminal software, you really should read some introductory texts on the Terminal or using shells in general. There are plenty of tutorials on the web. If, on the other hand, you feel like this sounds all too complicated to you, think twice whether you want to use the shell.