Use AppleScript's Applet functionality to kickstart Winbox-Mac #159
+5
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #156, #157
This PR uses a trick I used over a decade ago to chainload an application through the AppleScript script runner runtime. It turns out that the AppleScript runner has the necessary entitlements to allow local network discovery, re-enabling the LAN discovery features of Winbox 3 via Winbox-Mac. This change uses a hacked apart AppleScript Applet Bundle, a feature of AppleScript's script editor which creates an App Bundle that has a small
applet
binary that launches an AppleScript file located in the bundle's Resources directory.I do not know how this is signed, if at all, which will require testing on machines that do not have my Apple ID to ensure functionality.
Note
As a result of this new chainloading strategy, the application requesting Keystroke Monitoring and Folder Access privileges will now be "applet" instead of "winbox-mac" as that's the new parent process requesting these permissions. I do not believe that this would allow all AppleScript applet bundles to receive these permissions, but that has not been tested. If this does not fit within your security model, I would turn you towards the officially supported Winbox 4 from Mikrotik.