I have a bash script that will run on a Mac via ssh. The script requires that a specific network drive is already installed. On a Mac, I mount this drive by opening the “JPLemme” folder on this drive in Finder. This installs the drive until the Mac falls asleep at night.
Obviously the Finder is not accessible via ssh, so I want to create an AppleScript that will mimic what I am doing with the GUI. I tried:
tell application "Finder" activate open "JPLemme" end tell
I get the following error:
execution error: Finder got an error: Can't get "JPLemme". (-1728)
I guess I missed something obvious, but Google let me down. I would also like to make better decisions, such as installing the drive directly; I avoided this approach because I do not want the Mac to suffocate when trying to mount the drive a second time after I mounted it in an unexpected way. (I don't like Mac or AppleScript ...)
source share