• 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: Addressing disk problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Addressing disk problem


  • Subject: Re: Addressing disk problem
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 14 May 2015 15:13:41 +1000

Thanks Phil, but I’ve got the Startup Disk down pat.

What I’m trying to address is an external disk named ‘Jobs’.

On another machine using the same script, ‘Jobs’ is a mounted server.

Regards

Santa


On 14 May 2015, at 3:02 pm, 2551 <email@hidden> wrote:


On 14 May 2015, at 11:47, Brian Christmas <email@hidden> wrote:

’ve spent quite a few hours trying to get the following code, to test for and get the properties of a disk, to work, to no avail.


To get the all properties of a disk:

tell application "Finder"
properties of startup disk
end tell


To get just the disk space in GB:

tell application "Finder"
set free_Gbytes to ((startup disk's free space) / (100000) / 100) / 100
end tell





Best

Phil

DisplayDroid beta (a lightweight script editor and automation tool) is now available for free download. More info on sqwarq.com/displaydroid
OSXClock - big, beautiful alarm clock and timer for your mac. More info on sqwarq.com/osxclock

http://applehelpwriter.com
http://sqwarq.com - apps for OS X & iOS











 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Addressing disk problem (From: Brian Christmas <email@hidden>)

  • Prev by Date: Addressing disk problem
  • Next by Date: Re: Addressing disk problem
  • Previous by thread: Addressing disk problem
  • Next by thread: Re: Addressing disk problem
  • Index(es):
    • Date
    • Thread