-
Notifications
You must be signed in to change notification settings - Fork 0
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
Permissions problem trying to talk to APple music #6
Comments
The user was presented with a dialog from the system saying "Jaikoz uses AppleEvents to update your Music.app library", but probably didn't notice it or chose to ignore it. Yes, as far as I know, it happens just once. I have no idea why Apple thought that's a good idea. 🤔 See also this rather old blog post: https://blog.beatunes.com/2018/10/beatunes-on-mojave-and-windows-10-dark.html (subheadline AEpocalypse :: Averted) The tool |
Hi, okay I used
|
As far as I can tell the |
What displays the message, do I have to handle it in my code or is the message displayed independently to my application ? |
macOS.
I believe, previously ignoring the dialog or answering the dialog prevents it from being displayed. Is there anything in System Preferences -> Security& Privacy -> Privacy -> Automation? That's where the user can turn access on or off. In theory. |
but that is reset if I have done Nothing in Automation and tried it on two different macs with same results |
Hm... Sorry, then I am out of ideas. |
|
If I run SongKong application from a shell script (that uses the default installed Java) then I get the authorisation message coming up for Terminal to give access to Music, and If i enable then the application works, and Terminal/Music shows up in Security/Privacy/Automation, but that isnt a viable solution for users. So Im thinking there is something wrong with Info.plist, or maybe there is some issue that Im using a bundled jre (cut down using jlink) ? |
All AppleScript has to be called on the macOS main thread. This is something that is taken care of by JaplScript.
Not really.
I wish I could help, but am out of ideas. Yes, perhaps it has something to do with how you launch your app, but I don't know what it is. Sorry. |
okay, I'll keep informed as I try things out. Using appbundler from Infinitekind |
Found the solution here https://ishaangandhi.medium.com/sending-applescript-events-from-electron-app-18dc1b7d7a51 Need to add
to my songkong.entitlements file, tried it and it work |
Just checked, beaTunes has that key, too. But to be honest, I don't even remember adding it. Thank you for sharing. I will add a note to somewhere to JaplScript, so that others don't fall into the same trap. |
I have added appropriate remarks in the README.md in the JaplScript project (currently still in |
User using jaikoz getting
I have
in my Info.plist so I assume that is correct, but Im unclear how it works is a message meant to come up for user asking them for permission, and does it happen just the once.
The text was updated successfully, but these errors were encountered: