Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: One way to automount SMB network shares' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: One way to automount SMB network shares
Authored by: neill on Feb 07, '07 11:06:32AM

I've been using a similar method to this for years to mount an afp server volume on my laptop at home . . .my wife and I save all real data to the server instead of our local homedirectories. An applescript of the form mount vol afp://user:password@server_IP:sharename works perfectly.

Recently I reorganized my backup routines for the laptops . . .and created a second share on the server with identical share permissions as the original . . .call them share1 and share2.

I'm running into an issue when the second script is run . . .what I want to do is keep share1 always mounted and only mount share2 when needed for the backup. Running the script is easy . . .but the problem occurs when it is run.

If share1 is already mounted and I run the script to mount share2 . . .I get some random combination of the following: (a) an error dialog that says Disk some volume can't be found with an OK and Edit button, (b) proper operation of the script with share2 mounting normally or (c) same as #1 except the volume mounts when I click the OK button. Clicking the Edit button in either (a) or (c) gives me an error that says Script Editor can't open the dictionary of the application because it is not scriptable.

Both scripts are saved as universal binary application bundles.

Both scripts work properly if neither volume is currently mounted when they are run.

If I mount share2 then run the script for share1 . . the same scenarios as (a) through (c) above occur.

Both shares are shared via SharePoints on a G4 running Tiger (non server version). Permissions are assigned as follows: Owner = admin user on the G4, Group=shareusers with R/W, and everybody=R/W. Shareusers is a group created via SharePoints that has a single user in it. The user is a server non admin account.

Both scripts are run with the userid/password correspoding to the single user in the shareusers group.

Any idea what might be going on . . .or how to get the second volume to mount correctly consistently?



[ Reply to This | # ]