Switch to full style
About SheepShaver, a PPC Mac emulator for Windows, MacOSX, and Linux that can run System 7.5.3 through MacOS 9.0.4.
Post a reply

Downloaded SheepShaver bundled scripts do not run in Mojave

Fri Jul 12, 2019 9:11 pm

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.

Re: SheepShaver bundled scripts do not run in Mojave

Sat Jul 13, 2019 11:10 am

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.

Re: SheepShaver bundled scripts do not run in Mojave

Sat Jul 13, 2019 12:15 pm

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.

Re: SheepShaver bundled scripts do not run in Mojave

Sat Jul 13, 2019 3:44 pm

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.

Re: SheepShaver bundled scripts do not run in Mojave

Sat Jul 13, 2019 7:32 pm

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.

Re: SheepShaver bundled scripts do not run in Mojave

Sun Jul 14, 2019 8:15 am

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.

Re: SheepShaver bundled scripts do not run in Mojave

Sun Jul 14, 2019 12:18 pm

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.

Re: Downloaded SheepShaver bundled scripts do not run in Moj

Sun Jul 14, 2019 6:56 pm

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

Re: Downloaded SheepShaver bundled scripts do not run in Moj

Sun Aug 04, 2019 2:04 pm

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.

Re: Downloaded SheepShaver bundled scripts do not run in Moj

Sun Aug 04, 2019 2:33 pm

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

Re: Downloaded SheepShaver bundled scripts do not run in Moj

Sun Aug 04, 2019 2:40 pm

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