• 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
Re: Mounting a laptop volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mounting a laptop volume


  • Subject: Re: Mounting a laptop volume
  • From: Jim Brandt <email@hidden>
  • Date: Thu, 12 May 2011 15:28:26 -0500

Deivy,

The extra period is there because that is what I copied from the server displayed when I did a "Get Info" on the manually mounted volume.

This command 
mount volume "afp://jim:email@hidden/jim"
gives a error
"Disk jim wasn't found."

So far, the only thing I can get to work was the open location recommended by Axel. The only problem with that is it won't honor a try block if the laptop is sleeping or otherwise not available.

tell application "Finder"
set Secs to 0
set mounted to true
if not (exists disk "jim") then
try
open location "afp://Living-Hope-Churchs-MacBook.local./jim"
on error the error_message number the error_number
display dialog "Error: " & the error_number & ". " & the error_message buttons {"OK"} default button 1
end try
end if

never goes through the on error. I get a "connection failed" dialog instead.


On May 12, 2011, at 1:11 PM, email@hidden wrote:

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"


 _______________________________________________
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: Axel Luttgens <email@hidden>
    • Re: Mounting a laptop volume
      • From: Deivy Petrescu <email@hidden>
  • Prev by Date: Re: Help needed with Finder copy/duplicate with Apple script !!
  • Next by Date: Re: Help needed with Finder copy/duplicate with Apple script
  • Previous by thread: Re: Mounting a laptop volume
  • Next by thread: Re: Mounting a laptop volume
  • Index(es):
    • Date
    • Thread