• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Mounting a laptop volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mounting a laptop volume


  • Subject: Mounting a laptop volume
  • From: Jim Brandt <email@hidden>
  • Date: Thu, 12 May 2011 09:03:48 -0500

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
 _______________________________________________
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

  • Follow-Ups:
    • Re: Mounting a laptop volume
      • From: CYB <email@hidden>
    • Re: Mounting a laptop volume
      • From: Deivy Petrescu <email@hidden>
    • Re: Mounting a laptop volume
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: What is the System language
  • Next by Date: Re: Mounting a laptop volume
  • Previous by thread: Re: What is the System language
  • Next by thread: Re: Mounting a laptop volume
  • Index(es):
    • Date
    • Thread