Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #24474

Re: Executing Python Scripts on Mac using Python Launcher

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 <dthomas86@me.com>
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 <mailman.1522.1340732297.4697.python-list@python.org>
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> <mailman.1494.1340653759.4697.python-list@python.org> <347d6190-1bfc-4117-85ff-4abaa0966710@googlegroups.com> <mailman.1522.1340732297.4697.python-list@python.org>
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 <dthomas86@me.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org, d@davea.name, David Thomas <dthomas86@me.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.1523.1340734197.4697.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-25 11:19 -0700
  Re: Executing Python Scripts on Mac using Python Launcher Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-06-25 12:49 -0700
    Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 10:19 -0700
      Re: Executing Python Scripts on Mac using Python Launcher Dave Angel <d@davea.name> - 2012-06-26 13:37 -0400
        Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 11:09 -0700
        Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 11:09 -0700
        Re: Executing Python Scripts on Mac using Python Launcher Dave Angel <d@davea.name> - 2012-06-26 14:32 -0400
      Re: Executing Python Scripts on Mac using Python Launcher Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-06-26 11:56 -0700
      Re: Executing Python Scripts on Mac using Python Launcher Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-06-26 15:51 -0400
        Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-26 22:12 +0200
          Re: Executing Python Scripts on Mac using Python Launcher Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-06-26 18:35 -0400
          Re: Executing Python Scripts on Mac using Python Launcher Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-06-27 00:13 +0100
    Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 10:19 -0700
  Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 11:11 -0700
    Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-26 21:16 +0200
      Re: Executing Python Scripts on Mac using Python Launcher Dave Angel <d@davea.name> - 2012-06-26 16:41 -0400
        Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-26 23:48 +0200
          Re: Executing Python Scripts on Mac using Python Launcher Dave Angel <d@davea.name> - 2012-06-26 22:38 -0400
          Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-27 10:05 -0700
            Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-27 20:29 +0200
              Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-27 13:45 -0700
                Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-27 23:33 +0200

csiph-web