This script command verifies network drives are mounted, and if not found, mounts them via finder (allowing for credential storage in keychain).
There is required configuration, specifically a config file like the example (shown below) located at
the default path of $HOME/.config/raycast/auto_smb_mounts.txt
.
smb://mynas/share1
smb://my-other-nas/storage_share
smb://mynas/share2
(Note the newline after the last entry.)
Once cloned, make sure to add a custom script directory in Raycast. To do this, the information from the Raycast Script Commands repo applies here too.
Read more about Raycast Script Commands here.