Re: Expanding Python as a macro language

2005-10-30 Thread has
Alex Martelli wrote: > Don't neglect MacOSX -- it's quite secure, there are many open and free > applications, AND it has a decent architecture for the kind of tasks you > want to do (mostly intended for Apple's own Applescript language, but > all the interfaces are o

Re: HTML generation vs PSP vs Templating Engines

2005-11-18 Thread has
[EMAIL PROTECTED] wrote: > Could someone that has used all the different ways mentioned above for > dynamic HTML > content, suggest what the pros and cons of the different methods are? Not used them all - as you say, there's a plethora of options - but to give you a general idea of

Re: HTML generation vs PSP vs Templating Engines

2005-11-19 Thread has
[EMAIL PROTECTED] wrote: > I dislike embedding code or html in each other, apart from the > 'impurity' of mixing code and user interface it makes them inseparable. > > Using templates means that the code can work with different templates, > and this should be seamless, it also means that different

Re: HAVE YOU HEARD THE GOOD NEWS!

2005-01-25 Thread has
[EMAIL PROTECTED] wrote: > Good News! What! Guido's just announced Python 3000? Woo-HoOh. F**t. -- TROLLS 13.12: 'And lo, did the Lord Gawd Almighty command: "Go ye forth and Spam all the Seven Thousand and Seventy-seven Groups of Usenet. For truly I am a Beneficent Gawd, and shall surely

Re: Spreadsheet with Python scripting and database interface?

2005-07-29 Thread has
Wolfgang Keller wrote: > Excel: I know of a module that allows to script Excel in Python from > outside (COM scripting on Windows and Applescript on MacOS are know as > well), but I don't know of any possibility to do Python scripting with > Excel itself? For scripting Mac applications with Pytho

Re: A great Alan Kay quote

2005-02-09 Thread has
Grant Edwards wrote: > In an interview at http://acmqueue.com/modules.php?name=Content&pa=showpage&pid=273 > Alan Kay said something I really liked, and I think it applies > equally well to Python as well as the languages mentioned: > >I characterized one way of looking at languages in this >

[ann] Appscript Installer 1.0

2005-02-16 Thread has
e any questions or comments, please don't hesitate to get in touch. We're still working to polish appscript and finish its documentation, so all feedback is greatly appreciated. Enjoy! has -- http://mail.python.org/mailman/listinfo/python-list

Re: recommended way of generating HTML from Python

2005-02-20 Thread has
ck it up and run with it, or just use it as-is, they're more than welcome to. HTH has -- http://mail.python.org/mailman/listinfo/python-list

Re: recommended way of generating HTML from Python

2005-02-21 Thread has
mend to my students). > > Why not teach your students to use a template system? Agreed. Don't use HTML generation simply for the sake of it. While it has its niche, for most tasks templating is more appropriate. There aren't any 'blessed' solutions, so just pick w

Re: How to launch pdf viewer on Mac?

2005-03-11 Thread has
Paul McNett wrote: > On Windows, os.startfile() does what I want: > > os.startfile("myDocument.pdf") > > But on Mac, what do I do? os.system("open myDocument.pdf") HTH has -- http://mail.python.org/mailman/listinfo/python-list

Re: RPC with Python - Comparison?

2004-12-06 Thread has
Wolfgang Keller wrote: > Candidates could be: > > - Pyro > - Twisted.spread > - OSE (XML-RPC) > - ICE > - ...others? MacPython also supports Apple events (high-level bridge: ) HTH -- http://mail.python.org/mailman/listinfo/python-lis

Re: RPC with Python - Comparison?

2004-12-06 Thread has
Wolfgang Keller wrote: > > MacPython also supports Apple events > > I know, but I was thinking of OS-independent RPC protocols. :-) Pity, you're missing some good stuff... :/ -- http://mail.python.org/mailman/listinfo/python-list

Re: RPC with Python - Comparison?

2004-12-07 Thread has
Wolfgang Keller wrote: > Am 6 Dec 2004 16:00:35 -0800 schrieb has: > > > Wolfgang Keller wrote: > > > >>> MacPython also supports Apple events > >> > >> I know, but I was thinking of OS-independent RPC protocols. :-) > > Pity, you're mis

Re: RPC with Python - Comparison?

2004-12-07 Thread has
Wolfgang Keller wrote: > Am 6 Dec 2004 16:00:35 -0800 schrieb has: > > > Wolfgang Keller wrote: > > > >>> MacPython also supports Apple events > >> > >> I know, but I was thinking of OS-independent RPC protocols. :-) > > Pity, you're mis

Re: Cool object trick

2004-12-17 Thread has
ouple times for this particular reason and it definitely has its niche; though I'm not sure it's sufficiently common or useful to justify its inclusion it in the standard library, and it's trivial to whip up as-and-when it's needed. BTW & FWIW, I think the usual name for th

Re: Funny story about python

2004-12-20 Thread has
[EMAIL PROTECTED] wrote: > eScrew > Welcome to eScrew! > > eScrew is eScrew and this is eScrew story. [snip massive waste of bytes] Not sure which is less Turing-complete: eScrew, or eScrew's author... -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny story about python

2004-12-20 Thread has
has wrote: > Not sure which is less Turing-complete: eScrew, or eScrew's author... Oops, I meant 'AI-complete'. -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny story about python

2004-12-20 Thread has
has wrote: > Not sure which is less Turing-complete: eScrew, or eScrew's author... Oops, I meant 'AI-complete'. -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny story about python

2004-12-20 Thread has
has wrote: > Not sure which is less Turing-complete: eScrew, or eScrew's author... Oops, I meant 'AI-complete'. -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny story about python

2004-12-20 Thread has
has wrote: > Not sure which is less Turing-complete: eScrew, or eScrew's author... Oops, I meant 'AI-complete'. -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny story about python

2004-12-20 Thread has
has wrote: > Not sure which is less Turing-complete: eScrew, or eScrew's author... Oops, I meant 'AI-complete'. -- http://mail.python.org/mailman/listinfo/python-list

Re: Funny story about python

2004-12-20 Thread has
has wrote: > > > Not sure which is less Turing-complete: eScrew, or eScrew's author... > > Oops, I meant 'AI-complete'. On second thoughts, 'Turing-complete' works too. -- http://mail.python.org/mailman/listinfo/python-list

Re: (Mac-specific) AppScript bug

2004-12-23 Thread has
of XCode's script interface. You > would imagine that every such part would have either a plural name or a > singular name, but in this case somehow the FourCC '' has ended up > in self._elements and it has neither. Any idea how that might arise? Sounds like a bug in

Re: BASIC vs Python

2004-12-24 Thread has
Andrew Dalke wrote: > /F > > import random, winsound > > Now if it only worked for my mac ... This might help: http://www.stanford.edu/~andyszy/pyper/ -- http://mail.python.org/mailman/listinfo/python-list

Re: THE GREATEST NEWS EVER ! °º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°` (newsgroup-post 127)

2005-04-09 Thread has
No, the greatest news ever would be that Usenet spammers are being riveted to trees. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python licence again

2005-04-23 Thread has
John J. Lee wrote: > Yes. ISTR that licence is a British English spelling, though my > British brain has been thoroughly contaminated by US spellings and > usage by now. Oh, it only gets worse: a couple years on the illiterate intarweb and even basics like "its" and &q

Re: MVC programming with python (newbie) - please help

2006-01-08 Thread has
ore be a subsidiary copy of that primary Model data. But if the Model's state changes, the View's copy of that state will no longer be accurate and needs to be refreshed. But how? The MVC pattern prevents the Model pushing a fresh copy of that information into the View layer. Heck, it do

Re: MVC programming with python (newbie) - please help

2006-01-09 Thread has
ore be a subsidiary copy of that primary Model data. But if the Model's state changes, the View's copy of that state will no longer be accurate and needs to be refreshed. But how? The MVC pattern prevents the Model pushing a fresh copy of that information into the View layer. Heck, it do

Re: MVC programming with python (newbie) - please help

2006-01-09 Thread has
ore be a subsidiary copy of that primary Model data. But if the Model's state changes, the View's copy of that state will no longer be accurate and needs to be refreshed. But how? The MVC pattern prevents the Model pushing a fresh copy of that information into the View layer. Heck, it do

Re: MVC in wxPython HELP!

2006-01-11 Thread has
If folk wish to post that spiel anywhere else, be my guest. Public domain and all that. has -- http://mail.python.org/mailman/listinfo/python-list

Re: Clicking at a certain x,y position in python? (Mac OSX)

2006-01-19 Thread has
Nainto wrote: > I have been searching and searching and cannot find a way to click at a > certain position in python. What for? There's a few ways it might be done, but what's best depends on what you're trying to achieve. -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com.client & OS X

2006-08-30 Thread has
> I'd like to know if it is possible to call the win32com.client > component using Python on MAC OS X (or maybe Linux) and, if so, how? OS X doesn't really do COM; it's mostly Apple events at the desktop level. See for a Python-AE bridge. If you want more detaile

Re: was python implemented as a object oriented langage at the beginning ?

2006-10-03 Thread has
MonkeeSage wrote: > [...] just because a language doesn't implement OO in the > exact same way as another doesn't mean it isn't OO -- it just means > it's a different language. I've a suspicion that folk who aren't familiar with the Python object system automatically assume the phrase 'Python type

Re: Is there a way to push data into Ical from Python ?

2006-12-18 Thread has
t-in application scripting support (aetools+gensuitemodule) has become increasingly broken on OS X and should be avoided. Third-party support has been continually improving over the last few years, however, and these days is pretty much on-par with AppleScript in terms of functionality. See <http:

Re: templates

2006-01-31 Thread has
Christoph Zwerschke wrote: > thakadu schrieb: > > I have used PyMeld (http://www.entrian.com/PyMeld/) which is one of > > very few that gives a 100% separation of code and presentation, in fact > > PyMeld is not strictly speaking a template system at all. > > Yes, it is more like XIST that I menti

Re: templates

2006-01-31 Thread has
thakadu wrote: > I did not try PyMeldLite because the HTML I am using is exactlty that: > HTML and not XHTML. FWIW, HTMLTemplate is pretty lax and not restricted to XHTML. The only XML-ish requirement is that elements need to be properly closed if they're to be used as template nodes, e.g. ... and

Re: Problem combining python code and html

2005-05-12 Thread has
Hansan wrote: > And is there a nother way to combine python code and html templates? There's a decent list of Python templating engines at: http://www.python.org/moin/WebProgramming Look about a third of the way down down under "Variable Insertion-Replacement Templating Applications (Pre-proces

Re: scripting browsers from Python

2005-06-01 Thread has
; Windows, IE can be automated via COM On OS X you can use appscript <http://freespace.virgin.net/hamish.sanderson/appscript.html>, either directly via the application's scripting interface if it has one or indirectly by manipulating its GUI via GUI Scripting. HTH -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get name of function from within function?

2005-06-03 Thread has
Christopher J. Bottaro wrote: > Basically I want to wrap every function in try/except automatically. Simplest way to do that would be something like: def wrapFunction(func): def wrapper(*args, **kargs): try: return func(*args, **kargs) except Exception, e:

Re: xlrd question

2007-08-05 Thread has
about Excel, is there any other program (for Python) that > can edit Excel files? You can script Excel directly from Python via appscript which talks to scriptable Mac apps via the same API as AppleScript: http://appscript.sourceforge.net I don't do any Excel scripting myself, but Matt Neub

Re: xlrd question

2007-08-06 Thread has
ork/ > Versions/2.3/lib/python2.3/site-packages') No, /System.../python2.3/site-packages is a symlink to /Library/Python/ 2.3/site-packages set up by Apple. DistUtils makes no modification to anything under /System. HTH has -- http://appscript.sourceforge.net http://rb-appscript.rub

Re: Removing Python 2.4.4 on OSX

2007-03-25 Thread has
On 24 Mar, 18:55, "7stud" <[EMAIL PROTECTED]> wrote: > I don't know if there is a framework install for 2.5. http://www.python.org/ftp/python/2.5/python-2.5-macosx.dmg has -- http://appscript.sourceforge.net http://rb-appscript.rubyforge.org http://appscript.sourceforge

Re: Removing Python 2.4.4 on OSX

2007-03-25 Thread has
On 25 Mar, 06:11, "7stud" <[EMAIL PROTECTED]> wrote: > There it is. I notice there is a directory: /Python.framework/ > Versions/2.3/Mac/Tools/IDE > which has a bunch of files in it. Do Macs have some kind of pre- > installed Python IDE? There's no read me

Re: Removing Python 2.4.4 on OSX

2007-03-25 Thread has
te happily, and removing them is more hassle than it's worth. Just install the official framework build from python.org (http:// www.python.org/ftp/python/2.5/python-2.5-macosx.dmg), which should also update your shell profiles as necessary. HTH has -- http://appscript.sourceforge.net h

Re: Python module for making Quicktime or mpeg movies from images

2007-10-13 Thread has
PIs are notoriously complex, and I've no idea of the quality/reliability of the Carbon.Qt wrapper (most of Python's Carbon wrappers haven't been fully maintained since OS9 days). HTH has -- http://appscript.sourceforge.net http://rb-appscript.rubyforge.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on imac

2007-10-15 Thread has
main forum for Python-on-Mac discussions: http://mail.python.org/mailman/listinfo/pythonmac-sig HTH has -- http://appscript.sourceforge.net http://rb-appscript.rubyforge.org -- http://mail.python.org/mailman/listinfo/python-list

Re: py2app help

2007-10-15 Thread has
5, 'no such volume') > 2007-10-15 21:29:08.896 runme[8217] runme Error > 2007-10-15 21:29:08.898 runme[8217] runme Error > An unexpected error has occurred during execution of the main script > Error: (-35, 'no such volume') > > I made it with py2app and I am r

Re: Python module for making Quicktime or mpeg movies from images

2007-10-15 Thread has
directly. import QTKit will import the PyObjC wrapper for the QTKit framework. See PyObjC's documentation for general usage information Apple's Cocoa documentation for further information on QTKit itself, e.g.: http://developer.apple.com/quicktime/qtkit.html HTH has -- http://appscript.sourceforge.net http://rb-appscript.rubyforge.org -- http://mail.python.org/mailman/listinfo/python-list

[ann] Appscript Installer 1.5 released

2007-01-19 Thread has
scripting support, making Python a serious alternative to AppleScript for automating your Mac. This release contains several significant API changes, along with various bugfixes and other internal improvements, and is recommended for all users. In addition, the bundled osadict command line tool has been

questions on dynamically binding the Python interpreter

2007-02-28 Thread has
ort? Should I take out house insurance, move well clear of inhabited areas, etc? Anywhere I can get more information on the techniques and pitfalls involved? (The Python documentation is terribly thin on this stuff.) Many thanks, and apologies for length, has -- http://mail.python.org/mailman/listinfo/python-list

Re: python vs pythonw

2007-11-30 Thread has
ith the WindowManager library, so it can do > GUI operations; python can't. True for Python 2.3.x and earlier. This limitation went away in 2.4, however, and pythonw is now kept around solely for compatibility with older scripts that still refer to it. HTH has -- http://appscript.s

Re: How to detect if a image file has icc profile embeded?

2007-12-15 Thread has
On 15 Dec, 02:40, hi and hello <[EMAIL PROTECTED]> wrote: > thx. What OS? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to detect if a image file has icc profile embeded?

2007-12-20 Thread has
On 20 Dec, 12:09, hi and hello <[EMAIL PROTECTED]> wrote: > On Dec 15, 7:19 pm, has <[EMAIL PROTECTED]> wrote: > > > On 15 Dec, 02:40, hi and hello <[EMAIL PROTECTED]> wrote: > > > > thx. > > > What OS? > > windows xp and linux Not my area

Re: Non-web-based templating system

2006-04-28 Thread has
bruno at modulix wrote: > Else you may want to look at: > - http://www.python.org/doc/2.4.2/whatsnew/node5.html > - empy : http://www.alcyone.com/pyos/empy/ > - cheetah : http://www.cheetahtemplate.org/ Also texttemplate (one of mine): http://freespace.virgin.net/hamish.sanderson/texttemplate.ht

Re: Getting started with OS X Leopard

2008-03-15 Thread has
ng folder sizes) print folderref.size.get() # open selected items in TextEdit selecteditems = finder.selection.get() finder.open(selecteditems, using=app.application_files.ID('com.apple.textedit')) HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://a

Re: Calling Mac programs from Python instead of from AppleScript

2008-03-20 Thread has
On 19 Mar, 20:10, Kevin Walzer <[EMAIL PROTECTED]> wrote: > Take a look at appscript: > > http://appscript.sourceforge.net/ Also, once appscript is installed, don't forget to import it before use: from appscript import * app('Maya').execute('sphere'

Re: English-like Python

2009-01-16 Thread has
y what makes it tick, e.g. x.foo_bar is a property name, :foo_bar is a constant, foo_bar() is a command, foo(bar) is a command name followed by a variable name, and so on. The upshot of this is that AppleScript has a lower barrier to entry but higher cost of use compared to other languages. It&#x

[ann] Python appscript 0.19.0 (beta 1) released

2008-11-27 Thread has
Announcing the first beta release of appscript for Python 2.x, a user- friendly Apple event bridge that allows you to control AppleScriptable applications using ordinary Python scripts. Py-appscript 0.19.0 adds Python 2.6 compatibility and 64-bit support, and cleans up the codebase and documentati

Re: Number of Python 3.x packages at the PyPI

2008-12-07 Thread has
On 7 Dec, 09:20, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Are there any special arrangements necessary for PyPI packages which > > have both a Python 2.x version and a Python 3.x version? > > So far, no such need has

Re: Number of Python 3.x packages at the PyPI

2008-12-08 Thread has
ine them into a single archive, I'm guessing that 'easy_install appscript' won't know how to read that custom archive when building and installing from source. (Which also raises a further question: if I do eventually manage to upload both 2.x and 3.x versions under the same PyPI

Re: Shutdown Mac OSX computer using python

2008-12-08 Thread has
g about the Mac desktop and will unceremoniously kill off all your GUI processes without going through their normal quit procedures.) HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net -- http://mail.python.org/mailman/listinfo/python-list

Re: push-style templating - an xml-like way to process xhtml

2008-11-03 Thread has
re useful distinction to make is between templating systems that combine appearance and control, and those that keep them separate, as this has significant implications when considering which type of templating system to choose, e.g.: - how complex the interface is, e.g. Cheetah's inte

Re: push-style templating - an xml-like way to process xhtml

2008-11-03 Thread has
On 3 Nov 2008, at 18:18, Glenn Linderman wrote: > On approximately 11/3/2008 12:20 AM, came the following characters > from the keyboard of has: >> On 2 Nov, 14:06, Tino Wildenhain <[EMAIL PROTECTED]> wrote: >> >>> "$attr.title$ >>> $if(attr.ac

Re: How do web templates separate content and logic?

2008-06-30 Thread has
traction, but once you get your head around the overall concept they're quite simple to use since you don't have to learn a separate mini-language, write Python code in an HTML editor, or anything like that. HTH has -- http://mail.python.org/mailman/listinfo/python-list

Re: IM status with appscript

2008-04-02 Thread has
also use ASDictionary (http://appscript.sourceforge.net/ tools.html) to export application dictionaries in appscript format. As an added bonus, installing ASDictionary allows you to use appscript's built-in help method to explore application dictionaries and object models from the interactive pyt

Re: How to record audio from Python on Mac?

2008-09-09 Thread has
C code if you search around a bit and then convert that over to Python yourself. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Folder Actions on Mac OSX Leopard?

2008-09-25 Thread has
7;s design (specifically the inability of an in-process Python interpreter to sandbox unrelated scripts so that they can't interfere with each others' modules, file handles, etc). However, it's reasonably functional and should be usable for FAs with a little care. HTH has --

Re: Python Evangelism

2006-03-09 Thread has
Steve Holden wrote: > I've been thinking (and blogging) about python evangelism since PyCon, > as a result of which I created a squidoo lens: > > Any suggestions for improvement? Something that seems to be ignored in general Python evangelism is its support for major platform-specific technologie

download for official Python logo artwork?

2006-04-08 Thread has
Anyone know where I can find source artwork, preferably vector-based, for python.org's new 'ying-yang' snake icon? I think it's hiding. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: download for official Python logo artwork?

2006-04-08 Thread has
That'll do nicely. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Kross - Start of a Unified Scripting Approach

2006-04-14 Thread has
Jerry wrote: > Kind of like AppleScript then? Same fundamental goal, i.e. language-independent application scripting. They seem to have a similar sort of approach to decoupling a scripting language from its host application (Kross::API::ScriptManager vs. the Open Scripting Architecture API) but a

Re: Kross - Start of a Unified Scripting Approach

2006-04-14 Thread has
Cool. I hope I got the bits about Kross right; I only just found out about it from seeing your post so haven't been long learning about it (I'm a sucker for this stuff). Hopefully some nice expert can correct anything I may've got wrong. :) BTW, if you're curious about how Python hooks into this s