Addressing disk problem
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