Timeline for MacOS Music script does not work triggered inside app
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 25 at 0:19 | comment | added | Mockman |
That makes sense. However, it is not Music that would run the script. Generally, if you run it from script editor, then that is the app that requires access. If run via the script menu, then it should be SystemUIServer that runs the script — but that might depend upon your OS version. I'm not familiar with recent OS versions but you could likely look to see what 'server' (or similar process type) fires up at script launch using Activity Monitor or top in the terminal.
|
|
May 24 at 18:58 | comment | added | nigel | @Mockman I understand—I guess I'd need to grant Music itself permission, since it runs the .scpt, which I also can't do. My reason for preferring this: Running a script file is quieter than running a script app, which launches in my dock and steals focus from Music for a split second while it runs. | |
May 24 at 18:45 | comment | added | bmike♦ | Wonderful Nigel! Onwards to more automation :) | |
May 24 at 18:22 | comment | added | Mockman | Why do you want to grant permissions to a scpt file? (which you can't do, by the way). Not sure what else you're trying to do but you can run the .app file from the script menu. | |
May 24 at 17:09 | comment | added | nigel | Thanks for helping me think through this. The issue was indeed related to Automation preferences. The script runs with FastScripts once I accept FastScripts' request to control Music. When I export the script as a standalone app and try to trigger in Music, it also asks permission and once I grant permission, it works. Unfortunately, I can't seem to find a way to grant appropriate permissions to the simple .scpt file, but the two solutions I listed above will work. Thanks! | |
May 24 at 17:02 | vote | accept | nigel | ||
May 24 at 16:27 | history | answered | bmike♦ | CC BY-SA 4.0 |