On 29-Jun-08, at 8:20 AM, R Charles Flickinger wrote:
Hello
I have a REALbasic file synchronizer. When a file needs to be
updated, it uses AppleScript to check available disk space before
it copies the updated file.
This synchronizer runs flawless on PowerPC, but chokes on Intel
Macs. When I debugged on Intel, I discovered that the AppleScript
on Intel shows a negative number. Does anyone know whether RB is
changing the result, or if this is an AppleScript issue?
I checked this problem was present in RB 2007R5 also. Is there a
bug report to sign on.? For my file synchronizer, this is a show
stopper, unless I pull the code and stop checking for available
disk space before copying files.
Thanks for listening, and any info or knowledge. I'm not on an
Intel Mac often enough to fix this, but thought it important to get
the word out if anyone has a project that uses AppleScript to get
available disk space.
Yours truly
R Charles Flickinger
FileSync Developer
On OS X you could also use a shell with df -k (or just df)
On my laptop this gives
macbookpro:~ npalardy$ df -k
Filesystem 1K-blocks Used Avail Capacity
Mounted on
/dev/disk0s2 116884912 87383040 29245872 75% /
devfs 100 100 0 100% /dev
fdesc 1 1 0 100% /dev
<volfs> 512 512 0 100% /.vol
automount -nsl [168] 0 0 0 100% /
Network
automount -fstab [186] 0 0 0 100% /
automount/Servers
automount -static [186] 0 0 0 100% /
automount/static
/dev/disk1s6 625093824 173876376 451217448 28% /
Volumes/LaCie Disk
/dev/disk2s2 40920 8840 32080 22% /
Volumes/blahblahblah
Then hunt for the Shell Path of the destination volume in the very
right hand column of the output
Your boot drive will be listed as /
Other drives will be listed under /Volumes (I have a 500Gb Lacie
attached and you see it as /Volumes/LaCie Disk)
Even disk images (/Volumes/blahblahblah) show up
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|