Force OSX to refresh mounted drive displayed on the desktop

D

DKD

Guest
I am using a couple bash scripts to make OSX mount some samba shares when it detects that is it is connected at home... it is basically looking for an SSID change and when it sees my SSID it mounts about 5 shares that we have at home (/Volumes/<insert name of share here>).

The only problem with this is that it does not create the links to the drives on the desktop. Is there any way / command / applescript hack to force it to display those drives -- or even mount them using applescript instead of bash so that the mac "knows" to display those drives?
 
OP
K

Kokopelli

Guest
Well with AppleScript it would be

Code:
tell application "Finder"
	mount volume "smb://WORKGROUP;<user>:<password>@<server>/<dir>"
end tell
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top