BLOBs to files - works great but...

Klaus Major klaus at major.on-rev.com
Wed Jan 13 09:38:05 EST 2010


Hi Alex,

Am 13.01.2010 um 15:29 schrieb zryip theSlug:

> 2010/1/13 Alex Adams <alex at a2technology.com>:
> 
> Hello Alex,
> 
>> What isn¹t working for me yet is a lack of autonomy of the files restored to
>> a Mac OS X.  The files work just fine, if opened by a program that uses the
>> file type, but the finder always opens them in a text editor.
> 
>> What am I missing?
>> Thanks,
> 
> On Mac OS X try to restore the file with the command: ask file... with type...
> It means that when you store a file in the dataBase, you need to keep
> its type somewhere in the record.

Add this line:
...
set the filetype to ""
...
before you write your file(s) to disk.

This way the Finder will be forced to check the file suffix and to open that file
with the associated app when doubleclicked.

I do this all the time and works fine.


Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com




More information about the use-livecode mailing list