Open fails on a Macintosh if the application is already open.
Could this be the case?
-Buzz
At 4:09 PM -0500 9/11/01, Hermann Giovanni Brandi Salinas wrote:
>Hi list!
>
>I'm using DirectOS Xtra to find applications on both platforms. The Xtra is
>working fine locating the applications but when I'm trying to open an HTML
>document on a Macintosh simply doesn't open the document. The route
>recognized by Director is this:
>
>"La Mac:Proyecto:Archivos HTML:index.html"
>
>but the navigators use this sintax:
>
>"file:///La%20Mac/Proyecto/Archivos%20HTML/index.html"
>
>What I've found out is that when I'm locating the files Netscape and
>Explorer doesn't understand the ":" symbols so I've made this handler to
>correct the problem:
>
>on cambiaFormatoDeLigas
> global gRutasArchivosHtml, gRutaArchivosHtm, contador
>
> contador = the number of chars in gRutasArchivosHtml
>
> repeat with i= 1 to contador
> contenedor = char i of gRutasArchivosHTML
> if contenedor = SPACE then
> put "%" into char i to i of gRutasArchivosHTML
> put "2" after char i to i of gRutasArchivosHTML
> put "0" after char i + 1 to i + 1 of gRutasArchivosHTML
> contador = contador + 3
> end if
> if contenedor = ":" then
> put "/" into char i to i of gRutasArchivosHTML
> end if
> end repeat
>end
>
>
>and I'm using the
>
>on mouseUp
>open gRtuasArchivosHTML with aplicacionHTML
>end
>
>but I didn't have any result so I thought that maybe it was missing the
>file:/// so I modified the code to correct the problem:
>
>on cambiaFormatoDeLigas
> global gRutasArchivosHtml, gRutaArchivosHtm, contador
>
> put "f" before char 1 of gRutasArchivosHTML
> put "i" after char 1 of gRutasArchivosHTML
> put "l" after char 2 of gRutasArchivosHTML
> put "e" after char 3 of gRutasArchivosHTML
> put "/" after char 4 of gRutasArchivosHTML
> put "/" after char 5 of gRutasArchivosHTML
> put "/" after char 6 of gRutasArchivosHTML
>
> contador = the number of chars in gRutasArchivosHtml
>
> repeat with i=6 to contador
> contenedor = char i of gRutasArchivosHTML
> if contenedor = SPACE then
> put "%" into char i to i of gRutasArchivosHTML
> put "2" after char i to i of gRutasArchivosHTML
> put "0" after char i + 1 to i + 1 of gRutasArchivosHTML
> contador = contador + 3
> end if
> if contenedor = ":" then
> put "/" into char i to i of gRutasArchivosHTML
> end if
> end repeat
>end
>
>but it doesn't work either. Do you know what am I doing wrong?
>
>Thank you in advance!
>
>
>
>Hermann Brandi
>Training & Support Engineer
>
>Ground Zero Software de M�xico, S.A. de C.V.
>
>(. (525) 559-4086
>(. (525) 559-4096
>(. (525) 559-4146
>(. (525) 559-4203
>(. (525) 559-4205
>(. Ext. 111
>7. Ext. 102
>*. [EMAIL PROTECTED]
>:. http://www.groundzerosoftware.com
>
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
>email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
>Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]