Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I run Tcl/Tk scripts by double-clicking on Windows/Mac?

0
0 Posted

How do I run Tcl/Tk scripts by double-clicking on Windows/Mac?

0
0

For Windows95/NT, the installation should associate .tcl to launch wish. However, if this is not done properly, you can do it yourself by going to Explorer->View->Options->File Types and creating a file type to associate to .tcl that has the open action as “C:\Program Files\Tcl\bin\wish83.exe” “%1” %* (or whereever you chose to have wish installed). You can optionally create an Edit action as well. Don’t choose notepad as that doesn’t understand Unix text files (which just use a line feed for the end of a line, as opposed to carriage return and line feed on Windows and just carriage return on the Mac. I recommend finding a copy of emacs, but write will do. As for the Mac, it’s a little more complicated. Jim Ingham tells us: There are two things here. One is using scripts in TEXT resources. The other is double-clickable apps.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123