E-Maculation
https://www.emaculation.com/forum/

Downloaded SheepShaver bundled scripts do not run in Mojave
https://www.emaculation.com/forum/viewtopic.php?f=20&t=10267
Page 1 of 1

Author:  adespoton [ Fri Jul 12, 2019 9:11 pm ]
Post subject:  Downloaded SheepShaver bundled scripts do not run in Mojave

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.

Author:  Ronald P. Regensburg [ Sat Jul 13, 2019 11:10 am ]
Post subject:  Re: SheepShaver bundled scripts do not run in Mojave

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.

Author:  emendelson [ Sat Jul 13, 2019 12:15 pm ]
Post subject:  Re: SheepShaver bundled scripts do not run in Mojave

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.

Author:  Ronald P. Regensburg [ Sat Jul 13, 2019 3:44 pm ]
Post subject:  Re: SheepShaver bundled scripts do not run in Mojave

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.)

Author:  emendelson [ Sat Jul 13, 2019 7:32 pm ]
Post subject:  Re: SheepShaver bundled scripts do not run in Mojave

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.

Author:  Ronald P. Regensburg [ Sun Jul 14, 2019 8:15 am ]
Post subject:  Re: SheepShaver bundled scripts do not run in Mojave

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.

Author:  emendelson [ Sun Jul 14, 2019 12:18 pm ]
Post subject:  Re: SheepShaver bundled scripts do not run in Mojave

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.

Author:  Ronald P. Regensburg [ Sun Jul 14, 2019 6:56 pm ]
Post subject:  Re: Downloaded SheepShaver bundled scripts do not run in Moj

I split this thread from the topic where it was originally posted as it was drifting off-topic there.

Author:  emendelson [ Sun Aug 04, 2019 2:04 pm ]
Post subject:  Re: Downloaded SheepShaver bundled scripts do not run in Moj

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.

Author:  Ronald P. Regensburg [ Sun Aug 04, 2019 2:33 pm ]
Post subject:  Re: Downloaded SheepShaver bundled scripts do not run in Moj

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

Author:  emendelson [ Sun Aug 04, 2019 2:40 pm ]
Post subject:  Re: Downloaded SheepShaver bundled scripts do not run in Moj

Understood - I was posting that information for use with other programs that might not run under Mojave or Catalina.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/