realbasic-nug
[Top] [All Lists]

Re: AppleScript on Intel

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: AppleScript on Intel
From: Norman Palardy <npalardy@great-white-software.com>
Date: Sun, 29 Jun 2008 09:23:14 -0600
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <4BDE68C0-FC62-426C-A87F-1978599BE3CD@designersdomain.com>
References: <mailman.1.1214679601.1256.realbasic-nug@lists.realsoftware.com> <4BDE68C0-FC62-426C-A87F-1978599BE3CD@designersdomain.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

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>


<Prev in Thread] Current Thread [Next in Thread>