Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SnapperNZ

macrumors newbie
Original poster
Is there any way to suppress the Finder window that pops up after connecting to a network drive?

I have 4 shared folders I connect to on a NAS and a Windows PC.

So you can imagine, at logon, I get 4 Finder windows popup after the 4 have been mapped.

I'd really like to be able to suppress those Finder windows - anyone got any ideas?

I should add - currently they're mapped via Login Items in my account, but I do have an apple script which can perform the same mappings - so if it's a case of adding some syntax to the apple script to suppress the Finder window - that's not a problem.

Snapper
 
Is there any way to suppress the Finder window that pops up after connecting to a network drive?

I have 4 shared folders I connect to on a NAS and a Windows PC.

So you can imagine, at logon, I get 4 Finder windows popup after the 4 have been mapped.

I'd really like to be able to suppress those Finder windows - anyone got any ideas?

I should add - currently they're mapped via Login Items in my account, but I do have an apple script which can perform the same mappings - so if it's a case of adding some syntax to the apple script to suppress the Finder window - that's not a problem.

Snapper

Easy! Why didn't I google FIRST!

tell application "Finder"
close every window
end tell

Job done 🙂
 
Easy! Why didn't I google FIRST!

tell application "Finder"
close every window
end tell

Job done 🙂

Also - this may be handy to people.

I've got the 4 drive mappings... (example below)

tell application "Finder"
open location "smb://nas/share1
end tell
tell application "Finder"
open location "smb://nas/share2
end tell
tell application "Finder"
open location "smb://nas/share3
end tell
tell application "Finder"
open location "smb://nas/share4
end tell

So I've added this:

delay 7
tell application "Finder"
close every window
end tell

The delay is to allow time for all the mappings to complete - 7 seconds seems long but sometimes the NAS powers down for power saving - so 7 seconds is good for me.

Hope this might help someone!

Snapper
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.