chooseDirectory(n) on macOS
The text e140ed6539aa, as Mac OS X 10.4.2, Mac OS X 10.4.1, Mac OS X 10.4 shipped it.
pops up a dialog box for the user to select a directory.
Flags it lists
-
-initialdir -
-mustexist -
-parent -
-title