Downloaded SheepShaver bundled scripts do not run in Mojave
Moderators: Cat_7, Ronald P. Regensburg, ClockWise
- adespoton
- Forum All-Star
- Posts: 4277
- Joined: Fri Nov 27, 2009 5:11 am
- Location: Emaculation.com
- Contact:
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.
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.
- Ronald P. Regensburg
- Expert User
- Posts: 7832
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
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.
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.
-
- Forum All-Star
- Posts: 1726
- Joined: Tue Oct 14, 2008 12:12 am
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.
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.
- Ronald P. Regensburg
- Expert User
- Posts: 7832
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
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.)
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.
-
- Forum All-Star
- Posts: 1726
- Joined: Tue Oct 14, 2008 12:12 am
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.
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.
- Ronald P. Regensburg
- Expert User
- Posts: 7832
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: SheepShaver bundled scripts do not run in Mojave
I will study code signing and notarization when I have the time.
That was the first thing I tried. It did not work with these scripts.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.
-
- Forum All-Star
- Posts: 1726
- Joined: Tue Oct 14, 2008 12:12 am
Re: SheepShaver bundled scripts do not run in Mojave
Apple must have changed things in recent OS updates. That certainly would make things difficult.Ronald P. Regensburg wrote:That was the first thing I tried. It did not work with these scripts.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.
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.
- Ronald P. Regensburg
- Expert User
- Posts: 7832
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
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.
-
- Forum All-Star
- Posts: 1726
- Joined: Tue Oct 14, 2008 12:12 am
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
The script or application will now run.
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
- Ronald P. Regensburg
- Expert User
- Posts: 7832
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
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
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
-
- Forum All-Star
- Posts: 1726
- Joined: Tue Oct 14, 2008 12:12 am
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.