Modern MacBinary Tool for MacOS 26

lundpk

New Tinkerer
Dec 16, 2023
28
9
3
61
New Ulm, MN
blc.edu
I often get files off Macintosh Garden downloaded to my MacBook Pro with MacOS 26. How do I get these files onto a disk immage that can be read by mini Vmac? It seems the no Stuffit Deluxe or MacBinary tools exists for newer ARM based Macs to prep file to be moved to disk images.
 

Mk.558

Tinkerer
Nov 11, 2023
103
43
28
I use a "swap" disk image. A .dmg image file that works like a transfer disk. Open it on macOS, drop what you got in there, unmount it, drag the .dmg into Mini vMac, extract it. As long as you don't try to open the image in two environments at once, you won't get corruption.
 

thecloud

New Tinkerer
Oct 2, 2025
14
9
3
I use a "swap" disk image. A .dmg image file that works like a transfer disk. Open it on macOS, drop what you got in there, unmount it, drag the .dmg into Mini vMac, extract it. As long as you don't try to open the image in two environments at once, you won't get corruption.

That doesn't seem to work for me. There isn't a filesystem that the disk image can use which will be recognized by both the host macOS computer and Mini vMac. Mac OS 8.1 or later is needed to understand the HFS+ filesystem, but Mini vMac doesn't run OS versions past 7.x. Modern macOS hasn't been able to read a standard HFS volume since Catalina (10.15) and hasn't been able to write to one since Snow Leopard (10.6).

The main problem I encounter with ImportFl transfers is that it loses the file type/creator info. You need to use a tool like ResEdit or FileTyper within Mini vMac to change the imported file's metadata so it can then be opened with StuffIt Expander or whatever.

I've used a different emulator (SheepShaver) to accomplish this: dump a folder full of files into its transfer folder, then run Disk Copy within SheepShaver and create a HFS disk image from that folder, making sure to copy the image itself back to the transfer folder when done.
 

JDW

Administrator
Staff member
Founder
Sep 2, 2021
2,376
1,904
113
54
Japan
youtube.com

NJRoadfan

New Tinkerer
Feb 6, 2022
60
18
8
The UnArchiver can extract MacBinary and Stuff-It files on a modern system. In terms with disk imaging tools, there is CiderPress II. The command line versions should run fine on macOS. The GUI versions require Wine. While more Apple II oriented, it does work with HFS disk images and MacBinary files (Stuff-it isn't supported).
 
  • Like
Reactions: thecloud

eric

Administrator
Staff member
Sep 2, 2021
1,127
1,882
113
MN
bluescsi.com
GUI https://theunarchiver.com/
CLI https://github.com/ashang/unar

Unar can decode and extract (almost) everything vintage on a modern mac. Also if you're on a mac it'll preserve resource forks. It's always funny to see a low rez icon of vintage mac apps after you extract them :) But you will loose them if you were to use ImportFi as it doesnt know you actually have the fork or where to look.

Also another way to do it is to use InfiniteMac to create and unstuff apps and make the drive just the way you want it, then export it. InfiniteMac can download directly from the garden and you can just drag and drop images/disks/files to the window, all in your browser.

For local only CiderPress 2 is likely your best bet.

My workflow is usually IM first, then ciderpress, just because it's so easy/nothing to remember how to setup.
 
  • Like
Reactions: thecloud

robin-fo

Tinkerer
Feb 17, 2022
154
74
28
Switzerland
There is surely still the macbinary command in macOS 26? I use it regularly in Sequoia…

To expand any kind of archive, The Unarchiver is your tool of choice.

Most stuff from Macintosh Garden is stored on a disk image so you can use The Unarchiver to expand it and then drag it directly to the Mini vMac window.

If you have actual Mac data with Resource Fork, I‘d compress it with macbinary encode and then either use ImportFl or move it to a disk image with hfsutils:

Bash:
hmount myimage.dsk
hcopy ... ...
humount
(or something like that)

If your file is macbinary encoded, it will automatically be decoded by hcopy
 

thecloud

New Tinkerer
Oct 2, 2025
14
9
3
Thanks for all the replies. The original question (and mine) was not about expanding archives... as mentioned, The Unarchiver works great for that. The difficult part is getting Mac files into Mini vMac. If you already have a StuffIt archive, then you can use ImportFl and drag it in, and StuffIt Expander will handle it from there. But what if you have a variety of apps and documents with resource forks? Then you need to archive them into a data-only container format that can be opened by Mini vMac somehow. Individually doing `macbinary encode` on dozens of files would be tedious.

I was hopeful when I saw that there was a MiniUnZp utility in the Extras section of the gryphel website, but it effectively has the same problem: all files inside the zip get unarchived to plain data files, without resource information.

The CiderPress II command-line tool looks very promising! (The GUI app didn't work; it opens and then immediately quits.) cp2 can create a new disk image, formatted as standard HFS, and you can copy files or folders into it! The resulting image can be mounted on old versions of Mac OS X, so it appears to have been generated correctly. But Mini vMac puts up a "This is not a Macintosh disk: Do you want to initialize it?" dialog when the image file is dragged to the window. The solution to that problem was to use Disk Jockey to convert the image that CiderPress II created into a raw HFS image. Once converted, cp2 can add more files to the image and it doesn't need to be converted again.

I think the following workflow is going to be a big improvement:
1. Create a standard HFS disk image using CiderPress II, e.g.: `cp2 create-disk-image NewDisk.dc42 800kb hfs`
2. Convert that image file to raw HFS using Disk Jockey. (I don't see a way for Disk Jockey to directly create a pre-formatted HFS image.)
3. Use CiderPress II to copy files/folders into the disk image: `cp2 add NEWDISK.img /Volumes/Data/StuffToXfer`
4. Mount the image in Mini vMac.
 

V.Yakob

Tinkerer
Sep 6, 2023
112
44
28
Syktyvkar
I use StuffIt Delux in Sheepshaver.
It's not always convenient, but you can always run the application and understand whether you need it on a vintage Macintosh machine or not. :)
 

Mk.558

Tinkerer
Nov 11, 2023
103
43
28
That doesn't seem to work for me. There isn't a filesystem that the disk image can use which will be recognized by both the host macOS computer and Mini vMac. Mac OS 8.1 or later is needed to understand the HFS+ filesystem, but Mini vMac doesn't run OS versions past 7.x. Modern macOS hasn't been able to read a standard HFS volume since Catalina (10.15) and hasn't been able to write to one since Snow Leopard (10.6).

Ah I see what's the difference. I use Tiger to do most of my pre-OS X stuff, it's a bridge between modern systems and old systems. 10.5.8 was the last to write HFS, so yeah I can see that.

Your main issue is that you don't always know what you're dealing with. Is it a Stuffit 1.5.1 archive? 3.0? 4.0? 5.0? 5.5? 6.0?

Mini vMac can only deal with up to about Stuffit 4.0 files. For the others, Mac OS 9 is a good choice. Consider using Sheepshaver to perform "initial processing": decoding and extraction. Since it has, or can, have your main HDD linked, you can simply fire up Sheepshaver and copy from macOS directly, that is, if you're not using an APFS volume, which you could be. If so, then you'll probably want some kind of HFS+ partition somewhere local. Doesn't have to be very big.

Then there's the jump from Sheepshaver to Mini vMac, which is a bit awkward since Mini vMac doesn't really do networking unless you have the LToUDP option, which only works on certain setups. But since you know what you'll be dealing with, you could just drop it into a DropStuff 4.0 archive, then use ImportFI to get it into Mini vMac.

I recommend using something like Creator Changer if you use System 7 on Mini vMac. With Macintosh Drag and Drop installed, you should be able to just drag the .sit file directly on CC 2.8.4, and because you used pre-stored type & creator code profiles, you just pick one, hit OK and it auto-quits.
 

thecloud

New Tinkerer
Oct 2, 2025
14
9
3
Wouldn't it be cool if you could make a new StuffIt archive on your Apple Silicon Mac, then import it into Mini vMac with ImportFl?

sit-create-archive.jpg


stuffit-testarchive.png
 
Last edited:

thecloud

New Tinkerer
Oct 2, 2025
14
9
3
I was looking at the source to the sitPack program. one of the Mini vMac extras on the Gryphel website, and realized that Paul adapted the code to make StuffIt 1.5.1 files from the old unix sit program that was posted to Usenet back in 1988. The original code could only deal with input files that were split into .data, .rsrc, and .info segments by xbin, and it relied on specific behavior of the unix compress program. Paul's version doesn't use compress, but it does rely on all sorts of classic Mac APIs and direct 68k trap calls which don't exist anymore. So I went back to the original unix source from 1988, which I had saved at the time with the idea that it might be useful someday, and got it working. Luckily, modern macOS still has its named fork mechanism: appending /..namedfork/rsrc to a file path gives you access to the resource fork of that file.

I've also extended the code to be able to add directories recursively to the archive, but it's currently got a bug: The Unarchiver can extract the entire archive with the folder hierarchy intact, but StuffIt Expander can't. Once I track it down, I'll post the source.
 
  • Like
Reactions: eric

NJRoadfan

New Tinkerer
Feb 6, 2022
60
18
8
I'm guessing the .info files are the raw 32 byte FinderInfo data? If so, you can grab this natively from macOS file systems by dumping the extended attribute called com.apple.FinderInfo. Easy enough to do in C. You can technically dump the resource fork this way, but its a pain in the neck.
 

thecloud

New Tinkerer
Oct 2, 2025
14
9
3
I'm guessing the .info files are the raw 32 byte FinderInfo data? If so, you can grab this natively from macOS file systems by dumping the extended attribute called com.apple.FinderInfo. Easy enough to do in C. You can technically dump the resource fork this way, but its a pain in the neck.
Currently I'm just reading the FinderInfo from the resource fork. Given a file named foo, the program first tries to open foo.info, and if that doesn't exist, it opens foo/..namedfork/rsrc and reads it from the header.

EDIT: The format of the .info file created by xbin is actually 128 bytes and includes both the filename and FInfo. The old 1980s-vintage C source for both xbin and sit is online here. My updated version is still in progress. I figured out the issue with folder entries (they're supposed to contain the size of all their contents, so the entry has to be rewritten at the end of processing that directory.)
 
Last edited:

V.Yakob

Tinkerer
Sep 6, 2023
112
44
28
Syktyvkar
WoW!!!
I just tried to archive their several image files.

Code:
 % sit -v -T JPEG -C GKON -o Screens.sit Screens
Creating archive file "Screens.sit"
Screens/.DS_Store (10244 bytes) Data:10244 Rsrc:0 [JPEG/GKON]
Screens/MachTen/.DS_Store (6148 bytes) Data:6148 Rsrc:0 [JPEG/GKON]
Screens/MachTen/MachTen-ControlPanel.JPG (30990 bytes) Data:30990 Rsrc:0 [JPEG/GKON]
Screens/MachTen/MachTen-Terminal.JPG (87994 bytes) Data:87994 Rsrc:0 [JPEG/GKON]
Screens/MachTen/Macintoshgarden-HTTPS.JPG (188969 bytes) Data:188969 Rsrc:0 [JPEG/GKON]
Screens/MachTen/Clasilla-Tuning.JPG (145139 bytes) Data:145139 Rsrc:0 [JPEG/GKON]
Screens/MachTen/Clasilla-SetProxy.JPG (73573 bytes) Data:73573 Rsrc:0 [JPEG/GKON]
Screens/PM-G3-MT-CPUs.png (6234956 bytes) Data:6234956 Rsrc:0 [JPEG/GKON]
Screens/NetBoot/.DS_Store (10244 bytes) Data:10244 Rsrc:0 [JPEG/GKON]
Screens/NetBoot/123.tiff (63522 bytes) Data:63522 Rsrc:0 [JPEG/GKON]
Wrote 6853593 bytes to "Screens.sit"

I moved Screens.sit to Sheepshaver, and the files are immediately opened by Graphic Converter.
Of course, without junk files ".DS_Store" did not do, but these are trifles. If it is possible to add a key to delete these files or delete them by default, it would be great.

Amazing!
 
  • Like
Reactions: thecloud

thecloud

New Tinkerer
Oct 2, 2025
14
9
3
Of course, without junk files ".DS_Store" did not do, but these are trifles. If it is possible to add a key to delete these files or delete them by default, it would be great.
Good idea; those should probably just be skipped by default. I haven't done a lot of testing yet, so I'm sure there will be other fixes to make.