I create the file with the following code:

dim xdoc as XmlDocument = app.activeXMLDocument
   dim s as string
   Dim file As FolderItem
   Dim fileStream As TextOutputStream

   s = xdoc.Transform( app.activeXSL )

   file = app.ResourcesFolder.child( "temp.html" )
   file.MacCreator = "MOZB"
   fileStream = file.CreateTextFile
   fileStream.Write s
   fileStream.Close
   ShowURL file.URLPath

Yet it still opens in TextEdit.

Gary

On Mar 9, 2007, at 2:20 PM, Kirk Gray wrote:

> What are you using to create the file?
>
> Make sure the file ends in ".htm" or ".html"
>
> Kirk
>
>
> On Mar 9, 2007, at 12:14 PM, Gary Edge wrote:
>
>> Actually, folderitem has a URLPath parameter with the "file://"  
>> added.
>>
>> My problem now is that using Launch or ShowURL opens the file in
>> TextEdit. I guess I need to set the MacCreator and/or MacType to
>> something more appropriate.
>>
>> Any ideas?
>>
>> Gary
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to