Security Prefpane crashes

Created at: 2021-03-16 09:51:12
Questioner General

I wrote an applescript which requires access to disks. But when adding it to the allowed applications, the security prefpane crashes. I'm using OS X 10.14.7 on an iMac. When trying with another user on the same Computer, it crashes as well. When adding another script I wrote a few years earlier, The prefpane does not crash and the script gets added.



When adding the script on my MacBookPro with 10.15.7, the script is added. No crash.



Attached the last crashlog


Answer #1:

By: Joe Keebler Jr.

I wrote an applescript which requires access to disks. But when adding it to the allowed applications, the security prefpane crashes. I'm using OS X 10.14.7 on an iMac. When trying with another user on the same Computer, it crashes as well. When adding another script I wrote a few years earlier, The prefpane does not crash and the script gets added.



When adding the script on my MacBookPro with 10.15.7, the script is added. No crash.



Attached the last crashlog


Answer #2:

By: Prof. Zion Mante DDS

Weird thing: I compiled the script using osacompile. That version makes Security Pane crash.



Then I compiled using Skript Editor. That version does not.



Differences are in

  • Contents/Info.plist
  • Contents/Resources/applet.rsrc
  • Contents/Resources/Scripts/main.scpt - which is weird as I see no difference when looking at them in Skript Editor
  • Only in the Skript Editor version: Contents/Resources/description.rtfd



I'm clueless what's going wrong here.



If you want to take a look: https://github.com/Skeeve/eject-e-Book-Reader/releases/tag/V1.0