Reply
   
 Mapping smb file shares 
 
 
  #1 (permalink)  
Old 01-04-2008, 03:25 PM
Regular

Join Date: Feb 2005
Group: Regulars
Location: Wellington, NZ
Posts: 1,032


Mapping smb file shares

Hi there

I'm connected to work over my VPN. Usually I can map a drive by pressing cmd+k and entering smb://ip.address/sharename. This time when I try it seems to auto-populate afp:// before the smb:// so the string ends up being afp://smb://ip.address/sharename. Clearly this won't connect me to the folder

Any ideas why this has started happening, and how I can stop it?

Thanks
G.
__________________
24" iMac White 2.16Ghz Core 2 Duo, Leopard 10.5.2
Macbook White 2.0GHz Core Duo, Leopard 10.5.2
5G Black 30Gb iPod, 2G Silver 4Gb iPod Nano, 8Gb iPhone
Toshiba Tecra A7, 1.83Ghz Core Duo, 4Gb RAM, 100Gb HDD, Vista Ultimate SP1
Asus EeePC 4G Black - Running Windows XP SP2, 16Gb SDHC
gehenna is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #2 (permalink)  
Old 02-04-2008, 12:09 AM
Member

Join Date: Apr 2008
Group: Member
Location: Houston, TX
Posts: 31


create an applescript for it. and run it when you need it. i posted this in another thread yesterday, but it will fit your needs too...

Code:
tell application "Finder"
	
	if exists folder "SHARENAME" in desktop then
		display dialog "SHARENAME is already mounted." buttons "OK" giving up after 5
	else
		set mount1_conn to false
		set loopcount to 1
		repeat until mount1_conn is true or loopcount is greater than 3
			if exists folder "SHARENAME" in desktop then
				set mount1_conn to true
			else
				try
					mount volume "smb://127.0.0.1/SHARENAME" as user name "USERNAME" with password "PASSWORD"
				end try
				delay 1
				set loopcount to loopcount + 1
			end if
		end repeat
	end if
	
end tell
put that in the script editor (application > applescript > script editor.app) and change the things in capitals... SHARENAME, etc. then save it out as an app (run only). then you can throw that app on your doc and click it when needed.
MDParker is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #3 (permalink)  
Old 04-04-2008, 06:01 AM
Regular

Join Date: Feb 2005
Group: Regulars
Location: Wellington, NZ
Posts: 1,032


Thanks MDParker, but I'm after a settings solution (although this is a good script to keep handy).... I Feel that there must have been something that changed as I never had this issue before on the Macbook, and I don't have it on my iMac. Whenever I type smb://blah.blah/blah it just connects. but on the macbook if I type that in and press enter the system auto puts afp://smb://blah.blah/blah...

Seems really strange that it's only just started happening, and I'm sure apple haven't stopped supporting smb shares
__________________
24" iMac White 2.16Ghz Core 2 Duo, Leopard 10.5.2
Macbook White 2.0GHz Core Duo, Leopard 10.5.2
5G Black 30Gb iPod, 2G Silver 4Gb iPod Nano, 8Gb iPhone
Toshiba Tecra A7, 1.83Ghz Core Duo, 4Gb RAM, 100Gb HDD, Vista Ultimate SP1
Asus EeePC 4G Black - Running Windows XP SP2, 16Gb SDHC
gehenna is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #4 (permalink)  
Old 05-04-2008, 12:18 AM
Member

Join Date: Apr 2008
Group: Member
Location: Houston, TX
Posts: 31


so, you'd rather type it in every time? i don't understand. but as for it adding the afp in front, i'm sure it's a deafult setting that got set at some point. have you tried deleting the finder plist?
__________________
JiXeR in iTunes

PSP Firmware: 3.90 M33-3 (Slim / 4GB)
PS3 Firmware: 2.20
MDParker is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #5 (permalink)  
Old 05-04-2008, 01:03 AM
Regular

Join Date: Mar 2006
Group: Regulars
Location: Perth, WA
Posts: 1,847


afp is the default connection type.

This is really odd to say the least. I can't think of why it populates afp:// in front of whatever you are typing in.

Perhaps once you get it to work, create an alias for the drive and use that to mount it instead?
__________________

Trades: Clockwork, applecollector, Amzy, Brains, chris, samuelclarke, mrldigitalmedia
Link: http://www.lifeinplasticpants.com/2003/07/12/index.html
thorevenge is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #6 (permalink)  
Old 05-04-2008, 10:34 AM
Regular

Join Date: Feb 2005
Group: Regulars
Location: Wellington, NZ
Posts: 1,032


Quote:
Originally Posted by MDParker View Post
so, you'd rather type it in every time? i don't understand.
I'm not talking about a single share here, I have literally dozens that I access at different times, whether on my home network or across the vpn. on my imac I can get a share up in less than 5 seconds by pressing cmd+k and typing the unc path. since I never know which share i'll need, and never know when I'll need it, i need to be able to manually type this out. this is also the case if i'm accessing other computers when I'm troubleshooting - computers I would never normally access so have no need to have in my list.

i'll try deleting the finder.plist. it's still weird though.
__________________
24" iMac White 2.16Ghz Core 2 Duo, Leopard 10.5.2
Macbook White 2.0GHz Core Duo, Leopard 10.5.2
5G Black 30Gb iPod, 2G Silver 4Gb iPod Nano, 8Gb iPhone
Toshiba Tecra A7, 1.83Ghz Core Duo, 4Gb RAM, 100Gb HDD, Vista Ultimate SP1
Asus EeePC 4G Black - Running Windows XP SP2, 16Gb SDHC
gehenna is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #7 (permalink)  
Old 05-04-2008, 12:02 PM
Still stuck in 1984

Join Date: Mar 2005
Group: Regulars
Location: Inside your head
Posts: 2,642


Once you have a remote share on your desktop, make an alias of it and drop it into a folder somewhere, and drag that folder to the side-bar.

Finder is still very brain-dead about finding shares, but an alias will keep the relevant direct-path and login information associated with the share, making remounting much much quicker.
__________________
Tune into Psymbiensis, 24/7 chill music streaming straight to your desktop.
Cornell Univiersity says, "Watching TV shows makes you stupid." Break the addiction, visit White Dot today.
Wi-fi is a health risk, please use sparingly and with caution.
Brains is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #8 (permalink)  
Old 05-04-2008, 12:32 PM
Regular

Join Date: Feb 2005
Group: Regulars
Location: Wellington, NZ
Posts: 1,032


Quote:
Originally Posted by Brains View Post
Once you have a remote share on your desktop, make an alias of it and drop it into a folder somewhere, and drag that folder to the side-bar.

Finder is still very brain-dead about finding shares, but an alias will keep the relevant direct-path and login information associated with the share, making remounting much much quicker.
hi brains, yep i'm aware of all that too. i'm really just after an answer to my original question. i haven't tried the plist thing yet but if it doesn't work i'll open a thread on the apple support forums and see if anyone there can help me. i can't just make an alias of a share and leave it somewhere because as i said before, i never know what pc i need to access - it may be one i've never used before or it may be one i access daily just depends on the situation.

if anyone knows how to address the actual issue, and not just provide a workaround, i'd really appreciate hearing from you. thanks all for your replies so far though as i'm sure it will help someone who searches for this kind of thing in the forums later down the track.
__________________
24" iMac White 2.16Ghz Core 2 Duo, Leopard 10.5.2
Macbook White 2.0GHz Core Duo, Leopard 10.5.2
5G Black 30Gb iPod, 2G Silver 4Gb iPod Nano, 8Gb iPhone
Toshiba Tecra A7, 1.83Ghz Core Duo, 4Gb RAM, 100Gb HDD, Vista Ultimate SP1
Asus EeePC 4G Black - Running Windows XP SP2, 16Gb SDHC
gehenna is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #9 (permalink)  
Old 08-04-2008, 01:09 AM
Member

Join Date: Apr 2008
Group: Member
Location: Houston, TX
Posts: 31


ok, well, i know this still doesn't solve your mystery as to WHY it's happening...but maybe this script will help you. this will pop open a window and allow you to chose which connections you want to make. multiple connections are allowed too.

Code:
choose from list {"Connection 1", "Connection 2", "Connection 3", "Connection 4"} with prompt "Select Connection" default items {"Connection 1"} OK button name "OK" cancel button name "Cancel" with multiple selections allowed and empty selection allowed
tell application "Finder"
	if result is {"Connection 1"} then
		try
			mount volume "smb://127.0.0.1/SHARENAME" as user name "USERNAME" with password "PASSWORD"
		end try
		
	else if result is {"Connection 2"} then
		try
			mount volume "smb://127.0.0.1/SHARENAME" as user name "USERNAME" with password "PASSWORD"
		end try
		
	else if result is {"Connection 3"} then
		try
			mount volume "smb://127.0.0.1/SHARENAME" as user name "USERNAME" with password "PASSWORD"
		end try
		
	else if result is {"Connection 4"} then
		try
			mount volume "smb://127.0.0.1/SHARENAME" as user name "USERNAME" with password "PASSWORD"
		end try
		
	end if
end tell
__________________
JiXeR in iTunes

PSP Firmware: 3.90 M33-3 (Slim / 4GB)
PS3 Firmware: 2.20
MDParker is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #10 (permalink)  
Old 28-06-2008, 05:13 PM
Regular

Join Date: Apr 2008
Group: Regulars
Location: Gold Coast
Posts: 128


Quote:
Originally Posted by MDParker View Post
put that in the script editor (application > applescript > script editor.app)
I know I'm bringing up an old topic, but at this point I'm feeling that i'am either completely blind or just plain stupid

I just can't seem to find that program. I'm really keen on making some scripting. Can anyone help me out. I've searched Google & what not but no luck as of yet. Or maybe theres a better script editor application out there for Apple scripting?

(Running 10.5.3, starting on 10.5.1). If that makes any difference.
wabbit is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #11 (permalink)  
Old 28-06-2008, 05:16 PM
Regular

Join Date: Jan 2004
Group: Forum Leaders
Location: Sydney
Posts: 4,670


Quote:
Originally Posted by wabbit View Post
I know I'm bringing up an old topic, but at this point I'm feeling that i'am either completely blind or just plain stupid

I just can't seem to find that program. I'm really keen on making some scripting. Can anyone help me out. I've searched Google & what not but no luck as of yet. Or maybe theres a better script editor application out there for Apple scripting?

(Running 10.5.3, starting on 10.5.1). If that makes any difference.
That application seems to be on my 10.5.3 install..

Quote:
barney:AppleScript michaelf$ ls -la
total 8
drwxrwxr-x 6 root admin 204 26 May 13:32 .
drwxrwxr-x+ 52 root admin 1768 27 Jun 18:32 ..
drwxrwxr-x 3 root admin 102 24 Sep 2007 AppleScript Utility.app
lrwxr-xr-x 1 root admin 16 26 May 13:31 Example Scripts -> /Library/Scripts
drwxrwxr-x 3 root admin 102 24 Sep 2007 Folder Actions Setup.app
drwxrwxr-x 3 root admin 102 17 Aug 2007 Script Editor.app
barney:AppleScript michaelf$ pwd
/Applications/AppleScript
__________________
MacBook 2.4Ghz C2D Superdrive w/ 4Gb ram, 160Gb HDD (White)
iMac 20" 2.16Ghz C2D w/ 3Gb ram, 256Mb video ram (White)
iPhone 3G 8Gb
1Tb Time Capsule
purana is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #12 (permalink)  
Old 28-06-2008, 05:22 PM
Regular

Join Date: Apr 2008
Group: Regulars
Location: Gold Coast
Posts: 128


Quote:
Originally Posted by purana View Post
That application seems to be on my 10.5.3 install..
Damm, that sh*ts me even more haha. I've used spotlight & triple checked the Applications Folder. Nothing there at all (for Applescript). I'm not at home so i can't just chuck the Lepoard DVD in for help either.

*edit* I just checked System Profiler under Software. Which only AppleScript Runner v1.0 is there (relating to Applescript).

Last edited by wabbit; 28-06-2008 at 05:35 PM.
wabbit is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #13 (permalink)  
Old 30-06-2008, 10:27 PM
Member

Join Date: Apr 2008
Group: Member
Location: Houston, TX
Posts: 31


it's there with every install of osx. so, you must have deleted it at some point. might check your install dvd when you get home to see if it's an optional install.
__________________
JiXeR in iTunes

PSP Firmware: 3.90 M33-3 (Slim / 4GB)
PS3 Firmware: 2.20
MDParker is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
  #14 (permalink)  
Old 30-06-2008, 10:34 PM
Regular

Join Date: Apr 2008
Group: Regulars
Location: Gold Coast
Posts: 128


Quote:
Originally Posted by MDParker View Post
it's there with every install of osx. so, you must have deleted it at some point. might check your install dvd when you get home to see if it's an optional install.
Thats what i've been reading. Deletion of that directory must be the answer (i mean why else wouldn't it be there). The doing of it unintentionally is my concern
wabbit is offline
Profile CardPM
Go to the top of the page
Digg this Post!Add Post to del.icio.us Share on Facebook
Reply With Quote
 
Reply

Thread Tools

 
Similar Threads
 
Thread Thread Starter Forum Replies Last Post
script to open file shares camel Terminal, UNIX, Command line & X11 6 01-04-2008 10:06 AM
SMB/CIFS File System Authentication hiredgoon Terminal, UNIX, Command line & X11 3 29-01-2008 10:25 PM
Leopard and SMB shares with Symlinks Problems... Remorhaz Mac OS X & All Software 1 03-11-2007 11:20 AM
Slow Aperture Vault updates on sparse disk images on smb shares oli Mac OS X & All Software 5 01-10-2007 09:57 PM
Port Mapping , Imac G5 ETHERSPIN Help and New Mac User Support 6 14-09-2005 11:16 PM