fileType & creator

-= JB =- sundown at pacifier.com
Thu Dec 4 21:49:28 EST 2008


Thanks for the info and taking the time to reply.  That is what I  
like about
the Rev list, so many nice people willing to help out.

-=>JB<=-


On Dec 4, 2008, at 3:38 PM, Scott Morrow wrote:

> So close!
> when you open the file it is created. So set the fileType before  
> opening (creating) the file.
>
> -- Dictionary: <snip> The fileType property is used to set the file  
> type and creator of files created by the open file command and of  
> files created</snip>
>
> -Scott Morrow
> Elementary Software
>
> On Dec 4, 2008, at 1:15 PM, -= JB =- wrote:
>
>> I am creating a new file using the open file command.  I set the  
>> fileType after it
>> is opened then I write to the file and close it as seen in the  
>> code below.  I have
>> tried to use set the fileType and set the stackFileType as shown  
>> below but they
>> don't change the creator and file type.  Does anyone know the  
>> proper way to
>> write it so I can set the file type and creator when I create a  
>> new file?
>>
>>    open file filePath for binary update
>>    set the  filetype to "RevoRSTK"
>>    --set the  stackfiletype to "RevoRSTK"
>>    put fld id 1009 into theFile
>>    write theFile to file filePath
>>    close file filePath
>>
>> thanks,
>> -=>JB<=-
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list