Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Active state 8-4-15

5 views
Skip to first unread message

Niv

unread,
Aug 9, 2007, 10:27:15 AM8/9/07
to
Just replaced version 8-4-14 with 8-4-15 and it seems that I have to
rename my scripts that had .tk extensions that were associates with
wish84 have to be changed to .tcl extensions and t8-4-15 knows whether
to open as tclshell or wish shell.

Can anyone confirm please?

TIA, Niv.

suchenwi

unread,
Aug 9, 2007, 11:11:11 AM8/9/07
to
>From Tcl 8.4, there is mostly no longer the need for a dedicated wish.
All scripts are evaluated by tclsh, and if one needs Tk, just add the
line

package require Tk

early in the script.

Jeff Hobbs

unread,
Aug 9, 2007, 8:17:53 PM8/9/07
to Niv

ActiveTcl never made associations for .tk, so those must have been made
by yourself or another program. It makes associations for .tcl (and
optionally .tbc) to wish, as that is the most common expectation. You
can change this in the registry.

Jeff

Darren New

unread,
Aug 9, 2007, 9:17:37 PM8/9/07
to
Jeff Hobbs wrote:
> It makes associations for .tcl (and
> optionally .tbc) to wish, as that is the most common expectation.

I think it should, by default, add for .tsh to run tclsh, too. But maybe
that's because I write way more tcl scripts than wish scripts. :-)

--
Darren New / San Diego, CA, USA (PST)
I bet exercise equipment would be a lot more
expensive if we had evolved from starfish.

Jeff Hobbs

unread,
Aug 10, 2007, 2:18:05 PM8/10/07
to Darren New
Darren New wrote:
> Jeff Hobbs wrote:
>> It makes associations for .tcl (and optionally .tbc) to wish, as that
>> is the most common expectation.
>
> I think it should, by default, add for .tsh to run tclsh, too. But maybe
> that's because I write way more tcl scripts than wish scripts. :-)

If people would like a tclsh-specific extension, please let us know. It
would have been nice if .tcl and .tk had stuck as separate extensions
earlier, but I otherwise don't want to co-opt .tcl for tclsh. While
using 'package require Tk' would work for most people, it has a slightly
different effect on Windows and OS X where they are tied to a console.

Jeff

Niv

unread,
Sep 6, 2007, 4:27:42 AM9/6/07
to

I still seem to be having some minor problems, now that I'm re-
visiting some old scripts.
I have sme tcl scripts for manipulating data files, these work fine
now that the windows .tcl association is made to tclsh.

However, I also have some scripts that I want to open directly with
wish, but as they have .tcl extensions, they open a tclshell which
then opens teh wish window; killing the tclshell obviously kills the
wish as well.

I did have the wish files with a tk extension and a windows
association to wish. Should I return to that scenario to prevent the
tclshell opening before the wish window?

0 new messages