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>
__
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
;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
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
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.
--
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
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
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>
__
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
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
#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>
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
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>
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>
_
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
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
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
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
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()
//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
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 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>
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
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'
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
.
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
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
.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
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
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>
_
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.
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
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
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]> | <
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
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
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
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
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
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
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
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
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
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
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
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
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>
___
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
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.
.: 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 <
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
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]>
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>
_
')].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
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
> 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
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
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
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
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
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
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
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'
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
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
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
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
__
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
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 - 100 of 115 matches
Mail list logo