• 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 16:45:39 +1000

Thanks Shane

I need to use a variable in place of “Jobs”, as the end user may change the server backup disk.

I built a small app to test my code, and it worked. Turned out to be a stupid mistake on my part. The handler is actually on a separate script object, and I neglected to set the initial variable to ‘as text’. Kicking myself. Sorry everyone.

Regards

Santa


On 14 May 2015, at 3:28 pm, Shane Stanley <email@hidden> wrote:

tell application "Finder"
set theVol to disk "Jobs"
if exists theVol then
set free_bytes to free space of theVol
set serverPrivs to owner privileges of theVol
end if
end tell

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
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:
    • Scriptability of ASObjC Cocoa applications
      • From: Stan Cleveland <email@hidden>
    • Re: Addressing disk problem
      • From: Shane Stanley <email@hidden>
References: 
 >Addressing disk problem (From: Brian Christmas <email@hidden>)
 >Re: Addressing disk problem (From: Shane Stanley <email@hidden>)

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