realbasic-nug
[Top] [All Lists]

Re: RB2007 r5 Open File Dialog Box Crash

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: RB2007 r5 Open File Dialog Box Crash
From: Sven E Olsson <lists at seedit dot info>
Date: Sun, 30 Dec 2007 00:55:11 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <mailman dot 8293 dot 1198657711 dot 259 dot realbasic-nug at lists dot realsoftware dot com> <A001C05D-1F8F-4136-9513-6CBDF7DFC504 at mac dot com> <62EA821D-13D2-4BAB-975C-5EF111B3BFFA at seedit dot info>
Perhaps this could work? I have tested it about 500 times, no crash  
( yet ), but I want the returned string as a POSIX string, if it is  
possible in Apple Script? It is now returning an absolute path ....

The Apple Script:
set theFile to (choose file with prompt "Select a file to read:" of  
type {"TEXT"})
return theFile


The RB Code:
   dim f as folderitem
   dim s as string = GetFileFromDialog // THE APPLE SCRIPT

   if len(s) > 0 then
     f = GetFolderItem(s,0)
     if f <> nil and f.exists then
       // handle the folderitem
     else
       // Error?
     end if
   else
     ' no file selected
   end if



>
> On 2007-12-26, at 13:38, Sam Rowlands wrote:
>
>> Hi Sven,
>> I have had the same problem since 10.4.10 and 2007 r3, it only  
>> happens
>> on one window. I have tried everything I can think of, I have never
>> found anything to help. I tried re-building that window from scratch,
>> but the problem still occurs.
>>
>> I logged the bug in the feedback database, RS have verified it, but
>> haven't fixed it and it still causes problems.
>>
>> http://support.realsoftware.com/feedback/viewreport.php?reportid=jykxfbew
>>
>> Funny enough I had a report from a customer with it occurring in a
>> different window under 10.5.1...
>>
>>



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