-
Notifications
You must be signed in to change notification settings - Fork 578
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.execute
returns nil
for output
#3375
Comments
Ok, meant to post this here instead of in the other thread:
as a debugging measure, you could change line 16 to something like this: -- local foreground_app_info = exec_command("getForegroundAppInfo")
local foreground_app_info, status, typ, rc = exec_command("getForegroundAppInfo")
print(foreground_app_info, status, typ, rc) This would show what the other values are. Ideally, the three additional values should be If the number at the end is |
@asmagill it was 127!! okay thank you that's a great clue. ill try reinstalling the application bin. |
That was it, I installed the app in my root directory, not my user directory. Wow thank you! |
Mac OS Ventura 13.2
Hammerspoon 0.9.97
I'm running the script found here: https://github.com/cmer/lg-tv-control-macos/blob/main/lgtv.lua
And it seems on line 16: https://github.com/cmer/lg-tv-control-macos/blob/main/lgtv.lua#L16
The
exec_command
wrapper forhs.execute
is not returning any output. I've tried packing and unpacking the result as well as printing directly fromhs.execute
to no avail. Does anyone know what's going on? I basically get a blank whitespace (tab?) in my consoleThe text was updated successfully, but these errors were encountered: