On 11/8/00 6:00 am, Sivakatirswami <[EMAIL PROTECTED]> wrote:
> I thought our tiny internet portal stack was all "pau" as they say in Hawaii
> (over, finished) but the following script which works on a Mac doesn't work
> on a PC
>
> on mouseUp
> create directory "mcPrefs"
> if fld "tProxyIP" is empty then
> put empty into line 1 of url ("file://mcPrefs/proxyPrefs.txt")
> else
> put "Proxy Settings" &","&fld "tProxyIP" & ":"& fld "tProxyPort" into
> line 1 of url ("file://mcPrefs/proxyPrefs.txt")
> end if
> checkForProxy
> show Button "Enter Proxy"
> hide group "ProxySet"
> end mouseUp
>
>
> on checkForProxy
> set the httpproxy to item 2 of line 1 url
> ("file://mcPrefs/proxyPrefs.txt")
> end checkforProxy
>
> What is happening is that on a Mac if I fill in the proxy and port fields,
> and hit the button on the top it creates a directory called "mcPrefs" and
> this line:
>
> put "Proxy Settings" &","&fld "tProxyIP" & ":"& fld "tProxyPort" \
> into line 1 of url ("file://mcPrefs/proxyPrefs.txt")
>
> will open and write a file and close it, even if the file does not exist to
> start with (the syntax implies a file exists, but it doesn't need to, at
> least on a MAC.)
>
> but, on the PC, it doesn't write a file to disk. It does create a directory,
> but if you check inside the folder there is no "proxyPrefs.txt" file there.
>
> Anyone have a clue? Why would it work on a MAC and not a PC?
Hm - where did the "//" at the start come from? The correct syntax should
be:
put "whatever" into URL ("file:mcPrefs/proxyPrefs.txt")
Regards,
Kevin
Kevin Miller <[EMAIL PROTECTED]> <http://www.runrev.com/>
Runtime Revolution Limited (formerly Cross Worlds Computing).
Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.