Test weather a network drive is mounted with Apple Shortcuts
All I'm really trying to do is mount a networked drive when my laptop is home. Currently have it so that it tests that I'm at home as opposed to work or a coffee shop by getting a wifi name and tested if it's my home wifi with an "if." If it is, then it mounts the drive. This works great, as far as it goes, but sometimes (due to other parts of the automation that are working fine) I run the shortcut again. Since I'm still home it passes the condition and tries to mount a drive that is already mounted and this results in errors. Honestly, if there is a 'fail with grace' code somewhere that would be perfect. Failing that, I need a conditional to test if the drive is already mounted, if it is go to 'otherwise' if it's not mount it. Any advice would be appreciated.
MacBook Pro 16″, macOS 26.1