Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!204.52.135.9.MISMATCH!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.04; 'messages.': 0.05; 'subject:Python': 0.05; 'happens.': 0.09; 'skip:/ 10': 0.09; 'to:addr:comp.lang.python': 0.09; 'python': 0.10; 'cc:addr:python-list': 0.10; 'from:addr:me.com': 0.16; 'quoted': 0.16; 'subject:using': 0.16; '(the': 0.17; 'wrote:': 0.17; 'typing': 0.18; '(or': 0.19; 'earlier': 0.22; 'header:In- Reply-To:1': 0.23; 'error.': 0.24; "i've": 0.24; 'installed': 0.25; 'header:User-Agent:1': 0.26; 'tried': 0.26; 'cc:2**2': 0.27; 'normally': 0.27; 'window': 0.27; 'script': 0.28; "doesn't": 0.28; 'cc:addr:python.org': 0.29; 'assuming': 0.29; 'like:': 0.33; 'file': 0.34; 'open': 0.34; 'received:google.com': 0.34; 'thanks': 0.35; 'python.org': 0.35; 'received:209.85': 0.35; 'something': 0.36; 'text': 0.36; 'but': 0.36; 'received:209.85.216': 0.37; 'whatever': 0.37; 'subject:: ': 0.37; 'received:209': 0.37; 'pm,': 0.38; 'reply': 0.63; 'within': 0.64; '26,': 0.66; 'angel': 0.93 Newsgroups: comp.lang.python Date: Tue, 26 Jun 2012 11:09:54 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.96.195.171; posting-account=1lcE3woAAAB8YdS7bHcWjAZeCDFa_kp3 References: <8b352333-23b5-4cfb-843d-29ffe1ef0905@googlegroups.com> <347d6190-1bfc-4117-85ff-4abaa0966710@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 81.96.195.171 MIME-Version: 1.0 Subject: Re: Executing Python Scripts on Mac using Python Launcher From: David Thomas To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org, d@davea.name, David Thomas X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 187 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1340734197 news.xs4all.nl 6938 [2001:888:2000:d::a6]:45001 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24474 On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA Hi On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states that I have 2.7.3. > > How can I execute the script from Terminal? I've tried typing python into the window and then dragging the file to terminal but I get a syntax error. Sorry I am new to Python and just want to know how I can open such a file using 10.7. > > > > Thanks > > Assuming python is on your PATH within that terminal, you'd normally do > something like: > > cd /fullpathtoscript (the location of your script) > python myscript.py (or whatever your script is called) > > > If that doesn't work for you, please be specific about what happens. > Best way to do that is to copy/paste the text (showing in terminal) > into your reply here. > > Also, please don't top-post. Put your new text AFTER the part you've > quoted from earlier messages. > > -- > > DaveA