Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mounting and Dismounting local or server volumes on Tiger



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Mounting and Dismounting local or server volumes on Tiger (From: John Baltutis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.