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