Le 18 oct. 05 à 05:57, John Baltutis a écrit :
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 "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.