Chris Hocking

Results 227 comments of Chris Hocking

Regarding AppleScript support, another easy fix is that we could tweak it so that AppleScript support is only loaded/enabled if `hs.osascript` is loaded - this should be a relatively easy...

> @latenitefilms Some of your filenames will have quotes in them, try this one: > find `~/.hammerspoon -type f -not -name .DS_Store -print0 | sort -z | xargs -0 shasum...

I'm not sure why that's not working, but as a potential workaround, could you just use a lookup table? For example: ```lua lookupTable = { ["item1"] = hs.styledtext.new("item1") ["item2"] =...

Maybe you could use `hs.eventtap.isSecureInputEnabled()` to detect when a secure input window is visible?

I think the problem is that `info.path` is just a string: ```lua info: { name = "renamedDisk", oldName = "ramDisk", oldPath = "file:///Volumes/ramDisk/", path = "file:///Volumes/renamedDisk%205/" } ``` ...so it...

@cmsj - Random idea... does a specific extension need to load first, because you can use `NSURL's` in Lua-land?

Food for thought... as CommandPost has a consistent Lua codebase (as in, very few, if any users modify the Lua code), it might be worth having a look at the...

> @latenitefilms interestingly, you don't seem to have the same sorts of crashes in CommandPost Well, that is... odd, given it's the same codebase, and I'm almost using every Hammerspoon...

Some random thoughts/questions: 1. Is it worth keeping a counter of how many Lua instances are created (i.e. how many reloads), or help narrow down if things are caused by...

Also, FYI - I can no longer access Hammerspoon's Sentry account - it just says: `Authentication error: You do not have access to the required GitHub organization.` I assume this...