Re: Mounting a laptop volume
Re: Mounting a laptop volume
- Subject: Re: Mounting a laptop volume
- From: Deivy Petrescu <email@hidden>
- Date: Thu, 12 May 2011 11:35:49 -0400
On May 12, 2011, at 10:03 , Jim Brandt wrote:
> I have a question about how to mount a laptop, connected wirelessly to my local network, on my desktop computer via Applescript.
>
> I'm currently doing this manually.
>
> 1) Select "Connect to server" menu item of "go" menu
> 2) Click "Browse", pick laptop, click "connect"
> 3) Click "connect" on dialog (User Name and password are in Keychain)
> 4) select volume to mount, click "ok"
>
> Looking at AS User's Guide, I should be able to use the "mount volume" command.
>
> I've tried several versions and none work.
>
> BTW, with the volume mounted manually, a "Get Info" command of the volume shows the server name as: "afp://Living-Hope-Churchs-MacBook.local./jim"
>
> I have tried:
>
> 1) tell application "System Events" to mount volume "afp://Living-Hope-Churchs-MacBook.local./jim"
>
> error is "System Events got an error: Disk jim wasn't found."
>
> 2) tell application "System Events" to mount volume "jim" on server "smp://Living-Hope-Churchs-MacBook.local."
>
> error is "System Events got an error: Disk jim wasn't found."
>
> 3) tell application "System Events" to mount volume "/Macintosh HD/Users/jim" on server "smp://Living-Hope-Churchs-MacBook.local."
>
> error is "System Events got an error: Disk /Macintosh HD/Users/jim wasn't found."
>
> 4) tell application "System Events" to mount volume "jim" on server "smp://Living-Hope-Churchs-MacBook"
>
> error is "System Events got an error: Disk jim wasn't found."
>
> 5) tell application "System Events" to mount volume "/Macintosh HD/Users/jim" on server "smp://Living-Hope-Churchs-MacBook"
>
> error is "System Events got an error: Disk /Macintosh HD/Users/jim wasn't found."
>
>
>
> So, my question is: what should the combination of disk name and server name be?
>
> If it matters:
> The laptop is Intel running 10.6.6
> The desktop is a PowerPC G4 running 10.4.11
>
> I want the script to run on the desktop machine. Once I get past this hurdle I need to sync several folders between the two machines.
>
> TIA,
>
> Jim
Jim, you have an extra period after the local.
I tried mount volume and works correctly here (I don't remember having a problem with it)
You can also try
mount volume "afp://jim:email@hidden/jim"
Deivy Petrescu
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden