Re: [Pythonmac-SIG] a RegEx question

2005-01-18 Thread Nicholas Riley
s can do the second one, but I might be wrong. Neither greedy or non-greedy quantifiers will compare match length. You could get a list of all matches and pick the longest one yourself. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> __

Re: [Pythonmac-SIG] [OT] To upgrade Mac OSX or not?

2005-01-25 Thread Nicholas Riley
gave my mother. 10.4 is unlikely to be released before April 2005. Note that the time between releases continues to increase. I doubt Mac OS X is ever going to see Windows' multi-year release cycles, but you can expect better backwards compatibility in future. -- Nicholas Riley <[E

Re: [Pythonmac-SIG] [OT] To upgrade Mac OSX or not?

2005-01-26 Thread Nicholas Riley
;full value" from it because it's 15 > Bob> months old (Oct 24 2003) already. > > Where would an interested person find a log of release dates? I happened to use Ars Technica's reviews, but another good source is Apple's press releases. -- Nich

Re: [Pythonmac-SIG] CFURL Pain

2005-02-28 Thread Nicholas Riley
LevelCalls.c] Out[4]: In [5]: f = CF.CFURLCreateFromFileSystemRepresentation('/Users/nicholas/', True) In [6]: f.CFURLGetFSRef()[1].as_pathname() Out[6]: '/Users/nicholas' It's hard to say if the crash is Python's fault or CF's fault, but there's definitely a

Re: [Pythonmac-SIG] converting file paths between HFS and POSIX formats

2005-04-22 Thread Nicholas Riley
om an imprecise HFS path to something else: In [5]: u = toCF('Onyx:').CFURLCreateWithFileSystemPath(kCFURLHFSPathStyle, False) In [6]: u.CFURLCopyFileSystemPath(kCFURLPOSIXPathStyle).toPython() Out[6]: u'/Applications' and so forth. --

Re: [Pythonmac-SIG] converting file paths between HFS and POSIX formats

2005-04-22 Thread Nicholas Riley
leSystemPath(kCFURLHFSPathStyle, False) >>> u.CFURLCopyFileSystemPath(kCFURLPOSIXPathStyle).toPython() u'/Foo' Yeah, I see what you mean. You can't expect this kind of conversion to work on a nonexistent file, and it's not one-to-one in any case... I'd suggest just doc

Re: [Pythonmac-SIG] site-packages symlink location changed in Tiger?

2005-04-30 Thread Nicholas Riley
else seen this? I want to make > sure I didn't run into some sort of glitch. This was covered on this mailing list a few days ago. <http://mail.python.org/pipermail/pythonmac-sig/2005-April/013823.html> -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www

Re: [Pythonmac-SIG] Distinguishing between Aqua Tk and X11 Tk

2005-05-02 Thread Nicholas Riley
this, > they will need "Control" in that case. I answered this question for you (!) in September 2004. <http://mail.python.org/pipermail/pythonmac-sig/2004-September/011615.html> -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> __

Re: [Pythonmac-SIG] convert binary plist to xml string

2005-05-07 Thread Nicholas Riley
rrorDescription_(plist, NSPropertyListXMLFormat_v1_0) In [6]: data.writeToFile_atomically_('foo.plist', False) Out[6]: 1 In [7]: print file('foo.plist').read() http://www.apple.com/DTDs/PropertyList-1.0.dtd";> KeychainSyncList -- Nicholas

Re: [Pythonmac-SIG] Python Metadata Importer

2005-05-26 Thread Nicholas Riley
ed this I got a continuous stream of: May 26 08:32:27 byron mdimportserver[29832]: Exception occured: *** -[NSCFArray addObject:]: attempt to insert nil in console.log. I assume this will go away once the import finishes, but it's rather annoying at the moment. -- Nicholas Riley <[EM

Re: [Pythonmac-SIG] making a C extension compatible across OS versions?

2005-05-26 Thread Nicholas Riley
#x27;ll have to load individual bundles, or use CFBundle or some lower-level mechanism to obtain and call through function pointers. <http://developer.apple.com/technotes/tn2002/tn2064.html> -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley>

Re: [Pythonmac-SIG] Python Metadata Importer

2005-05-26 Thread Nicholas Riley
gt; could do. Unless anyone has any better ideas I'm just going to try > and gracefully ignore the attribute. How about just recognizing versions that have the form "$Revision: foo$" and stripping the tag info, just as the code above does? -- Nicholas Riley <[EMAIL PROT

Re: [Pythonmac-SIG] Python Metadata Importer

2005-05-26 Thread Nicholas Riley
on and others. Subversion supports keyword substitution, too. Seems reasonable to support if it's common and 1 line of code, otherwise...yeah, whatever. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley>

Re: [Pythonmac-SIG] retrieving config values from the System Preferences

2005-06-07 Thread Nicholas Riley
HTTPProxy = "127.0.0.1"; ProxyAutoDiscoveryEnable = 0; } You can download the wrapper from: <http://undefined.org/python/SystemConfiguration-0.3.tar.gz> -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> _

Re: [Pythonmac-SIG] Tricky question?

2005-06-14 Thread Nicholas Riley
another way to do what you want. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Aquamacs

2005-06-21 Thread Nicholas Riley
for example if you want to read a UTF-8 formatted file with Mac line endings, you use utf-8-mac. The line ending style, if non-Unix (LF) should be shown in the bottom left corner of the status area. -- Nicholas Riley <[EMAIL PROTECTED]> | <ht

Re: [Pythonmac-SIG] LaunchServices package

2005-06-22 Thread Nicholas Riley
nymore. It's part of the Python23Compat packages: <http://pythonmac.org/packages/> -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] appscript help - supposed to work?

2005-07-14 Thread Nicholas Riley
ameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/appscript/specifier.py", line 257, in __getattr__ raise RuntimeError, "Unknown property, element or command: %r" % name RuntimeError: Unknown property, element or command: '__name__' I seem to remember t

Re: [Pythonmac-SIG] appscript help - supposed to work?

2005-07-14 Thread Nicholas Riley
On Fri, Jul 15, 2005 at 01:20:58AM -0500, Nicholas Riley wrote: > I seem to remember this used to work... I tried with a couple of > other apps too; same problem. And five seconds after sending that, I realize you're supposed to use foo.help() instead. It would be nice if help()

Re: [Pythonmac-SIG] Getting Sharing name of the Macintosh via Python?

2005-08-03 Thread Nicholas Riley
//developer.apple.com/qa/qa2001/qa1078.html> -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Active Directory authentication on Mac using Python

2005-08-15 Thread Nicholas Riley
he client should > never need to send a password to the app server, and the app server > would never be in a position to collect user passwords. These statements seem incompatible. Above, you're (attempting to) send your password to the LDAP server directly. Instead, you need to get a

Re: [Pythonmac-SIG] Active Directory authentication on Mac using Python

2005-08-15 Thread Nicholas Riley
re are Perl Kerberos bindings, I think, but I didn't bother using them, I just exec'ed kinit. <http://njr.pycs.net/weblog/2004/06/03.html#P28> -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley>

Re: [Pythonmac-SIG] How to tell if a .app is clicked again?

2005-08-16 Thread Nicholas Riley
ement applicationShouldHandleReopen_hasVisibleWindows_) and the Web server in other threads, or not... -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] How to tell if a .app is clicked again?

2005-08-16 Thread Nicholas Riley
with an icon or not, when the launcher app runs; the launcher app would then exit. If the launcher app notes that the real app is already running, then just open the page in the browser. The user would only see one app, and since the Finder in OS X no longer shows apps differently when they'

Re: [Pythonmac-SIG] CoreGraphics module for python 2.4.1

2005-09-12 Thread Nicholas Riley
sed-source (most likely because it uses CoreGraphics/Cocoa SPI to do crazy stuff enabling you to draw without a windowserver connection). -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillis

Re: [Pythonmac-SIG] librsync, pylibacl, pyxattr ?

2005-09-14 Thread Nicholas Riley
for matching files the time stamps, permissions, ACLs and sizes, > maybe even MD5 hashes, would be checked and any mismatches noted. I've had luck using integrit <http://integrit.sourceforge.net/> but it doesn't do ACLs. You could probably trivially extend it to do so, thou

Re: [Pythonmac-SIG] appscript and quicktime

2005-10-03 Thread Nicholas Riley
umentation or interactively probe the terminology with appscript; see: <http://freespace.virgin.net/hamish.sanderson/appscripthelpsystem.html> > and finally, what does the k. in the documentation (and the above get > () call) stand for? "keyword", I think. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] problem trying to use aemreceive with Tkinter app

2005-12-02 Thread Nicholas Riley
emreceive.sfba.starteventloop() for that. It seems from the stack trace that Tk still removes and dispatches an event at a time, so it doesn't play well with other event consumers. Maybe you can run your own event loop and dispatch events to Tk yourself? Or you could try using Tk's e

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Nicholas Riley
That also has the benefit of keeping your Mac free for interactive use. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] pythonw stay open

2005-12-06 Thread Nicholas Riley
leave pythonw open all of the time, and avoid paying > the "launch costs", or is the price for launching pythonw too minimal > to notice ("time... says...")? (Meaning that I should try to optimize > my system some other way, like moving the CPU hogging process off that

Re: [Pythonmac-SIG] Building multiple command-line( ( CLI ) programs with py2app

2006-01-16 Thread Nicholas Riley
ocation of FDK (best by bundle ID, e.g. com.adobe.FDK) and execs it passing through the arguments as above. You could hack the source code of my launch tool to do so (http://web.sabi.net/nriley/software/#launch). -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njr

Re: [Pythonmac-SIG] Spotlight Importing without .py

2006-01-21 Thread Nicholas Riley
d wait. Naming your executable Python scripts something ending in .py or .pyw works too. :-) -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] building universal binaries

2006-02-04 Thread Nicholas Riley
g > setuptools to know that an architecture string that contains a comma > is actually a list of architectures shouldn't be too hard. This sounds like a good idea, and this is not just a legacy issue with ppc64 - we'll likely have a 64-bit x86 Mac variant to handle within th

Re: [Pythonmac-SIG] New Page, first proposal

2006-02-10 Thread Nicholas Riley
Python framework install. I've seen this catch a large number of people using Python web apps that install scripts for management, such as Trac, TurboGears and so forth. Even if we could just recommend a ~/.pydistutils.cfg like this: [install] install_scripts = /usr/local/bin we'd be better of

Re: [Pythonmac-SIG] My stab at a new page

2006-02-13 Thread Nicholas Riley
ile. It'd be nice if Apple provided a standard way to handle versioning for any system-provided interpreter, though whatever they did would only be likely to apply to bundled applications, not command-line stuff. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] os.environ

2006-03-19 Thread Nicholas Riley
t > os.environ['LINES'] and os.environ['COLUMNS'] don't exist. Why is > that? LINES and COLUMNS are not typically exported by the shell (passed to child processes). You can use 'export LINES' or 'export COLUMNS' to do so if you wish.

Re: [Pythonmac-SIG] py2app is building semi-standalone package only.

2006-03-22 Thread Nicholas Riley
vironment variables or a paritcular PATH being set, they're broken. They should use command-line utilities inside their bundles or frameworks, which py2app and friends make very easy to accomplish. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Marking the pre-built extensions as Intel-capable...

2006-03-27 Thread Nicholas Riley
On Mon, Mar 27, 2006 at 04:00:07PM -0800, Christopher Barker wrote: > What happens if you double-click on a *.egg? That'd be an incredibly cool utility to have, and a lot easier to write than something like PackageManager. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://ww

Re: [Pythonmac-SIG] Building apps with hardcoded options using py2app

2006-04-17 Thread Nicholas Riley
t; Can I use py2app to make different 'double-clickable' applications > that would give us the same functionality? If so, how? Where would > I specify the options? Use -argv-inject. python setup.py py2app --help for more information. -- Nicholas Riley <[EMAIL PRO

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

2006-04-19 Thread Nicholas Riley
blem, not ours, though. > >5.4 icopen -- Internet Config replacement for open() > > Presumably in the same boat as '2.3 ic'. Anyone? Yeah, deprecate for LaunchServices. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

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

2006-04-19 Thread Nicholas Riley
. Looks great. Quick, make the other icons before anyone else complains! :) -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

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

2006-04-19 Thread Nicholas Riley
can be edited or at least viewed, and a .pyc file certainly can't be (easily :). Consider the executable icon (cd into /bin or whatever) as an example - although, I guess even run-only AppleScripts get a document icon. -- Nicholas Riley <[EMA

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

2006-04-20 Thread Nicholas Riley
.levenez.com/NeXTSTEP/MicroPhonePro.jpg> The PYTHON text appears to be in the wrong font. By analogy with AppleScript, perhaps the text shouldn't be there at all (although how many people will recognize the Python logo anyway?) Otherwise, looks terrific! Wish I had any artistic talent so

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

2006-04-20 Thread Nicholas Riley
tunately the jar icon is rather boring: it's just a coffee cup in a document with "JAR" underneath it. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@py

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

2006-04-20 Thread Nicholas Riley
e will recognize the Python logo anyway?) > > Probably the python logo is enough, since the file ends in .py. Good point - .py is unlikely to be a hidden extension. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> _

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

2006-04-23 Thread Nicholas Riley
nder.zip Nice looking, but unrecognizable and impractical at small sizes. Even at full size, I had to stare at it for a few seconds before I recongized what it was trying to depict. The dropping action at a small size (say 32x32) looks like something kicking out, rather than a handle turning.

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

2006-04-23 Thread Nicholas Riley
ry, so they can continue to be developed? I'd hate to see someone else have to start from scratch in the event new Mac OS X icons need to be produced. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] help needed with py2app for self updating application

2006-04-24 Thread Nicholas Riley
xPython2.5.3.1 (check with import wx;wx.VERSION). > > | Python | wxPython > 10.2 2.2.?none (this python was pretty broken) > 10.3 | 2.3.1 | none ^ this is actually 2.3, not 2.3.1. -- Nicholas Riley <[EMAIL PROTECTE

Re: [Pythonmac-SIG] question about ic.py on Mac OS X

2006-05-20 Thread Nicholas Riley
or the built-in Python 2.3.5? Does this happen when opening URLs using Launch Services, or with Internet Config in other apps? (You can try my 'launch' tool - with the -l option it uses IC, without it, it uses LS). -- Nicholas Riley <[EMAIL PROTECTED]> | <

Re: [Pythonmac-SIG] Python Unicode and NSString...

2006-05-30 Thread Nicholas Riley
exception each time: > > exceptions.Exception depythonifying 'charptr', got 'unicode' > > This is normal? what can i do? ;) What are you trying to do? If the string is already Unicode, PyObjC will make it into a NSString for you. If you want to encode a Unicode string

[Pythonmac-SIG] exception on NSWorkspace.launchAppWithBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifier_

2006-06-12 Thread Nicholas Riley
hod invocation works fine from Objective-C. What's going on? I'm using Python 2.4.3 Universal on a PPC 10.4.6 machine, and PyObjC 1.3.7. Thanks, -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pyth

Re: [Pythonmac-SIG] Bundling Python framework with app

2006-06-19 Thread Nicholas Riley
reason I avoid .pkg installers is there's no easy way to uninstall. With an app bundle, you just trash it. (And yes, this is Apple's problem that they still don't have a robust installer after 5 years.) -- Nicholas Riley <[EMAIL PROTECTED]&g

Re: [Pythonmac-SIG] Fwd: Re: python appscript is displaying warning/errors sometimes

2006-06-28 Thread Nicholas Riley
Looks like SCPatch/Default Folder X. Report it as a bug. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Problem with open_app Action Event

2006-07-14 Thread Nicholas Riley
ive you some ideas. There are also some examples (and documentation) included with appscript. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] appscript equivalent of launch?

2006-07-20 Thread Nicholas Riley
dow. To truly emulate AppleScript you'd need to check if the app is already running, and if so, don't do anything. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] appscript questions

2006-08-03 Thread Nicholas Riley
mselves to make text > easier to read)? How about wrapping to the terminal width, whatever it happens to be? That's what most other things do. (You could always have a 'wrap=False' option to help(), if necessary.) -- Nicholas Riley <[EMAIL PROTECTED]> | <ht

Re: [Pythonmac-SIG] Please critique my first appscript - a fix for Palm sync of iCal Tasks (for kGTD)

2006-08-29 Thread Nicholas Riley
quot; % repr > ( task_uid_list ) ) You can use '%r' % task_uid_list to get the repr. > def usage(): > print "USAGE: " + sys.argv[0] + " save|check" It's a bit more efficient (and clearer, IMO) to use commas to give print multiple arguments rathern th

Re: [Pythonmac-SIG] MacPython/Subversion/Apache question

2006-08-30 Thread Nicholas Riley
t replace Apple's Apache installation; Mac OS X Server, for example, includes both Apache 1.3 and Apache 2; a future version of Mac OS X will likely be Apache 2-only. > Is there another place I should be asking these questions? Probably best on the Subversion users mailing lis

[Pythonmac-SIG] Fix Mac page again?

2006-09-24 Thread Nicholas Riley
y where to get Python 2.5, and apparently they missed the link on the main download page. Thanks, -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Why Do I Explicitly Need MacPython

2006-10-03 Thread Nicholas Riley
e there'd be a fully capable terminal with which the user can interact. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-11-28 Thread Nicholas Riley
ia Google, but none have worked for me. Is there a canonical > appscript call into iTunes that will return a list of all tracks in the > library? iTunes.sources.filter(its.kind==k.library)[1].library_playlists[1].tracks() if you're using a newer appscript, you'd want instead: iTun

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-12-03 Thread Nicholas Riley
e about 2 hours of trying to compile Kerberos on AIX today.) In the strange coincidences category, "Cherry Blossom Girl" just came on the streaming station I'm listening to. Scary. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___

Re: [Pythonmac-SIG] pythonmac packages question

2006-12-07 Thread Nicholas Riley
need to add Python's bin directory to your path, depending on how you configure it. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] pythonmac packages question

2006-12-07 Thread Nicholas Riley
If you just want to install the packages for yourself, then check out the Mac OS X "User" installation section. Then download and run ez_setup.py, which bootstraps setuptools, and run "easy_install IPython". This will work with many simple packages, and some complex ones too.

Re: [Pythonmac-SIG] How to fathom appscript

2006-12-18 Thread Nicholas Riley
.: and p.parent.id() == stats_id] Out[46]: [app(u'/Applications/iTunes.app').sources.ID(41).user_playlists.ID(1032), app(u'/Applications/iTunes.app').sources.ID(41).user_playlists.ID(1158), app(u'/Applications/iTunes.app').sources.ID(41).user_playlists.ID(1060)] -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Compiling Scipy/available binaries for Universal Python 2.4?

2007-01-11 Thread Nicholas Riley
currently pythonmac.org maintainer doesn't have time, and would be happy to relinquish control to someone who did. But nobody's volunteered. It is really rather tiresome to read about people asking for "someone" to do something when everyone's doing this work for free

Re: [Pythonmac-SIG] Compiling Scipy/available binaries for Universal Python 2.4?

2007-01-11 Thread Nicholas Riley
On Thu, Jan 11, 2007 at 07:21:27PM -0600, Nicholas Riley wrote: > It is really rather tiresome to read about people asking for "someone" > to do something when everyone's doing this work for free. I apologize for this message - I misread and overreacted. There's a

Re: [Pythonmac-SIG] How to create a desktop alias to run a python file?

2007-03-23 Thread Nicholas Riley
7;t mount the Apple_Rhapsody_UFS partition.) -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] CGI + appscript newbie question/problem

2007-05-28 Thread Nicholas Riley
it'].menu_items['Paste'].click() mref['Window'].menu_items['Zoom'].click() Replace user:password with your username and password, above. >mref['Window'].menu_items['Zoom Window'].click() On my 10.4.9 machine this menu item is "Zoom", not "Zoom Window". -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] findertools.launch reports "no eligible process"

2007-06-14 Thread Nicholas Riley
hat of EasyDialogs as much as Carbon does. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Build Applet Environ problem...

2007-06-25 Thread Nicholas Riley
mand line "open -a" the environment > vars will > be picked up. > > Is this problem somehow my fault or is this a PythonMac/Intel problem? Stuff you launch from the dock shouldn't read your shell rc files. You'll need to use ~/.MacOSX/environment

Re: [Pythonmac-SIG] Accessing Resource forks

2007-07-13 Thread Nicholas Riley
those in other ways if you want to preserve them. Note that forthcoming Mac OS X versions may no longer use ._ files to store resource forks on SMB mounted volumes (some third-party clients already don't), instead reading/writing to alternate streams just as S

Re: [Pythonmac-SIG] Accessing Resource forks

2007-07-13 Thread Nicholas Riley
27;s only useful if you're looking at it on Windows; if you're viewing it from the Mac over AFP then just use the Mac native mechanisms. When doing a search I discovered the "Fork Server Helper" app which might be useful to you, as it's designed to convert between

[Pythonmac-SIG] py-appscript changes to filtering?

2007-09-08 Thread Nicholas Riley
2.3/site-packages/appscript-0.18.0-py2.3-macosx-10.4-ppc.egg/aem/types/objectspecifiers/specifier.py", line 425, in __init__ raise TypeError, 'Not a test specifier: %r' % key TypeError: Not a test specifier: its.property('pisf') It works if I use [its.frontmost == True], but

Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-22 Thread Nicholas Riley
se PyObjC with NSMetadataQuery instead. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Leopard python architectures in setup.py

2007-11-01 Thread Nicholas Riley
n their release notes: <http://developer.apple.com/releasenotes/OpenSource/PerlExtensionsRelNotes/> -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Problem with numpy on Leopard

2007-11-02 Thread Nicholas Riley
ct versions are added to sys.path (e.g. if > multiple versions have been installed). setuptools definitely supports multiple versions of packages being installed at once, and the ability to select them. It rewrites your scripts for you at installation time to resolve the depdendencies. If you want t

Re: [Pythonmac-SIG] readline support for OS X Leopard

2007-11-21 Thread Nicholas Riley
ary/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload? Thanks, -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Get the locale on OSX

2007-12-02 Thread Nicholas Riley
ed does cause locale.getdefaultlocale() to work, but this is of no help in general. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Key Bindings on cross platform apps.

2008-02-04 Thread Nicholas Riley
ftware on their Macs (Apple also shipped a 5 1/4" drive to be used with Macintosh PC Exchange around the same time), but it ended up becoming the dominant keyboard. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

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

2008-02-09 Thread Nicholas Riley
nt versions in /System/Library/Frameworks. Unless you've got something else that relies on them, I don't see why not. You should be able to nuke anything in /Library in general; it's supposed to be user-serviceable (or at least administrator-serviceable). -- Nicholas Riley <

Re: [Pythonmac-SIG] Carbon bindings' future

2008-04-11 Thread Nicholas Riley
Internet Config is deprecated in 10.5; you should use SCDynamicStoreCopyProxies instead (see SCDynamicStoreCopySpecific.h). -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - P

Re: [Pythonmac-SIG] Carbon bindings' future

2008-04-11 Thread Nicholas Riley
The general CF rule is that if you use a function named *Get*, then you don't need to CFRelease; if you use a function named *Copy* or *Create*, you do. So, what you've written looks fine. -- Nicholas Riley <[EMAIL PROTECTED]>

Re: [Pythonmac-SIG] 64-bit Python?

2008-06-04 Thread Nicholas Riley
a single architecture, so short of for example running the setup script once for each architecture and merging the build products it would be difficult to find a fully general solution. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> _

Re: [Pythonmac-SIG] iTunes query

2008-07-27 Thread Nicholas Riley
')].name() Out[7]: [u'California Sun', u'Wasted Early Sunday Morning', u'My Sundown', u'Sunday', u'The Sun Is Burning', [...] although you're better off using app(id='com.apple.iTunes') of course. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] quick tutorial on aemreceive

2008-07-27 Thread Nicholas Riley
i.net/trac/dev/browser/trunk/RetroStatus/RetroStatus.py> -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Teething troubles - Getting up an running on a mac

2008-08-03 Thread Nicholas Riley
> Finder doesn't work that way--not sure what to tell you. Actually, this isn't the case in Leopard - you can use View > Show Path Bar to turn it on. (However, this uses way too much screen space for me - I find it easier to Command-click - or, also new in Leopard, right-clic

Re: [Pythonmac-SIG] Creator, type and other means of file detection

2008-12-01 Thread Nicholas Riley
want though. Instead, use: >>> import LaunchServices >>> LaunchServices.UTTypeCopyPreferredTagWithClass('public.jpeg', >>> LaunchServices.kUTTagClassOSType) u'JPEG' -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] LOLpatents

2008-12-13 Thread Nicholas Riley
tierkernel.sourceforge.net/cgi-bin/lxr/source/Common/source/osaparseaete.c> Code from an earlier time. How I miss Frontier... -- Nicholas Riley | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] unicode problem w/pyapp 2.5 vs 2.6

2009-02-21 Thread Nicholas Riley
f the other. Extension modules are not compatible between the two, although usually you get a link error. It's probably easiest just to reinstall install appscript on 2.6. -- Nicholas Riley | <http://www.uiuc.edu/ph/www/njriley> ___ Pythonmac-SIG

Re: [Pythonmac-SIG] [PyObjC] setting button name in NSOpenPanel

2009-04-02 Thread Nicholas Riley
find how to change the default > "Open" and "Cancel" button's names. > > Could anybody post a line of code demonstrating how to achieve this > task ? op.setPrompt_('foo') will change Open. Note that NSOpenPanel inherits from NSSavePanel

Re: [Pythonmac-SIG] [PyObjC] setting button name in NSOpenPanel

2009-04-02 Thread Nicholas Riley
etTitle_('Go Away') openPanel.runModalForTypes_(None) and assuming you're going to be distributing your app, make sure you handle the case when the button isn't there, or there are two of them, or the button doesn't have a title, or something else weird happens in a future O

Re: [Pythonmac-SIG] mactypes Alias/File object question

2009-04-06 Thread Nicholas Riley
t a public property (path) will give you what you want. <http://appscript.sourceforge.net/py-appscript/doc/mactypes/> -- Nicholas Riley ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] Can't get ASDictionary to work (py2app problems?)

2009-05-31 Thread Nicholas Riley
09-05-31 15:49:24.394 ASDictionary[4605:10b] ASDictionary Error An unexpected error has occurred during execution of the main script ImportError: No module named objc despite the fact that there is not one but *two* copies of PyObjC installed. (Everything works fine if I just 'import objc'

Re: [Pythonmac-SIG] Can't get ASDictionary to work (py2app problems?)

2009-06-01 Thread Nicholas Riley
ess important given that I have a fix for my ASDictionary issue, but still seem pretty serious. Thanks, -- Nicholas Riley x ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Can't get ASDictionary to work (py2app problems?)

2009-06-02 Thread Nicholas Riley
efully this thread means nobody else will have to go through it :-) -- Nicholas Riley ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Can't get ASDictionary to work (py2app problems?)

2009-06-02 Thread Nicholas Riley
On Jun 2, 2009, at 1:58 AM, Ronald Oussoren wrote: I don't have time to look into the py2app issues right now. That said, I wouldn't install a new version of pyobjc in the system install of python because this might break other bits of the system. Thanks for the warning - you may want to ma

Re: [Pythonmac-SIG] run python script on another computer's terminal (LAN)

2009-08-11 Thread Nicholas Riley
emote Apple Events are very flaky. I'd suggest the original questioner just use SSH, either with the built-in OpenSSH through subprocess or with paramiko (http://www.lag.net/paramiko/). I've replaced all my use of remote Apple Events with it. -- Nicholas Riley __

Re: [Pythonmac-SIG] Using Python 2.5 on Snow Leopard

2009-09-19 Thread Nicholas Riley
python/twisted | wc -l 1675 % find /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/twisted | wc -l 1675 -- Nicholas Riley ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] deconstruct a py-appscript reference

2009-12-11 Thread Nicholas Riley
example: In [54]: type(s.AS_aemreference).mro() Out[54]: [, , , , , ] -- Nicholas Riley ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

  1   2   >