Resource icon

How to print to any printer from Classic Mac OS using macOS / X.

How to print to any printer from Classic Mac OS using macOS / X.

I. From the macOS Terminal:

lpstat -p
Make note of the printer you want to use.
example: Brother_MFC_L2740DW_series

II. Open Script Editor on macOS / X. Input the following script:
________________________________________________________________________
on adding folder items to this_folder after receiving these_items
try
tell application "Finder"
repeat with i from 1 to number of items in these_items
try
set this_item to item i of these_items
set the path_string to this_item as string
set the final_path to quoted form of POSIX path of path_string
do shell script "/usr/bin/lp -d Brother_MFC_L2740DW_series " & final_path
move this_item to trash with replacing
on error error_message
tell application "Finder"
display dialog "Error for item " & (this_item as string) ¬
& ": " & error_message buttons {"Continue", "Cancel"} ¬
default button 1 giving up after 120
end tell
end try
end repeat
end tell
on error error_message
tell application "Finder"
display dialog error_message buttons {"Cancel"} ¬
default button 1 giving up after 120
end tell
end try
end adding folder items to
________________________________________________________________________

III. Save the script from II. into your
~/Library/Scripts/Folder Action Scripts folder.
If that folder doesn't exist, create it.

IV. Create a folder to attach the script made in II.
Right/CTRL click the folder and select Services->Folder Action Setup...

V. Select the script from the drop menu made in II.

VI. Setup an FTP server on macOS / X. I recommend QuickFTP from the App
Store. It doesn't require an install. Its just a simple App.

VII. Install an FTP client on your Classic Mac.

VIII. Connect to your macOS / X FTP server and upload the file into the
folder created in IV. It will print in a few seconds.
Author
Slimes
Views
425
First release
Last update
Rating
0.00 star(s) 0 ratings