The file I sent you is already a script - just a text file.
We'll try sending it a different way.
Original Message:
Sent: Mon February 20, 2023 04:02 PM
From: Samantha Stanley
Subject: SPSS crashes on launch - Mac OS issue opening syntax files.
Hi Rick,
Thanks so much for trying to help me with this issue. I wasn't able to run that script - I get the error "cannot execute binary file" when run using sudo in a terminal window. Do you have any suggestions?
Looking at it in Script Editor, which I used to save the file as a .sh, some error messages do pop up (e.g., the " is unexpected in the line starting with echo, and the "." in the line rm -fr /Library/Preferences/com.spss* ). Could this be the issue?
Thanks again,
Samantha
------------------------------
Samantha Stanley
------------------------------
Original Message:
Sent: Mon February 20, 2023 09:51 AM
From: Rick Marcantonio
Subject: SPSS crashes on launch - Mac OS issue opening syntax files.
Hi. I'm not sure exactly what the problem is, but I'd like to try something.
I've attached a shell script that I want you to run after you edit it. Edit it by changing the line
USERID=<your userid here>
Replace the right-hand side with whatever your userid is. If you don't know what that string is, in a terminal window, enter the command
whoami
and the Mac will return the string to use. Once you've done that, run the script using sudo:
sudo sh </path/clean_script.sh>
where /path is wherever you saved that script to.
Think of this script as kind of "reset" button for SPSS. After successfully running it, please start SPSS again, and let's see what happens.
------------------------------
Rick Marcantonio
Quality Assurance
IBM