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

Addressing disk problem


  • Subject: Addressing disk problem
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 14 May 2015 14:47:39 +1000

G’day scripters

I’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.

Testing in vanilla applescript accepts just about any format, but transferring the code to ASOBjC does not work.

tell application "Finder"
set p to 1
tell application "System Events" to display dialog my serverFolder as text —<“Jobs"
set p to 1.1
if exists disk ((my serverFolder) as alias) then — Fails
set free_bytes to free space of ((my serverFolder) as alias) — Fails-- the number of free bytes left on the disk
set p to 3
set free_Gbytes to (free_bytes / (100000) div 100) / 100

end if

set serverPrivs to owner privileges of ((my serverFolder) as alias) — Fails



Could someone set me on the right track, please


Regards

Santa
 _______________________________________________
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

  • Follow-Ups:
    • Re: Addressing disk problem
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Preference file problem
  • Next by Date: Re: Addressing disk problem
  • Previous by thread: Re: Preference file problem
  • Next by thread: Re: Addressing disk problem
  • Index(es):
    • Date
    • Thread