ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-mac
tcl-mac
Re: [MACTCL] Problem with wish!
by Larry W. Virden other posts by this author
Jun 20 2007 4:47AM messages near this date
Re: [MACTCL] Problem with wish! | [MACTCL] No 64-bit Carbon = Problem for Tk Aqua?
I've no experience on MacOS X, but on most Unix like systems, not
setting permissions results in:
 ksh: ./example1.tcl: cannot execute
Or something similar.

This error indicates that wish wasn't found...


-- 
<URL: http://wiki.tcl.tk/ > 
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.
<URL: mailto:lvirden@[...].com >  <URL: http://www.purl.org/NET/lvirden/
> 
 

-----Original Message-----
From: tcl-mac-bounces@[...].net
[mailto:tcl-mac-bounces@[...].net] On Behalf Of Kevin Walzer
Sent: Wednesday, June 20, 2007 7:44 AM
To: Walter-Michael Landthaler
Cc: tcl-mac@[...].net
Subject: Re: [MACTCL] Problem with wish!

Walter-Michael Landthaler wrote:
>  Hello, my name is Walter and I am a Tcl/Tk beginner.
>  
>  I have a problem with wish for Mac OS X.
>  
>  When I want to start my first Tk-Script with the command "./ 
>  example1.tcl", I got the following message:
>  
>  ./example1.tcl: line 2: button: command not found
>  ./example1.tcl: line 3: pack: command not found
>  
>  ----------------------------------------------------------------------
>  --
>  -----
>  Here is the script example1.tcl:
>  
>  #!/usr/bin/wish
>  button .hello -text Hello -command {puts "Hello world!"} pack .hello
>  
>  ----------------------------------------------------------------------
>  --
>  -----
>  
>  I use Mac OS X Tiger (10.4) and TclTkAquaBI 8.4.10.
>  
>  Can someone help me please!
>  

Sounds like you haven't made the script executable. What happens when
you try "wish example1.tcl"?

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express Download DB2 Express C -
the FREE version of DB2 express and take control of your XML. No limits.
Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Tcl-mac mailing list
tcl-mac@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-mac

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Tcl-mac mailing list
tcl-mac@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-mac
Thread:
Walter-Michael Landthaler
Mark J. Reed
Tim Jones
Mark J. Reed
Larry W. Virden
Kevin Walzer
Larry W. Virden

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved