Additional (Mac) installation instructions for Pierre's excellent PX41CX_Interface.xls spreadsheet
==================================================================================================

Installation is a little tricky, but is needed for the Dump Send and Receive functions to work.

Start:

Once you have selected a suitable folder, copy the .xls file and the makescript.sh files to that folder.  If you want to generate barcode listings you also need to install the barcode font from the .zip file.  You will need to install the font for ALL users, so the font book settings will need to be changed).

Then open the Mac Terminal app, and cd to the installation folder.  If you are not sure how to do this, better stop now!

Then run: /bin/bash makescript.sh (this makes a dump.scpt file and copies the file to the correct folder (in your case it will be in the: /users/your_user_name/Library/Application Scripts/com.microsoft.Excel/  folder)

Library is a hidden directory, but you can get there using the Finder->Go->Go To Folder menus and type in ~/Library then you can navigate to the final destination using your mouse. If for some reason the dump.scpt file didn't get there, you can copy and paste it from the install directory using Finder (copy and paste).

You need to install the PL2303 driver. I use this version (https://www.prolific.com.tw/UserFiles/fi...221228.zip) I'm using Sonoma on a Mac M1.  If you are using a M1 or M2 based Mac then during the install process it may prompt you to install Rosetta (if not installed already - this is a requirement of the serial driver).


After installing the driver. plug in your USB-to-Serial cable(the one that came with the PX41CX kit), and from the Mac Terminal app run: ls /dev/tty.usb* and this gives you the name of the driver that needs to go into the PX41CX spreadsheets settings page in a minute or so.

If you use the same cable that came with the kit, the driver should be /dev/tty.usbserial-220

You also need to get the send.py, and read.py files from user krischik's web page.
You need to install python on your Mac - this link worked for me  https://www.python.org/ftp/python/3.12.6/python-3.12.6-macos11.pkg    (latest version is good)
And you need to install the PySerial software.  Using the Mac Terminal app, cd /usr/local/bin   and then type in sudo pip install pyserial (it will ask for your password)
Lastly rename python3 to python (or make a copy called just python).  Copy the send.py and receive.py to the Python install folder (usually  /usr/local/bin/ )

Now you can run Excel, and open the PX41CX_Interface.xls file.  Enable macros, or else it won't work.
Click on the red Settings tab at the bottom.  

In the settings worksheet enter the full path to python, and the send.py and receive.py files.
On Mac - python is usually in /usr/local/bin/ make sure to include the trailing / when entering the setting. If you put the send.py and receive.py files in the /usr/local/bin/ directory, then the paths will be  /usr/local/bin/send.py   and   /usr/local/bin/receive.py   respectively.
Enter the com port (ie the file name you got with the ls /dev/tty.usb* command)  --> I got  /dev/tty.usbserial-220


If you got this far, congratulations, I hope your copy works well.    



Good luck with this.
If you need help, then PVT message me on the MOHPC forum.


Installing the dump.scpt file to the com.microsoft.Excel folder was the only way to overcome Mac Excel's "sandboxing"  ii Apple will not allow Mac Excel versions since 2012 to access shell commands, or local files)


If this all seems too daunting, you can use Coolterm on the Mac for sending and receiving dumps (use the serial port name you got using the  'ls /dev/tty.usb*'  command)


Enough for now, thanks for listening.
John Pride