Chris Hocking

Results 227 comments of Chris Hocking

I'm not sure if this answers your question or not, but to get `ProcessSerialNumber` you can use: ```objc ProcessSerialNumber psn; psn.highLongOfPSN = 0; psn.lowLongOfPSN = kCurrentProcess; ``` Header: https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/Headers/Processes.h

@cmsj - Is this of any relevance? https://github.com/Bensge/NativeDisplayBrightness

Does something like this work? ```lua local path = "/path/to/file" local file = io.open(path, "r") local data = file:read("*a") file:close() hs.osascript.applescript(data) ```

@kassi Does this work for you? ```lua hs.osascript.applescript([[display dialog "this is a test"]]) ```

@asmagill - I wonder if this is a text encoding issue too?

This might give you some ideas: https://github.com/CommandPost/CommandPost/blob/develop/src/plugins/core/action/manager/activator.lua

Absolutely, I think your initial idea is great - but just wanted to provide a possible workaround in the meantime, because hs.chooser has historically always been a bit of a...

Pinging @cmsj - I assume the CSS file was just left out of the new method to copy across files into the app bundle. As a workaround you can copy...