My Mac runs a daily script (via cron
) that mounts an AFP network share on a remote server, writes to it, and unmounts the share. Unfortunately, the script has a side-effect of opening a Finder window to view the network share, which pops up in the middle of the user's day, interrupting their work. Is there a way to mount the network share without opening the Finder window?
I mount the network share using the open
command (/usr/bin/open
):
open afp://username:[email protected]/MyVolumeName
I've already tried the -g
option (Do not bring the application to the foreground) and the -j
option (Launches the app hidden) for open
, but the Finder window still appears.
Thanks.