I have a script that I adapted from somewhere around here. I mounts a network share and then opens it.
set serverIP to "XXX.XXX.XXX.XXX"
set ShareName to "HOTFOLDERROOT"
try
set ping_result to (do shell script "ping -c 1 -q " & serverIP)
end try
tell application "Finder"
if "100% packet loss" is not in ping_result then
if (list disks) does not contain ShareName then
mount volume "smb://" & serverIP & "/" & ShareName
end if
end if
open disk ShareName
end tell
The mounted volume then opens in a new window. Cool, but . . . I would like the volume to open in the current finder window. Something like “open disk ShareName in current window”.
Any ideas?
Thanks,
T.