• 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: Deivy Petrescu <email@hidden>
  • Date: Thu, 12 May 2011 16:49:29 -0400

On May 12, 2011, at 16:28 , Jim Brandt wrote:

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

Sorry I did not that notice your script:  ditch the system events.
mount volume is an OSAx

Second, check that the name of the volume is correct in the sharing pane of system preferences.
I got an error because what should be volume.local was volume-2.local

fix the name and mount volume should work.



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

  • Follow-Ups:
    • Re: Mounting a laptop volume
      • From: Alex Zavatone <email@hidden>
References: 
 >Re: Mounting a laptop volume (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: Help needed with Finder copy/duplicate with Apple script
  • Next by Date: Re: Mounting a laptop volume
  • Previous by thread: Re: Mounting a laptop volume
  • Next by thread: Re: Mounting a laptop volume
  • Index(es):
    • Date
    • Thread