• 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: Volume status
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Volume status


  • Subject: Re: Volume status
  • From: "Adam K. Wuellner" <email@hidden>
  • Date: Fri, 1 Oct 2004 12:39:56 -0500


On Oct 1, 2004, at 11:35 AM, Adam K. Wuellner wrote:

I used 'properties of disk 3' in a Finder tell block to get the following information:
{<snip>}


As you can see, you can determine the owner, group, permissions, free space, file system format, etc. Does this give you what you need?

I noticed I got nothing that would tell me wether I can write to my mounted disk images... for that, turn to do shell script and hdiutil:


do shell script "hdiutil info"
-->
"framework : 76.3
revision : 10.3.4d76.3
vendor : Apple
images : 3
================================================
image-path : /Users/akw/diskimages/script.sparseimage
image-alias : /Users/akw/diskimages/script.sparseimage
shadow-path : <none>
icon-path : /System/Library/PrivateFrameworks/DiskImages.framework/Resources/ CDiskImage.icns
image-type : sparse disk image
blockcount : 1331200
blocksize : 512
writeable : TRUE
autodiskmount : TRUE
removable : TRUE
image-encrypted : false
mounting user : akw
mounting group : akw,appserverusr,admin,appserveradm
mounting mode : <unknown>
process ID : 1558
/dev/disk2 Apple_partition_scheme
/dev/disk2s1 Apple_partition_map
/dev/disk2s2 Apple_HFS /Volumes/script
================================================
image-path : /Users/akw/diskimages/awuellner.dmg
image-alias : /Users/akw/diskimages/awuellner.dmg
shadow-path : <none>
icon-path : /System/Library/PrivateFrameworks/DiskImages.framework/Resources/ CDiskImage.icns
image-type : UDIF read/write
blockcount : 22504826
blocksize : 512
writeable : false
autodiskmount : TRUE
removable : TRUE
image-encrypted : false
mounting user : akw
mounting group : akw,appserverusr,admin,appserveradm
mounting mode : <unknown>
process ID : <in-kernel>
/dev/disk3 Apple_partition_scheme
/dev/disk3s1 Apple_partition_map
/dev/disk3s2 Apple_HFS /Volumes/awuellner"


You get a listing of useful information for each mounted disk image (I snipped one of the three to save some space). Note the 'writeable' property. If you prefer, you can pass the -plist option to hdiutil info to get the results in plist XML.

_______________________________________________
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: Volume status
      • From: Graff <email@hidden>
References: 
 >Volume status (From: Jakub Formanek <email@hidden>)
 >Re: Volume status (From: "Adam K. Wuellner" <email@hidden>)

  • Prev by Date: Re: Christopher M Drum is out of the office.
  • Next by Date: Re: Volume status
  • Previous by thread: Re: Volume status
  • Next by thread: Re: Volume status
  • Index(es):
    • Date
    • Thread