472,354 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

editing scripts on a mac

I am teaching someone Python by email, and part of our conversation
recently ran as follows:

himHow do I save a script and run it?

me Do you have a text editor? If so, edit the script in that, then
save it
me in your home directory (the place you can see when you open the
terminal

himI do not have a text editor, but here are the answers to
himquestions 1-5.

Now, frankly, I don't think this answer is correct, since I know OS X is
a UNIX derivative, but I am loathe to involve a programming noob with vi
or something similar. So I wondered if one of the c.l.py mac users could
give brief instructions for firing up a visual text editor of some sort
and saving a file somewhere it can easily be accessed from a terminal
window (which I presume starts up in his home directory).

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Recent Ramblings http://holdenweb.blogspot.com

Apr 27 '07 #1
2 1159
In article <ma***************************************@python. org>,
Steve Holden <st***@holdenweb.comwrote:
>
Now, frankly, I don't think this answer is correct, since I know OS X is
a UNIX derivative, but I am loathe to involve a programming noob with vi
or something similar. So I wondered if one of the c.l.py mac users could
give brief instructions for firing up a visual text editor of some sort
and saving a file somewhere it can easily be accessed from a terminal
window (which I presume starts up in his home directory).
What's wrong with IDLE?
--
Aahz (aa**@pythoncraft.com) <* http://www.pythoncraft.com/

"...string iteration isn't about treating strings as sequences of strings,
it's about treating strings as sequences of characters. The fact that
characters are also strings is the reason we have problems, but characters
are strings for other good reasons." --Aahz
Apr 27 '07 #2
On Apr 27, 12:08 pm, Steve Holden <s...@holdenweb.comwrote:
Now, frankly, I don't think this answer is correct, since I know OS X is
a UNIX derivative, but I am loathe to involve a programming noob with vi
or something similar. So I wondered if one of the c.l.py mac users could
give brief instructions for firing up a visual text editor of some sort
and saving a file somewhere it can easily be accessed from a terminal
window (which I presume starts up in his home directory).
I strongly recommend TextMate (http://www.macromates.com/). It's not
free, but it rocks.

There's also TextWrangler (http://www.barebones.com/products/
textwrangler/), a free (as in beer) lite version of BBEdit, the most
venerable Mac text editor. I used to use BBEdit; it's quite excellent,
though TextMate feels a bit more modern and OS X-like.

Apr 29 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dan Weeb | last post by:
Hi All, I have struggled through this far with help from many of you so thanks. I am stuck again. I am really new to this so don't be harsh :-) There are a few problems. You can run the script...
4
by: webhigh | last post by:
Iım not sure if this a PHP question or an MySQL question but here it goes. I have a repeat region of a table called userid What Iım trying to accomplish is being able to edit the record and...
0
by: James-D-Bloom | last post by:
I have developed a fully open source & free application that can alter (or simulate the affect of altering) loaded Java classes at runtime. This means you can change a program at runtime without...
26
by: Miguel Orrego | last post by:
Hi, Can anybody recommend a good freeware WYSIWYG editor with code view as well? Thanks.
1
by: Ux | last post by:
ServerSide: PHP+MySql ClientSide: JS (IE5+, Moz1.7) I need to edit an HTML table that contains records from a table in MySQL. A MsAccess datagrid or similar behaviour should be the best, but...
6
by: Jon Paal | last post by:
an excellent working solution for scrolling tables appears at this link http://www.litotes.demon.co.uk/example_scripts/tableScroll.html author has no contact page, but I have a question about...
21
by: webmaster | last post by:
Hi all, Without opening a HUGE can of worms, I just wanted to get some ideas of what others are using professionally to create websites commercially. For years I had used Homesite and never...
7
by: Rainy | last post by:
Hi, did anyone make a good set of scripts for editing Python in Vim? I know there is one on vim.org but it isn't very advanced. thx..
9
by: pvsundarram | last post by:
hey, i am trying to cancel the keydown event for certain keycodes( for eg:- enter key ).But the cancelling of this event is not happening in firefox. Is there any way to cancel the event in the...
3
by: michelqa | last post by:
Hi, I need to support a programming language in my c# application. After a lot of search in google I'm still trying to figure out where to start on this. Any ideas? Interresting links?, what...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made but the http to https rule only works for...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.