Re: [Pythonmac-SIG] converting Mac 'path' to file path in appscript?

2008-06-20 Thread Daniel Lord
On Jun 19, 2008, at 21:33 PM, Ned Deily wrote: One way: mactypes.File.makewithhfspath(u'wolfe:downloads').path mactypes is a very useful module, it is how I get the selection in the Finder via appscript whether usi

Re: [Pythonmac-SIG] appscript and Firefox

2008-06-18 Thread Daniel Lord
On Jun 18, 2008, at 20:18 PM, Bill Janssen wrote: Thanks, Daniel. It looks impossible from my perspective and knowledge, maybe someone smarter has it figured out. Apparently someone has, from the scrap of Applescript I pointed to before (OK, here it is again: https://bugzilla.mozilla.org/sh

Re: [Pythonmac-SIG] appscript and Firefox

2008-06-18 Thread Daniel Lord
On Jun 18, 2008, at 19:04 PM, Bill Janssen wrote: I'm finally trying to learn appscript, and I thought I'd write a little system monitor that goes around to my various open applications and logs what files/URLs I'm looking at. For Safari, this is easy: print app('Safari').windows.first.curre

Re: [Pythonmac-SIG] Applescript equivalent in appscript

2008-06-08 Thread Daniel Lord
On Jun 7, 2008, at 15:46 PM, Rajanikanth Jammalamadaka wrote: Thanks a lot for the links Jordan. Could you tell me why there is a "u" before some names in appscript for example: menus[u'Apple'] That's the Python code to designate a Unicode string. Daniel __

Re: [Pythonmac-SIG] Applescript equivalent in appscript

2008-06-07 Thread Daniel Lord
On Jun 7, 2008, at 11:48 AM, Rajanikanth Jammalamadaka wrote: Thanks for your reply Laurent. Also, could somebody tell me how to do this: Suppose the application pops up a window while its running and gives me two choices: Ok or Cancel how can I tell it to select the Ok option always? I do

Re: [Pythonmac-SIG] NewBie question: Building GUI for Mac

2008-06-05 Thread Daniel Lord
On Jun 5, 2008, at 23:42 PM, Abhiram Dwivedi wrote: Hello, I want to know if its possible to build a standalone GUI app for Mac using python. Yes it is. I need to build some application and still going through pythong tutorials. It seems Cocoa is the only option, Not true. wxPython, T

Re: [Pythonmac-SIG] Python-Cocoa with XCode 3 - external modules

2008-05-27 Thread Daniel Lord
On May 27, 2008, at 14:01 PM, Orestis Markou wrote: XCode by default will use the system supplied python. I think if you want to use external modules you have to include them directly in your project. Pyobjc-devel users will know more. I sent Steve to the Xcode group for a reason: There

Re: [Pythonmac-SIG] Python-Cocoa with XCode 3 - external modules (Cross posting a reply)

2008-05-27 Thread Daniel Lord
On May 27, 2008, at 14:01 PM, Orestis Markou wrote: Hey Steve, I hope this is the right place to ask such a question: FYI, Bill B replied on the Xcode list with pretty much the same advice I gave for those of you who want to know: -- Forwarded message -- From: Bill Bum

Re: [Pythonmac-SIG] Python-Cocoa with XCode 3 - external modules

2008-05-27 Thread Daniel Lord
On Tuesday, May 27, 2008, at 07:42AM, "Steve Pike" <[EMAIL PROTECTED]> wrote: >Hello all, >I hope this is the right place to ask such a question: >I'm building a Python-Cocoa app in XCode 3, and it all works >wonderfully except that I use the appscript module... And XCode >doesn't include the

Re: [Pythonmac-SIG] Having trouble building Python w/ Tcl/Tk on my new Macbook Pro

2008-02-10 Thread Daniel Lord
Or if you really want to get fancy and check your entire install: find -type f -exec file {} \; | grep "Mach-O object ppc" (I love UNIX ;-) On Feb 9, 2008, at 8:05 PM, [EMAIL PROTECTED] wrote: > Thanks Nicholas & Kevin for the hints about /Library and discovering > the > PPC-ed-ness of f

Re: [Pythonmac-SIG] Pystone numbers for different Macs...

2008-01-22 Thread Daniel Lord
2008, at 5:33 AM, Kent Johnson wrote: > Daniel Lord wrote: >> My point was that, as I understand it, thanks to the GIL--Python >> cannot easily take advantage of multi-cores period even when the >> program uses multiple threads--it it is a limitation of the &g

Re: [Pythonmac-SIG] Pystone numbers for different Macs...

2008-01-20 Thread Daniel Lord
rote: > > On 20-Jan-2008, at 19:23 , Daniel Lord wrote: > >> I ran the test on my 1st Gen Quad Core ( 2 x Quad-core 3.0 GHz, 13GB >> RAM) and was a bit surprised to see little improvement over the Core >> Duo numbers. >> >> 63019.7 pystones/second >>

Re: [Pythonmac-SIG] Pystone numbers for different Macs...

2008-01-20 Thread Daniel Lord
Will do, though I am not expecting great results given what we know now. I'll post the numbers as soon as I can get it done. On Jan 20, 2008, at 11:05 PM, Ronald Oussoren wrote: > > On 20 Jan, 2008, at 19:23, Daniel Lord wrote: > >> I ran the test on my 1st Gen Quad Core ( 2

Re: [Pythonmac-SIG] Pystone numbers for different Macs...

2008-01-20 Thread Daniel Lord
I ran the test on my 1st Gen Quad Core ( 2 x Quad-core 3.0 GHz, 13GB RAM) and was a bit surprised to see little improvement over the Core Duo numbers. 63019.7 pystones/second I am assuming the GIL is limiting threading and therefore I am really running on one or two cores--hence the tang

Re: [Pythonmac-SIG] newbie Mac switcher trying to set up django on Intel MacBook Pro Tiger

2007-12-21 Thread Daniel Lord
rt are others. But this means providing a reasonably rich set of tools that is fully accessible from the stock Python installation for the neophytes and apprentices as much as journeymen. I am with you Jack. Daniel Lord ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Accessing Resource forks

2007-07-30 Thread Daniel Lord
Chris, I know you already asked this and got answers, so I did not at first understand why you asked again. Then I saw the date of the message. I think that in you search for a solution to handling antiquated resource forks, you might have discovered time travel as a side effect. Patent what

Re: [Pythonmac-SIG] Trouble installing Python Imaging Library on Mac OS X

2007-07-23 Thread Daniel Lord
It's been some time since I worked through this for 2.4, but IIRC, one has to modify the PIL make to ensure it finds libjpeg after you have installed it. How I did that I cannot recall just now off the cuff, so when I have time at some point I can try to dig it up. But in the mean time, if you

Re: [Pythonmac-SIG] Accessing Resource forks

2007-07-13 Thread Daniel Lord
On Jul 13, 2007, at 2:55 PM, Christopher Barker wrote: > > How should I be doing this -- the docs are sparse, to say the least! > > By the way, I might as well tell you the real goal, maybe one of you > will have a better idea. > RezDet command line utility perhaps? as in: [15:30:10] [EMAIL PROT

Re: [Pythonmac-SIG] Mac oriented Python book (was: no subject)

2007-07-10 Thread Daniel Lord
p I can get. Victor Merritt From: Daniel Lord <[EMAIL PROTECTED]> Date: 2007/07/10 Tue AM 10:35:36 CDT To: has <[EMAIL PROTECTED]>, Victor Merritt <[EMAIL PROTECTED]> Cc: pythonmac-sig@python.org Subject: Re: [Pythonmac-SIG] Mac oriented Python book (was: no subject) I

Re: [Pythonmac-SIG] Mac oriented Python book (was: no subject)

2007-07-10 Thread Daniel Lord
I am guessing that Victor is either interested in scripting Blender or Modo since those are the only higher-end 3D graphics modeling and rendering packages I know of that support Python scripting. I am ruling out Poser and Shade. The issue with those packages is that they use an embedded int

[Pythonmac-SIG] Fwd: signal from itunes when song changes?

2007-05-09 Thread Daniel Lord
I forgot to copy the list ;-) Begin forwarded message: From: Daniel Lord <[EMAIL PROTECTED]> Date: May 9, 2007 10:30:41 PDT To: julien ricard <[EMAIL PROTECTED]> Subject: Re: [Pythonmac-SIG] signal from itunes when song changes? Growl does it, so there must be a way to regist

Re: [Pythonmac-SIG] StuffIt 10 can corrupt applications packaged with py2app

2007-04-25 Thread Daniel Lord
Shell script, Schmell script...do it in Python: I got this from someone somewhere long ago... import sys, os, os.path import commands if len(sys.argv) == 2: dir = sys.argv[1] print "Creating disk image %s.dmg" % (dir) status, output = commands.getstatusoutput("hdiutil create - v

[Pythonmac-SIG] Interesting use of Python and Django on the Mac

2007-03-29 Thread Daniel Lord
This is the start of a trend we are going to see more and more of: the covergence of Web and Desktop or "Web-top". Dashboard/Konfabulator were the first big step, with Slingshot and Apollo the next big one. Granted this is pre-alpha code, but one can start imagining the possibilities. http:/

Re: [Pythonmac-SIG] [ann] PyOSA 0.1.0, Appscript Installer 1.5.1 released

2007-03-27 Thread Daniel Lord
On Mar 27, 2007, at 9:35, Kevin Walzer wrote: Announcing the first release of PyOSA, a new OSA language component for Python. PyOSA allows you to write Python scripts in Script Editor and attach them to OSA-enabled applications such as Mail (Mail Rules), iTunes (Scripts menu) and System Eve

Re: [Pythonmac-SIG] [ann] PyOSA 0.1.0, Appscript Installer 1.5.1 released

2007-03-27 Thread Daniel Lord
John Gruber couldn't have put it any better: "Holy sh*t!" (http:// daringfireball.net/) The MacPython world became a much friendlier place today. Great work and thank you very much. On Mar 27, 2007, at 2:49, has wrote: Hi all, Announcing the first release of PyOSA, a new OSA language compone

Re: [Pythonmac-SIG] Unicode

2007-03-15 Thread Daniel Lord
Good article link, Thanks. On Mar 14, 2007, at 9:18 PM, Bob Ippolito wrote: > Here's a very recent, well written and pertinent article: > > http://boodebr.org/main/python/all-about-python-and-unicode > > -bob > ___ > Pythonmac-SIG maillist - Pythonmac

Re: [Pythonmac-SIG] How to make an apt except Drag and Drop

2007-03-10 Thread Daniel Lord
Christopher, I found an example in a wiki that works perfectly accepting objects before and after startup. http://wiki.wxpython.org/index.cgi/Optimizing_for_Mac_OS_X Towards the end there is a sample wxPython applications and a setup.py file. Be aware that you need to replace a line in the s

Re: [Pythonmac-SIG] PyOSA preview

2007-03-02 Thread Daniel Lord
has, Thanks for all your hard work on this. I am going to work with it a bit when I get some time. I use Komodo a lot these days, it will be interesting to see if/how I can merge the two a bit. I saw Matt's article and I bookmarked for reading this weekend. Haven't tried Ruby yet, I should work

Re: [Pythonmac-SIG] appscript

2007-02-22 Thread Daniel Lord
My profile is close except I moved to Python 2.5: Macbbok Pro Core 2 Duo, 2.33GHz, 2GB, 10.4.8 cannot reproduce, long pause while iTunes launches though... [EMAIL PROTECTED] Thu Feb 22 11:44:38P [ 1 ] ~/ python Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) [GCC 4.0.1 (Apple Computer, Inc. build

Re: [Pythonmac-SIG] Question about "setup.py build"

2007-01-24 Thread Daniel Lord
ork. Shame, shame. On Jan 24, 2007, at 15:08, Daniel Lord wrote: Bob, Just so you know though, I was building the dynamic libs because the installer looks for them even if you disable shared libs. Bad design. So I'll have to 'hack' it to make it work. Not that that isn'

Re: [Pythonmac-SIG] Question about "setup.py build"

2007-01-24 Thread Daniel Lord
Thanks Bob, coming through as always. Daniel On Jan 24, 2007, at 14:26, Bob Ippolito wrote: > On 1/24/07, Daniel Lord <[EMAIL PROTECTED]> wrote: >> I admit to being a novice at this yet, but I couldn't find anything >> relevant to this issue on-line: >> >

[Pythonmac-SIG] Question about "setup.py build"

2007-01-24 Thread Daniel Lord
I admit to being a novice at this yet, but I couldn't find anything relevant to this issue on-line: I am trying to build a version of pysqlite that works with sqllite3 : 1. Apple's installed version doesn't work with the latest so I reinstalled 2. sqllite3 won't build shared libs for universal

Re: [Pythonmac-SIG] gmpy universal build (static)?

2007-01-09 Thread Daniel Lord
use. Sound like a project to go into the queue. That reminds me, I need to do this for my universal PIL build for 2.4 as well lest the formula become lost in antiquity ;-) On Jan 9, 2007, at 3:32, Ronald Oussoren wrote: > > On 9 Jan, 2007, at 12:04, Daniel Lord wrote: > >> Ronald, &

Re: [Pythonmac-SIG] gmpy universal build (static)?

2007-01-09 Thread Daniel Lord
e to learn is admin nor do the content justice right now. Daniel On Jan 9, 2007, at 0:45, Ronald Oussoren wrote: > > On 7 Jan, 2007, at 0:42, Daniel Lord wrote: > >> >> Then I'll package it up for distribution. > > If you do that please also post patches an

[Pythonmac-SIG] gmpy update: gmp tests all pass, failure on 14 gmpy tests

2007-01-08 Thread Daniel Lord
I need some guidance here. On first blush it doesn't make sense that the gmp checks pass but 14 gmpy tests fail. Is that a problem with the API adaptation or a case of the gmp test not covering all functionality (not likely in my view) gmp is properly installed as a universal static binary and

[Pythonmac-SIG] gmpy universal build (static)?

2007-01-06 Thread Daniel Lord
gmpy universal build (static) I struggled with it for a while, but was finally able to build both gmp and then gmpy as static universal libraries on my Macbook Pro. Dynamic libs are still problematic but I'll try that next. Is this something new or is this 'old hat' and no one cares. The reas

Re: [Pythonmac-SIG] problem installing Python Image Library 2nd Post

2006-07-26 Thread Daniel Lord
aster and Commander, the Far Side of the World Daniel On Jul 26, 2006, at 10:39, Bob Ippolito wrote: > > On Jul 26, 2006, at 7:58 AM, Daniel Lord wrote: > >> I just tried the PIL build with the 2.5b version and it fails but >> the 2.4.3 version works fine...see below. >

Re: [Pythonmac-SIG] problem installing Python Image Library

2006-07-26 Thread Daniel Lord
Are you using the Python 2.5 beta or the standard 2.4 install?the PIL build was made for the 2.4 installation and seemed to work fine with it, but I have not tested it with the 2.5 Beta.DanielOn Jul 26, 2006, at 4:08, Jörg Kantel wrote:Hi,today I tried to install the Python Image Library from this

Re: [Pythonmac-SIG] problem installing Python Image Library 2nd Post

2006-07-26 Thread Daniel Lord
I just tried the PIL build with the 2.5b version and it fails but the 2.4.3 version works fine...see below.My hunch is Ronald might have disabled some paths in order to keep the beta from interfering with the standard 2.4 install. Or not ;-)Ronald what say you?[[EMAIL PROTECTED]]$ python2.5Python 2

Re: [Pythonmac-SIG] FIXED: PIL related crash?

2006-06-10 Thread Daniel Lord
On Jun 10, 2006, at 17:16, Jerry LeVan wrote: > I checked the PIL directory and noticed that the dates on the PIL > files looked a bit old. > > I went back to pythonmac.org and downloaded the PIL that was > available and all is well now :) > > Jerry > Jerry, The PIL you just got is the one I am

Re: [Pythonmac-SIG] PIL related crash?

2006-06-10 Thread Daniel Lord
ore helpful. My system is: OS X 10.4.6 Python 2.4.3 (#1, Apr 7 2006, 10:54:33) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Tcl/Tk 8.4.13 Daniel Lord ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] FYI: Trouble with Xcode 2.3 is not localized...

2006-06-05 Thread Daniel Lord
t You Need.New! Netscape Toolbar for Internet ExplorerSearch from anywhere on the Web and block those annoying pop-ups.Download now at http://channels.netscape.com/ns/search/install.jsp___gmp-discuss mailing list[EMAIL PROTECTED]http://swox.com/mailman/list

[Pythonmac-SIG] NEVER MIND! Re: Another report on py2app error with Xcode 2.3

2006-05-29 Thread Daniel Lord
Sheer stupidity on my part ;-)On May 29, 2006, at 15:49, Daniel Lord wrote:I don't know if this helps at all, but here is the error I get...[[EMAIL PROTECTED]]$ python setup.py py2app -Arunning py2appTraceback (most recent call last):  File "setup.py", line 30, in ?    app = [

[Pythonmac-SIG] Another report on py2app error with Xcode 2.3

2006-05-29 Thread Daniel Lord
I don't know if this helps at all, but here is the error I get...[[EMAIL PROTECTED]]$ python setup.py py2app -Arunning py2appTraceback (most recent call last):  File "setup.py", line 30, in ?    app = [app_data]  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/core.p

Re: [Pythonmac-SIG] Controlling Mail.app from Python

2006-05-28 Thread Daniel Lord
On May 28, 2006, at 10:58, David Warde-Farley wrote: > Maybe for such complicated interactions a plugin would do the > trick? (I'm not totally sure, I haven't explored their full > capability). > > If you're interested see the tutorial at > > http://www.bazza.com/~eaganj/weblog/2006/03/29/dem

Re: [Pythonmac-SIG] Controlling Mail.app from Python

2006-05-28 Thread Daniel Lord
On May 27, 2006, at 21:26, Marcin Komorowski wrote: > Is there a way to control Mail.app application from within Python the > way it can be controlled using AppleScript? Explore the appscript module (http://freespace.virgin.net/ hamish.sanderson/appscript.html). I have found it to be powerful a

Re: [Pythonmac-SIG] Status of PyObjC port to Intel OS X

2006-05-17 Thread Daniel Lord
On May 17, 2006, at 2:33, Piet van Oostrum wrote: >>>>>> Daniel Lord <[EMAIL PROTECTED]> (DL) wrote: > >> DL> Question for the group: if I modify the environment through >> os.environ >> DL> ['PATH'], will Finder applications pick t

Re: [Pythonmac-SIG] Status of PyObjC port to Intel OS X

2006-05-16 Thread Daniel Lord
On May 16, 2006, at 17:43, Marcin Komorowski wrote: > > What do you than use for your Python/ObjC development on a Mac? Honestly, I use BBEdit as the overall text editor and I test complex Python non-GUI modules as 'stand-alone' modules using Komodo Professional (great debugger) or if they a

Re: [Pythonmac-SIG] Status of PyObjC port to Intel OS X

2006-05-16 Thread Daniel Lord
On May 16, 2006, at 16:00, Bill Janssen wrote: >>> OK, I think I will read the FAQ cover-to-cover so to speak before >>> asking another question :). >> >> Now _that's_ good Mac Python Community citizenship. > > Of course, it's a Wiki, so the next question is: Have you read it > lately? > > Bil

Re: [Pythonmac-SIG] Status of PyObjC port to Intel OS X

2006-05-16 Thread Daniel Lord
On May 16, 2006, at 5:49, Marcin Komorowski wrote: > Thanks Thorsten. > > OK, I think I will read the FAQ cover-to-cover so to speak before > asking another question :). Now _that's_ good Mac Python Community citizenship. Nice to know some will actually read all that hard work of so many. Than

Re: [Pythonmac-SIG] Status of PyObjC port to Intel OS X

2006-05-16 Thread Daniel Lord
On May 16, 2006, at 9:52, Christopher Barker wrote: > Isn't there a way to tell XCode specifically what python you want > it to > use? I don't use XCode, so I have no idea. Since my impression is the XCode 'philosophy' to design it as a tool 'shell' using scripting to leverage command-line

Re: [Pythonmac-SIG] Status of PyObjC port to Intel OS X

2006-05-15 Thread Daniel Lord
On May 15, 2006, at 19:11, Marcin Komorowski wrote: > Thanks to all who have replied with information, and especially to > Bob for pointing me to a location where I can find a bunch of recent > universal binary builds of python components. I have not found a > link to this page on the Internet b

Re: [Pythonmac-SIG] Status of PyObjC port to Intel OS X

2006-05-14 Thread Daniel Lord
ther, remember, no port is perfect--there are always bugs which decline in number and the frequency with which they are encountered but some are always there they are just the more obscure ones. Daniel Lord [EMAIL PROTECTED] --- "You will never regret getting up too early, and you'll alwa

Re: [Pythonmac-SIG] ImportError: cannot import name PostponedException

2006-05-09 Thread Daniel Lord
On May 9, 2006, at 9:02, Christopher Barker wrote: > > Which brings up a question. Is it possible to build universal binaries > with gcc 3.*? I'd love to see a Universal SciPy package! I haven't tried this, but it might hold promise: http://www.macosxhints.com/article.php?story=20060423105014540&

[Pythonmac-SIG] AE/PyObjC: how to use event loops to process AE

2006-05-09 Thread Daniel Lord
A PyObjC application using Appkit starts and event loop in AppHelper thus: AppHelper.runEventLoop() But, the examples I have seen using Apple Events in Python (not PyObjC) install their own handlers and then call the event loop: CarbonEvt.RunApplicationEventLoop() Unfortunat

Re: [Pythonmac-SIG] [OT] test, please ignore

2006-05-02 Thread Daniel Lord
o be blamed. > > Ronald > ___ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig Daniel Lord [EMAIL PROTECTED] --- "You will never regret getting up too early, and you'll al

Re: [Pythonmac-SIG] GMP bigot now chastened.

2006-04-27 Thread Daniel Lord
On Apr 26, 2006, at 22:45, Alex Martelli wrote: > > On Apr 26, 2006, at 8:19 PM, Daniel Lord wrote: > >> Alex, >> Just so you and anyone who cares that our platform get fair >> treatment know. Turns out the Mac bigot was behaving badly again. >> GMP 4.2 doesn

[Pythonmac-SIG] GMP bigot now chastened.

2006-04-26 Thread Daniel Lord
; accept the resulting patches. > > BTW, the biggie is fully reproducible on PPC Macs, too, so GMP 4.2 > builds on those in a state which still doesn't let gmpy.so link (it > may feel less urgent just because GMP 4.1.* does build fine;-). I've > e

[Pythonmac-SIG] Apple Tutorial on building Universal binaries from Open Source

2006-04-26 Thread Daniel Lord
Binaries from configure-based Open Source Projects Daniel Lord[EMAIL PROTECTED]---"You will never regret getting up too early,and you'll always regret getting up too late,but sometimes you may regret giving up too late."                          -- Moun

Re: [Pythonmac-SIG] New wiki entry on Universal libraries and extensions

2006-04-24 Thread Daniel Lord
On Apr 24, 2006, at 11:14, Christopher Barker wrote: > My primary comment is that you're discussing building a Universal > package, but keeping the external libs installed with the standard > "make > install". I haven't tried your scheme yet, but usually that results in > dynamic libs being bui

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-23 Thread Daniel Lord
On Apr 23, 2006, at 17:20, Jacob Rus wrote:Yeah, building on Brendan Simons' idea of what a Help Indexer-esque  Applet Builder.app icon should look like, here's what I've come up with: http://hcs.harvard.edu/~jrus/python/prettified-py-icons.png Well what do you know! Even better than a blender tho

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-23 Thread Daniel Lord
On Apr 23, 2006, at 13:36, Jacob Rus wrote: > has wrote: >> I could draw up a grinder or something in Illustrator, but it >> probably won't be for some days. If you can find something sooner, >> that's cool, otherwise let me know middle of next week and I'll >> see what I can do. > Okay, th

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-22 Thread Daniel Lord
On Apr 22, 2006, at 15:49, has wrote: > Jacob Rus wrote: > >> Ronald Oussoren wrote: >>> Now that we (almost) have new icons it would be great if someone >>> could have >>> a look at IDLE and at the very least writes down what could be >>> done to make >>> it a better OSX citizen. Actual pa

Re: [Pythonmac-SIG] No arbitrary precison math on Mac-tel say it ain't so!

2006-04-22 Thread Daniel Lord
On Apr 22, 2006, at 14:51, Alex Martelli wrote: > > On Apr 22, 2006, at 1:51 PM, Daniel Lord wrote: >... >> So the answer, IMHO and I could be wrong since I am very new to >> this, is one of two choices: >> 1) use 'ld' to produce two separate builds

Re: [Pythonmac-SIG] No arbitrary precison math on Mac-tel say it ain't so!

2006-04-22 Thread Daniel Lord
On Apr 22, 2006, at 12:36, Alex Martelli wrote: > It's not just gmpy, but anything that needs to be linked as - > bundle, whatever that means exactly. The workings of ld are > slightly arcane -- I did already ask for advice from colleagues who > I thought SHOULD know; for example, Matt Auste

Re: [Pythonmac-SIG] No arbitrary precison math on Mac-tel say it ain't so!

2006-04-22 Thread Daniel Lord
On Apr 22, 2006, at 9:50, Alex Martelli wrote: > >> And GMP doesn't compile on Mac-tel and won't for some time: >> >> The current release is 4.2, released 2006-03-26. It fixes all bugs >> found in 4.1.4, as well as several portability problems. It also >> adds several new features. Note that we ch

[Pythonmac-SIG] New wiki entry on Universal libraries and extensions

2006-04-22 Thread Daniel Lord
I made good on my threat and wrote it up. Wiki's are famous for providing misinformation because anyone can write to them regardless of the veracity of their exposition (e.g. a newb like me). So, if someone doesn't mind, please review my content and let's get anything incorrect fixed. http

Re: [Pythonmac-SIG] HFS versus POSIX paths (changed from fixing the documentation)

2006-04-22 Thread Daniel Lord
On Apr 21, 2006, at 3:06, has wrote: > Daniel Lord wrote: > >> I am writing an app combining excel and python/appscript to fetch >> quotes from the web and value stock portfolios . >> But I give up on using appscript with Excel--some things just >> don't w

[Pythonmac-SIG] No arbitrary precison math on Mac-tel say it ain't so!

2006-04-21 Thread Daniel Lord
The analog of a single gene pool in nature has come to pass for arbitrary precison math (APM) for OS X (native not Python).GMP is 'it' for APM as far as I can tell unless I want to write my own.And GMP doesn't compile on Mac-tel and won't for some time:The current release is 4.2, released 2006-03-2

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-21 Thread Daniel Lord
On Apr 21, 2006, at 21:08, Paul Berkowitz wrote: > On 4/21/06 4:40 PM, "Daniel Lord" <[EMAIL PROTECTED]> wrote: > >> As for applet icons. How about taking a different tack such as a >> variation on the icon used for Applescript applications: >> After al

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-21 Thread Daniel Lord
On Apr 21, 2006, at 20:00, Jacob Rus wrote: > Jacob Rus wrote: >> How's this then: >> >> http://hcs.harvard.edu/~jrus/python/prettified-py-icons.png > > Alright, 2 or 3 of the icons have since been updated, and that picture > is new and improved. Are there any more suggested tweaks, or are the >

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-21 Thread Daniel Lord
As for applet icons. How about taking a different tack such as a variation on the icon used for Applescript applications: After all, a p2app application is still a script deep down. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-21 Thread Daniel Lord
On Apr 21, 2006, at 12:12, Christopher Barker wrote:Yeah, the way to do it is editing the app's Info.plist, and adding the  icon to my.app/Contents/Resources. But wouldn't that make all BBedit associated files get the Python icon? Yes, I believe it would and, further, one would have to keep 'hacki

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-21 Thread Daniel Lord
On Apr 21, 2006, at 9:45, Christopher Barker wrote: > > Question: Do icons need to be associated with applications? > Personally, > I'd love to have all my *.py files have a nice python icon, but be > able > to choose what text editor or IDE I'd want them to open up with my > default (and it w

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-20 Thread Daniel Lord
On Apr 20, 2006, at 20:11, Brendan Simons wrote: > I've attached a few more mockups using Jacob's excellent aquified > logo. Have a look here: > http://www.flickr.com/photos/[EMAIL PROTECTED]/132185325/ > > In the spirit of open source, the layered psd files are available > here: > http://s65.

[Pythonmac-SIG] HFS versus POSIX paths (changed from fixing the documentation)

2006-04-20 Thread Daniel Lord
I changed the topic so many can avoid it and we don't bore them to tears ;-)On Apr 20, 2006, at 2:02, has wrote:As for working with HFS paths (and a pox on scriptable apps that require them, btw, because they're fundamentally unreliable), you ought to be able to use Carbon.CF to translate between P

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-20 Thread Daniel Lord
On Apr 20, 2006, at 10:06, Charles Hartman wrote:On Apr 20, 2006, at 12:55 PM, Christopher Barker wrote: Perhaps the "snakes" logo should be larger, filling more of the icon, particularly at the smaller sizes. There isn't any real info in the "paper" background. FWIW, I agree with that. Me three.

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-19 Thread Daniel Lord
On Apr 19, 2006, at 22:47, Jacob Rus wrote:Brendan Simons wrote: I like it, but Aqua has tuned down a lot its glassiness in recent  years.   I would tone down the difference between highlights and shadows  myself, but I'm not going to argue about it :) You're probably right, but make sure you look

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-19 Thread Daniel Lord
On Apr 19, 2006, at 21:41, Christopher Barker wrote: > Well, a script is text, but a .pyc file is not Data. Maybe "bytecode", > which is too long, or "bytes" or "code" or ".pyc" or ??? I think it should be an Apple with a bite out of it--get it? Apple, snake, apple, byte . I kill myself ;-) Ok

[Pythonmac-SIG] py2app argvemulation bug (or mis-configure) on i386 Python 2.4 on OS X 10.4

2006-04-19 Thread Daniel Lord
I decide to create a droplet from py2app in my copious spare time for a few minutes earlier and I noticed some errors in the Console plus the code is simply printing out all the strings in sys.argv plus, of course given the error, the paths of the files dropped on it never showed up in sys.

Re: [Pythonmac-SIG] Someone had PIL trouble on i386 10.4.6 Python 2.4 IIRC--I succeeded this evening

2006-04-19 Thread Daniel Lord
st_mpkg ? By build I by hand: curl, patch code by hand, make; sudo make install. The libs need their make components patched to compile FAT binaries and PIL needed to be patched to find the .a files to link into its binaries. And freetype uses a confusing Jam-based install which had me sea

[Pythonmac-SIG] Universal PIL for Python 2.4 on OS X 10.4 needs testing

2006-04-19 Thread Daniel Lord
I tested my Universal PIL installer for Python 2.4 on 10.4 on my MacbookPro but not PPC (my daughters refuse to quit Zoo Tycoon 2 and log off so I can tinker with it ;-) and it seems to work though I don't have a rigorous PIL test suite. The zip file is on my iDisk if anyone wants to give i

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-19 Thread Daniel Lord
On Apr 19, 2006, at 13:41, Jacob Rus wrote:Ok, got it.  Well, I've now put more time into this than I wanted to,  but I've got a glassy version of the correct python logo at full size,  [here][4].  Let me know what you all think.  If it looks good to  everyone, I can make a .py icon like the one li

Re: [Pythonmac-SIG] Someone had PIL trouble on i386 10.4.6 Python 2.4 IIRC--I succeeded this evening

2006-04-19 Thread Daniel Lord
On Apr 19, 2006, at 13:04, Ronald Oussoren wrote:I'll post the script I'm using to build universal packages this weekend. I have recipes for the software I'm using and several other. That   includes PIL (including jpeg, tif and freetype support).I'll put mine on my iDisk and send you a link. I'd li

Re: [Pythonmac-SIG] Fixing the documentation...

2006-04-19 Thread Daniel Lord
On Apr 19, 2006, at 12:52, Ronald Oussoren wrote:       2.1 macpath -- MacOS path manipulation functions Deprecate. Also note that the 2.4.3 documentation now says "It can   be used to manipulate old-style Macintosh pathnames on Mac OS X (or   any other platform)." which is incorrect (it uses POSI

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-19 Thread Daniel Lord
On Apr 19, 2006, at 12:08, Jacob Rus wrote: >>> [1]: http://hcs.harvard.edu/~jrus/python/Glassy-Icon.png >> >> Much better. In fact a great deal better--its looks worthy of the >> Mac. >> I could even say this is great. But, pushing the envelope a bit if >> you don't think I am being too demand

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-19 Thread Daniel Lord
On Apr 19, 2006, at 10:33, Jacob Rus wrote: >> There's the flat logo, but the logo I was pointing to was a version >> that's shaded a bit to look slightly raised and rounded. > > Were you looking for something more like [this][1]? > > -Jacob > > [1]: http://hcs.harvard.edu/~jrus/python/Glassy-Ico

Re: [Pythonmac-SIG] py2app = newbie path confusion

2006-04-19 Thread Daniel Lord
On Apr 19, 2006, at 10:03, Zachery Bir wrote: > On Apr 19, 2006, at 12:53 PM, Christopher Barker wrote: > >> corporate user wrote: >>> I'm forming the opinion that >>> "from XXX import *" should be banned from all introduction, tutorial >>> and example materials. >> >> Actually, it should be bann

Re: [Pythonmac-SIG] Fixing the documentation...

2006-04-19 Thread Daniel Lord
On Apr 19, 2006, at 9:14, Bill Janssen wrote: > I'm still in favor of simply removing outdated and dangerous docs, but > perhaps there's some effective way of thoroughly marking them as bad, > instead. Put in doc sections entitled Deprecated and Obsolete and do the same for the web and wiki. I

Re: [Pythonmac-SIG] Someone had PIL trouble on i386 10.4.6 Python 2.4 IIRC--I succeeded this evening

2006-04-19 Thread Daniel Lord
On Apr 19, 2006, at 9:49, Christopher Barker wrote: > My suggestion: > > A ExtraLibs.mpkg, right there with the packages on pythonmac.org that > includes Universal shared libs required by some common packages. They > could perhaps be installed in the Python Framework, so they won't > interfere wit

Re: [Pythonmac-SIG] py2app = newbie path confusion

2006-04-19 Thread Daniel Lord
On Apr 19, 2006, at 6:38, corporate user wrote: > Many thanks to you Bob. > You're a community treasure. > > >> Also note that the Image module probably isn't broken (don't have >> PIL installed at the moment, can't check). Constants don't >> automagically just insert themselves into your script

Re: [Pythonmac-SIG] py2app = newbie path confusion

2006-04-18 Thread Daniel Lord
On Apr 18, 2006, at 22:05, Jim Tittsler wrote: BICUBIC = 3  ###Image module broke? so define it's constant here BICUBIC = Image.BICUBIC (And it's "its."  :-)  But you should find out why your PIL is broken. Hey, I am  taking a break an a little so I'll 'nit pick' English:It isn't actually clear (t

Re: [Pythonmac-SIG] Mac Python is DEAD...Long Live Python on the Mac

2006-04-18 Thread Daniel Lord
On Apr 18, 2006, at 16:46, Terry Jones wrote: > | In my opinion, the problem is the term "MacPython". Python is > Python, > | period, and we should just call it that, even if it's running on > the Mac > | platform. Perhaps this was different in the pre-OSX days, but > not now. > > Make th

Re: [Pythonmac-SIG] Someone had PIL trouble on i386 10.4.6 Python 2.4 IIRC--I succeeded this evening

2006-04-18 Thread Daniel Lord
Chris, I will do that but as it stands, one has to build this on the system it is going to run on, i.e. i386. I assume, but haven't gotten around to trying to build this on my PPC system since there is a valid build for that already. First, I am going to create a package for this for i386-base

[Pythonmac-SIG] Someone had PIL trouble on i386 10.4.6 Python 2.4 IIRC--I succeeded this evening

2006-04-17 Thread Daniel Lord
I was able to successfully compile and install it with just a few tweaks on my Macbook Pro this evening. I don't know if this newbies methods are optimal, but they seem to have worked finally (I tried straight 'out of the box' compiles which failed at first) [EMAIL PROTECTED] sudo python s

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-17 Thread Daniel Lord
On Apr 17, 2006, at 14:15, Bill Janssen wrote:I see that Andrew Clover has submitted an update of his icons for Python. http://thread.gmane.org/gmane.comp.python.devel/78197/focus=78701 That's more like it IMHO though I was hoping for  a little Aqua Jellybean bevels on the Blue & Yellow logo part

Re: [Pythonmac-SIG] Using setup.py/distutils on Intel Macs

2006-04-16 Thread Daniel Lord
On Apr 16, 2006, at 17:54, steve wrote: > When I start using the module I usually run into "ImportError: > Inappropriate file type for dynamic loading". Is there any > workarounds? That error is ( in my experience) typical to receive when loading a PPC format library on the i386 platform. The

Re: [Pythonmac-SIG] 2.3 vs 2.4 - Installer myopia

2006-04-15 Thread Daniel Lord
On Apr 15, 2006, at 16:03, Bob Ippolito wrote: > It's possible that the wxPython guys screwed up, or it's possible > that you downloaded an installer for Apple's Python 2.3 framework > and expected it to work with an entirely different version of > Python installed in another location. You

Re: [Pythonmac-SIG] 2.3 vs 2.4 - Installer myopia

2006-04-15 Thread Daniel Lord
On Apr 15, 2006, at 5:57 PM, Bob Ippolito wrote:Installers for extensions are specific to a particular version ofPython anyway.  But is that always necessary? I am sure it is sometimes, particularly when the OS changes dramatically like from 10.3 to 10.4.But what about the case of the Alias researc

Re: [Pythonmac-SIG] 2.3 vs 2.4

2006-04-15 Thread Daniel Lord
On Apr 15, 2006, at 14:10, Troy Rollins wrote:The thing I'm slightly unclear about is the best way to change my   path on OSX. Changing things like ~/.profile and ~/.bash_profile   change it for the shell, but do not change it systemwide. I've   modified my ~/.MacOSX.environment.plist, which seems

  1   2   >