AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Hammerspoon capture event11/11/2023 Gets the application bundle identifier of the application currently registered to handle a URL scheme Hs.urlevent.getDefaultHandler(scheme) -> string A table containing the bundle identifiers of all applications that can handle the schemeĮxtensions/urlevent/liburlevent.m line 269.scheme - A string containing a URL scheme (e.g.Gets all of the application bundle identifiers of applications able to handle a URL scheme Hs.urlevent.getAllHandlersForScheme(scheme) -> table Given the URL hammerspoon://doThingA?value=1 The event name is doThingA and the callback's params argument will be a table containing.senderPID - An integer containing the PID of the sending application, if available (otherwise -1).params - A table containing key/value string pairs containing any URL parameters that were specified in the URL.eventName - A string containing the name of the event.The callback function should accept two parameters:.callback - A function that will be called when the specified event is received, or nil to remove an existing callback.eventName - A string containing the name of an event. ![]() Registers a callback for a hammerspoon:// URL event ![]() senderPID - An integer containing the PID of the application that opened the URI, if available (otherwise -1).fullURL - A string containing the full, original URI.params - A table containing the key/value pairs of all the URL parameters, typically empty.host - A string containing the host requested (typically nil).scheme - A string containing the URI scheme (i.e.senderPID - An integer containing the PID of the application that opened the URL, if available (otherwise -1)Ī function that should handle mailto: URL events.fullURL - A string containing the full, original URL.params - A table containing the key/value pairs of all the URL parameters.host - A string containing the host requested (e.g.scheme - A string containing the URL scheme (i.e.The function should handle four arguments:. ![]()
0 Comments
Read More
Leave a Reply. |