Saturday, October 1, 2022

#1 2022-09-16 01:01:41 pm

Registered: 2005-11-05
Posts: 496

Applications Scripts - developer cannot be verified

On an older OS 10.13 I was able to create application scripts, compress them, and then share them with other machines by throwing them up on a server to be downloaded.

Once unzipped by the end-user, the .app file did require the operator to right-click and choose the “Open” button on the prompt that states that the “” is from an unidentified developer. Are you sure you want to open it?

Now on 12.6, another user’s Mac that I am testing only has two radio buttons within its General Security & Privacy:

“App Store”

“App Store and identified developers”

There is no “Anywhere” radio button, for this Macbook I am testing.

Therefore the .app file they download from the server, and unzip and right-click to open yields the following message:

Xxxxxxxx cannot be opened because the developer cannot be verified. 

This alert contains two buttons: “Move to Trash” & “Cancel”

I was able to write a script that the end-user could use that would target the app that could not be opened and modify the file. This secondary script that resides on the end-user's machie would remove the attribute embedded in the app that failed to open.

The shell being used is:

do shell script "xattr -d

Running this secondary script would then allow the application script to be opened by the end-user.

Ideally, I do not want to have operators rely on using a secondary script to modify an application script every time they receive one from a server that was compressed.

Is there any way for me to compile the application script so it will not consider the application as being from an unidentified developer?

Or is there a command line that can be used on the end-users machine to reveal the "Anywhere" radio button in the System Preferences > General > Security & Privacy

I did search this forum, but to no avail.

On second thought - I believe the Terminal command might be as follows:
sudo spctl --master-disable

I am leaving this post up in case anybody is familar and can confirm.


Last edited by Jeffkr (2022-09-16 01:05:21 pm)



#2 2022-09-16 02:02:08 pm

Registered: 2011-11-29
Posts: 202

Re: Applications Scripts - developer cannot be verified

Hold down the control key when you open the Application.
it will ask at that point.

Last edited by robertfern (2022-09-16 02:02:41 pm)



#3 2022-09-18 09:14:29 am

Registered: 2005-11-05
Posts: 496

Re: Applications Scripts - developer cannot be verified

Wow Robert, I had no idea about this - Thank you!



Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)