Login  •  Register


The time is now: Sun Aug 25, 2019 4:39 pm

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 11 posts ]
Print view Previous topic  |  Next topic
Author Message
PostPosted: Fri Jul 12, 2019 9:11 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2669
Location: Emaculation.com
I think I may know what's going on: that's the error AppleScript applets give if older pre-entitlement applets try to run on a modern version of macOS.

To fix this, all that's usually required is to open the script in Script Editor and re-save it as an applet. The entitlements get added to the plist.

This is separate from GateKeeper's feature to prevent downloaded scripts from running -- that works just like for applications.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Jul 13, 2019 11:10 am 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 5530
Location: Amsterdam, Netherlands
I tried recompiling and newly save the scripts. It does not solve the issue.

Here is what happens:
- The scripts run fine on my Mojave system
- I compress the folder with the scripts
- I decompress the zip file and the scripts still run fine
- I upload the compressed file (Fetch SFTP)
- I download the compressed file (Safari)
- The zip file looks identical in all respects to the uploaded zip file
- I decompress the file
- The resulting folder and scripts look identical in all respects to the folder and scripts I compressed
- The scripts do not run. An error message claims that the files are damaged and should be moved to the trash.

I tried similar tests with other files, like with the SheepShaver application. No problem.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Jul 13, 2019 12:15 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1070
Could you try these copies of the scripts? I codesigned them, and they should (I hope) work on other systems:

https://www.dropbox.com/s/1a8t0d6stkcjy ... s.zip?dl=1

If they work, please feel free to use them, and I'll remove the link from my Dropbox.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Jul 13, 2019 3:44 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 5530
Location: Amsterdam, Netherlands
They work, thanks. I replaced the scripts in the SheepShaver folder download.

Maybe I should consider developer ID code signing for the SheepShaver and BasiliskII apps I post. I can pay the $99,- a year, that is no problem. Notarization is probably a bridge too far for these applications. (Apart from the fact that I do not really understand what it is about, technically.)


Last edited by Ronald P. Regensburg on Sun Jul 14, 2019 6:49 pm, edited 1 time in total.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Jul 13, 2019 7:32 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1070
If you can afford the US$99 for the Developer account, I think it's worth having.

Shane Stanley has written an application that notarizes AppleScripts very easily. I've used it for two of my WordPerfect-related scripts. You can find it at the LateNightSW.com forum for Script Debugger (I can send a link if needed). I can do this if you don't want to pay for a developer account. It will probably save a lot of support time on the forum in the future.

EDIT: Also, when you get the message about the application being damaged, Ctrl-Click on the script and choose Open from the menu.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Jul 14, 2019 8:15 am 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 5530
Location: Amsterdam, Netherlands
I will study code signing and notarization when I have the time.

emendelson wrote:
EDIT: Also, when you get the message about the application being damaged, Ctrl-Click on the script and choose Open from the menu.

That was the first thing I tried. It did not work with these scripts.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Jul 14, 2019 12:18 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1070
Ronald P. Regensburg wrote:
emendelson wrote:
EDIT: Also, when you get the message about the application being damaged, Ctrl-Click on the script and choose Open from the menu.

That was the first thing I tried. It did not work with these scripts.


Apple must have changed things in recent OS updates. That certainly would make things difficult.

Here is the utility that makes notarization easy:

https://latenightsw.com/sd-notary-notarizing-made-easy/

The only possibly confusing part is creating and storing the device-specific password. Apple will give you a password that looks like abcd-efgh-ijkl-mnop. The instructions show how to enter into the Keychain, with the name "altool". When you use SD Notary, you enter the name "altool" (no quotation marks) in the SD Notary utility and it works.

I've also successfully used these instructions for notarizing from the command line:

https://derflounder.wordpress.com/2019/ ... lications/

But the SD Notary application is much easier.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Jul 14, 2019 6:56 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 5530
Location: Amsterdam, Netherlands
I split this thread from the topic where it was originally posted as it was drifting off-topic there.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Aug 04, 2019 2:04 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1070
Back to the original topic of the script.

If right-clicking and Open won't launch a script or application, then run this command from the terminal

Code:
sudo attr -rc /Path/To/Application.app


The script or application will now run.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Aug 04, 2019 2:33 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 5530
Location: Amsterdam, Netherlands
As mentioned in this topic July 13, I changed my download of the SheepShaver folder to contain the scripts that are code-signed by emendelson. They should run fine in Mojave.
I also replaced the separate download of the scripts.

SheepShaver folder: http://ronaldpr.home.xs4all.nl/sheepsha ... folder.zip

SheepShaver scripts: http://ronaldpr.home.xs4all.nl/sheepsha ... cripts.zip


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Aug 04, 2019 2:40 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1070
Understood - I was posting that information for use with other programs that might not run under Mojave or Catalina.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 11 posts ]


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group