Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder5.xlned.com!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'messages.': 0.05; 'subject:Python': 0.05; 'cc:addr:googlegroups.com': 0.09; 'happens.': 0.09; 'skip:/ 10': 0.09; 'python': 0.10; 'cc:addr:python-list': 0.10; '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**1': 0.26; '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; 'thanks': 0.35; 'python.org': 0.35; 'something': 0.36; 'text': 0.36; 'but': 0.36; 'whatever': 0.37; 'subject:: ': 0.37; 'pm,': 0.38; 'reply': 0.63; 'within': 0.64; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'received:74.208': 0.72; 'received:74.208.4.194': 0.84 Date: Tue, 26 Jun 2012 13:37:42 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: David Thomas Subject: Re: Executing Python Scripts on Mac using Python Launcher References: <8b352333-23b5-4cfb-843d-29ffe1ef0905@googlegroups.com> <347d6190-1bfc-4117-85ff-4abaa0966710@googlegroups.com> In-Reply-To: <347d6190-1bfc-4117-85ff-4abaa0966710@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:xdmY7mUgWcUuxuAaM6rnLRmFD9XEd68EPZF+dHhWNOg /IT2vm20MR7a9bccYxLPOAFNDqvIj6bdRWkhAHoRFekTZooBkA 8D+tCiY8Z+Z3nzF9+NS/FAvT4UZCnMcDEJduosRQk0LoOs8kFL aLUvpBnDrhGnajTDXdQ1PMMmCkNNUgPB075GxQ4M8T2ytm3318 gynbnMLISrDN/oS/CS6Qw2FyJQ0kUGSdVXZDxYatSS66JkyIyu YMOwFJ2GC6fwkhP6RwbqUE1pOu+bX/9q6rgsdBVgBK6JZ379u9 mYQGl7+fqD/Q0G4jZKBQuxIjGpIVKCnD7A/SICcQRqYYcST+g= = Cc: python-list@python.org, comp.lang.python@googlegroups.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: d@davea.name List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1340732297 news.xs4all.nl 6902 [2001:888:2000:d::a6]:40431 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24473 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