Volumes are storage devices that are connected to the system. This provides a way to run certain commands, including mounting volumes and dismounting volumes via command line scripting for administrative purposes. The list of mounted volumes is good, the list of failed mounts sometimes includes - mounts that really DID succeed. The macOS shell allows you to programmatically access devices on your system using the command line interface (CLI) on the terminal. Mount volume "afp://AirPort%20Time%20Capsule._afpovertcp._tcp. mount CIFS shares.app - D Zurn - Edit the section below to add the specific shares you want to mount whenthe app is run. If "AirPort Time Capsule" is in diskNames thenÄisplay dialog "Disk already mounted" buttons default button 1 I thought you want to unmount the disk when mounted but that was wrong :) here a shorter version: tell application "System Events" to set diskNames to name of every disk Mount volume "afp://AirPort%20Time%20Capsule._afpovertcp._tcp.local" Tell application "System Events" to set diskNames to name of every diskÄo shell script "diskutil unmountDisk" & space & quoted form of mountedDiskName So try mounting your Time Capsule and unmounting it and seeing the difference. In addition, some disks have multiple volumes. ![]() disk0 is the first internal hard drive, disk1 is a second internal hard drive, disk3 is a FireWire drive, and disk5 is a mounted disk image. The command mount in the Terminal shows a list of mounted volumes too. The first column lists the device ID, which is a way for OS X to keep track of which disk is which. ![]() Does that the job? set mountedDiskName to "AirPort Time Capsule" Im not at my Mac, but volumes get mounted at /Volumes so something along the lines of do shell script 'ls /Volumes' should get you started.
0 Comments
Leave a Reply. |