Downloaded SheepShaver bundled scripts do not run in Mojave

About SheepShaver, a PPC Mac emulator for Windows, MacOS X, and Linux that can run System 7.5.3 to MacOS 9.0.4.

Moderators: Cat_7, Ronald P. Regensburg, ClockWise

Post Reply
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Downloaded SheepShaver bundled scripts do not run in Mojave

Post by adespoton »

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.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: SheepShaver bundled scripts do not run in Mojave

Post by Ronald P. Regensburg »

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.
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: SheepShaver bundled scripts do not run in Mojave

Post by emendelson »

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.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: SheepShaver bundled scripts do not run in Mojave

Post by Ronald P. Regensburg »

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.
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: SheepShaver bundled scripts do not run in Mojave

Post by emendelson »

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.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: SheepShaver bundled scripts do not run in Mojave

Post by Ronald P. Regensburg »

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.
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: SheepShaver bundled scripts do not run in Mojave

Post by emendelson »

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.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Downloaded SheepShaver bundled scripts do not run in Moj

Post by Ronald P. Regensburg »

I split this thread from the topic where it was originally posted as it was drifting off-topic there.
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: Downloaded SheepShaver bundled scripts do not run in Moj

Post by emendelson »

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: Select all

sudo attr -rc /Path/To/Application.app
The script or application will now run.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Downloaded SheepShaver bundled scripts do not run in Moj

Post by Ronald P. Regensburg »

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
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: Downloaded SheepShaver bundled scripts do not run in Moj

Post by emendelson »

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