First, it seems to me that you have created a folder "myloginid" in the /users directory and saved this script there under the name "mouse".
The “myloginid” was just meant to represent your own loginid. If you open Terminl and type “pwd” you should see that you are already in that directory. You can create the script right there using the “TextEdit” text editor in OSX or using the Unix “vi” editor. If you are not familiar with vi then best to use the TextEdit editor that is part of OSX.
Presumably since the file mouse is in a subdirectory of /users, it is in the collections of paths automatically searched by Mac OS X and enables it to be accessed during reboot?
The crontab is just a Unix thing that allows you to run a script at scheduled times. In this case, when the system boots. When the operating system boots and starts the cron daemon it looks for “crontabs” for each user on the system and begins scheduling the jobs therein at the times sprecified. You can see the cron process by executing the following using Terminal.
$ ps -ef|grep cron | grep -v grep
0 290 1 0 Fri04PM ?? 0:00.21 /usr/sbin/cron
Also, do you recommend making this new folder invisible?
No need to make it invisible.
Second, I can presumably use any text editor, especially TextWrangler or Bbedit, and copy and paste your typed script with the exception of being sure the 3 lines in red are all one line, and to confirm the path of MicrosoftMouseHelper. (My path is the same as yours.) Then save it to a file named "mouse" in /users/myloginid.
Yes, That is correct.
To activate the script are the following Terminal commands required?
sh mouse.sh
chmod +x mouse.sh
If you want to manually execute the script make sure you have executed the “chmod” command as shown and then just enter the full path to the script. chmod is only executed once to make the script executable.
chmod 755 /Users/myloginid/mouse
/Users/myloginid/mouse
After this, it is time to reboot and the mouse should work fine without SIP? Of course, those of us with Microsoft Comfort keyboards may still need partially disabled SIP?
Assuming you created the crontab as stated earlier. You can verify by listing it as follows:
crontab -l
@reboot /Users/myloginid/mouse
I don’t have a MS keyboard. You might look to see if there is a “helper” command for the KB and just add another line to the mouse script with the same nohup syntax.
Randy