• 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 and Dismounting local or server volumes on Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mounting and Dismounting local or server volumes on Tiger


  • Subject: Re: Mounting and Dismounting local or server volumes on Tiger
  • From: Jacques Ravanat <email@hidden>
  • Date: Tue, 18 Oct 2005 11:43:10 +0200

Le 18 oct. 05 à 05:57, John Baltutis a écrit :

On 10/17/05, Jacques Ravanat <email@hidden> wrote:

Any solution for question 2 (mounting and dismouting a secondary disk
or a partition) ?


Run to the man pages for hdutil, disktool, and mount. Read the
information
therein, and the solution shall present itself with no small haste.


OK, thanks for the solution using do shell script commands.

Should I understand "do shell script" is the only solution, and that
there is no direct AS command to mount  or dismount local disks or
volumes ?


Standard additions->mount volume

and

Finder->eject disk

are what you're looking for.

Sorry, I already tried that :
It works fine with a disk or a volume which is not on the computer issuing the command,

tell application "Finder"
    if not (exists disk "G3400-X") then
        mount volume "afp://PB-G3400.local/G3400-X/" as user name "Jacques" with password "abcdefg"  -- G3400-X is the startup disk of a PowerBook G3 on my local network
    end if
    
    delay 3
    eject disk "G3400-X"
end tell

but it does not work on a local disk or partition volume :

mount volume "afp://G4733-ATA5" --> Disk  wasn't found
mount volume "G4733-ATA5" --> Connection failure. The server may not exist or is not operating. Check the name of the server or the IP address, then retry (translated from French)
mount volume "G4733-ATA5" on server "G4733.local" --> Connection failure. This server is operating on your computer. Please access volumes and files locally (translated from French)

Any other idea, or everybody agrees the only AS solution to mount and unmount local disks or volumes, is with a Unix command under do shell script ?

Additionally, diskutil is the command
underlying Disk Utility and what I'd use to mount/unmount volumes.

Jacques Ravanat

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mounting and Dismounting local or server volumes on Tiger
      • From: Dave Lyons <email@hidden>
    • Re: Mounting and Dismounting local or server volumes on Tiger
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Mounting and Dismounting local or server volumes on Tiger (From: John Baltutis <email@hidden>)

  • Prev by Date: Re: Scripting Widgets
  • Next by Date: Re: Optimize your script with Shark
  • Previous by thread: Re: Mounting and Dismounting local or server volumes on Tiger
  • Next by thread: Re: Mounting and Dismounting local or server volumes on Tiger
  • Index(es):
    • Date
    • Thread