By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,100 Members | 2,846 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,100 IT Pros & Developers. It's quick & easy.

editing scripts on a mac

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.