| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Because the particular volume I am trying to track is on the device also
containing the startup volume, it sounds like the relevant disk device file
will always start with "disk0". If the minor number representing a specific
partition remains constant across restarts, the device file name for that
volume (e.g., "disk0s10") could serve as an identifier across restarts.
Then I could depend on getting the current name of the disk object for use
in AppleScript with:
do shell script "df -t hfs | awk -F/ '/disk0s10/ {print $5}'"
As long as the focus is on disk objects on the same physical disk as the
startup disk, does anyone see a flaw in using this approach as a way to
identify a disk in AppleScript even if the name of the disk changes?
| References: | |
| >Re: Unique Identifier for Disk (From: Jeffrey Berman <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.