Re: [Pythonmac-SIG] Carbon bindings' future

2008-04-10 Thread has
On 9 Apr 2008, at 06:56, Ronald Oussoren wrote: > > On 3 Apr, 2008, at 15:46, has wrote: >> >>> it would be nice to have complete bindings to the bits of >>> Carbon that still make sense. >> >> Yes, although I'd repeat my earlier suggestion that

Re: [Pythonmac-SIG] appscript path problem from a newbie

2008-04-15 Thread has
ns by name/bundle id/creator code, so it may be that the LS database points to a different copy of OO to the one you're running. If you need to be more specific, you can identify applications by their full path or unix process id; see chapter 7 of the appscript manual for details. HTH

Re: [Pythonmac-SIG] Back-porting Python 2.3 to Mac OS X 10.5? (Brad Knowles)

2008-04-17 Thread has
ng to get a newer > version of Python running on an older machine. FWIW, there is a Python 2.3.5 framework build included in 10.5 (/ System/Library/Frameworks/Python.framework/Versions/2.3), although it lacks a CLI interpreter and headers, and I've no idea if it's funct

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

2008-05-27 Thread has
e been trying to field the OP's questions over at <http://forums.macrumors.com/showthread.php?p=5490877 >, but I'm not the biggest expert on either Xcode or py2app. has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net __

Re: [Pythonmac-SIG] Is there still a good reason for separate macpython and pyobjc mailing lists?

2008-05-29 Thread has
n for obtaining Python-related help. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] running Cocoa application from python

2008-06-06 Thread has
t framework. #3 might be worth considering if you'd have other uses for such a framework, however. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - Pythonmac

Re: [Pythonmac-SIG] Pythonmac-SIG] Applescript equivalent in appscript

2008-06-07 Thread has
tor approach and a real pain for passing complex values such as lists and dates since everything has to go as UTF8 text, but it avoids any extra dependencies. 2. Use StandardAdditions' 'run script' command via the osax module. Since the osax module is built on appsc

Re: [Pythonmac-SIG] Problem with Framework

2008-08-11 Thread has
Georg Seifert wrote: is there a way to select witch framework to use? You need to bind the framework yourself rather than using #import, e.g. see py2app's bundletemplate/src/main.m, or PyOSA's pythonloader.c file. HTH has -- Control AppleScriptable applications from Python

Re: [Pythonmac-SIG] appscript -- Getting 1708 Error on count command for word 2008

2008-08-16 Thread has
the-scenes chicanery for compatibility's sake, but this isn't one of them. (The 'each' parameter is itself a design wart; Apple event IPC has a lot of those.) Adding a note about this particular issue to the FAQ is on the TODO list... along with the rest of the FAQ. (I

Re: [Pythonmac-SIG] controlling Mail.app and GnuPG

2008-08-25 Thread has
script syntax for Mail.app]: How can I set the complete content of a reply message? Dunno offhand; might have time to look into it tomorrow unless anyone else has any ideas. As you say, Mail's scripting interface is less than stellar. BTW, you could also try asking on Apple's AppleSc

Re: [Pythonmac-SIG] Rocketship in the Dock

2008-09-02 Thread has
interpreter is just a regular Unix-style executable. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Making setuptools compile for x86_64

2008-09-02 Thread has
John Porter Simons wrote: Any way to inform setuptools that I also need "x86_64" architecture? I also ran into this problem while installing mod_python, dinked around with the makefile flags but gave up until I discovered that the latest subversion trunk has the correct flags

Re: [Pythonmac-SIG] using py-appscript

2008-09-11 Thread has
on I don't know where to start. > Is there any way to interactively explore what is available? Something > like >dir(app('TextEdit')) -> [..., "documents", ...] > to let me know that the app has document components >app('TextEdit').doc

[Pythonmac-SIG] prepping Python appscript 0.19.0 for release

2008-09-27 Thread has
requests, etc. then this is the time to do it[1]. To check it out from appscript's Subversion repository [2]: svn checkout http://appscript.svn.sourceforge.net/svnroot/appscript/py-appscript/trunk py-appscript-0.19.0-prerelease Many thanks, has [1] IOW, if you have any interes

Re: [Pythonmac-SIG] ScriptingBridge vs. AppScript

2008-10-10 Thread has
("com.apple.iTunes") lib = itunes.sources()[0].playlists()[0] tracks_list = lib.tracks().get() print tracks_list itunes = app(id='com.apple.iTunes') lib = itunes.sources[1].playlists[1] tracks_list = lib.tracks.get() pr

Re: [Pythonmac-SIG] newbie questions about Mac APIs in Python

2008-10-11 Thread has
S X additions hiding beneath the surface as well, e.g.: import subprocess subprocess.call(['say', 'hello world']) HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___

[Pythonmac-SIG] str.decode() behaves differently in 2.5 and 2.6

2008-10-12 Thread has
;credits" or "license" for more information. >>> '\x41\x00'.decode('utf16') u'\u4100' OS X 10.5.5/i386 using default 2.5.1 Python installation vs. the Python 2.6 framework distribution from python.org. has -- Control AppleScriptable appli

Re: [Pythonmac-SIG] str.decode() behaves differently in 2.5 and 2.6

2008-10-15 Thread has
tly or make sure there's a BOM. After further digging, it looks like it's a manifestation of a known issue in 2.6's C API: http://bugs.python.org/issue4060 Anyway, I've added a workaround to my code as suggested. Thanks, has -- Control AppleScript

[Pythonmac-SIG] Anyone have 10.5.5 on a G5?

2008-10-17 Thread has
ppscript-0.19.0 (If you're not familiar with Subversion, drop me an email and I can send a .tar.gz.) Many thanks, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG mailli

Re: [Pythonmac-SIG] Rocket jumping up and down in the dock?

2008-10-25 Thread has
calls certain OS APIs, OS X automatically upgrades it to full GUI status. e.g. Py- appscript has this problem, despite having no need for a Window Manager connection itself: it calls Process Manager, which is one of the APIs in question, and the python interpreter is packaged as an .app, s

Re: [Pythonmac-SIG] Python 2.6 / appscript 0.18.1 DeprecationWarnings fix

2008-10-29 Thread has
nk BTW, I'm aiming to get the long awaited 0.19.0 (beta 1) release out this week (I'd hoped to have it out sooner but I'm still polishing details), and will post an announcement when that happens. Regards, has -- Control AppleScriptable applications from Python, Ruby and Obj

[Pythonmac-SIG] py3-appscript

2008-10-31 Thread has
issue if you're dipping into the lower-level aem APIs). Enjoy, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - [email protected] http://mail.python.

Re: [Pythonmac-SIG] lots of Python-Cocoa errors in XCode console window...

2008-11-02 Thread has
eads yourself. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] lots of Python-Cocoa errors in XCode console window...

2008-11-03 Thread has
oc().init() try: ... finally: del pool I believe that's what the PyObjC documentation recommends. has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-S

Re: [Pythonmac-SIG] lots of Python-Cocoa errors in XCode console window...

2008-11-03 Thread has
On 3 Nov 2008, at 16:00, Bill Janssen wrote: So, how does the automatic GC in ObjC-2.0 play into this? PyObjC doesn't work with ObjC 2.0's garbage collector. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourc

Re: [Pythonmac-SIG] thanks for PyObjC!

2008-11-10 Thread has
xecutable links against the first framework it finds on the host system, creating a likely source of problems if you're using one version of Python and your users are using another. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appsc

[Pythonmac-SIG] py-appscript 0.19.0 ready

2008-11-19 Thread has
, it's revision 625 of the py-appscript trunk: svn co http://appscript.svn.sourceforge.net/svnroot/appscript/py-appscript/trunk py-appscript-0.19.0 Cheers, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforg

Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-21 Thread has
d little trouble identifying and accessing the UI controls from py- appscript. However, progress has ground to a halt when I tried to change a value in a table view cell. The code is the following: [...] Should work, although hard to say why it isn't without some more detail. A couple

Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-22 Thread has
nsole, that'll let me check for any differences between the events they're sending that might explain it. BTW, your code "app('AppName').windows['Untitled']" fails with AttributeError: Unknown property, element or command: &#x

Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-24 Thread has
changes. I don't have an AppleScript, I'm just doing this with appscript. Ah, right. I misunderstood - I thought you had it working in AppleScript but not appscript. Quick question: is the table field in question editable? (i.e. Can you click in it and type text manually?) Chee

Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-24 Thread has
¬ of splitter group 1 of window "Untitled" to "" return value of text field 1 of row 1 of table 1 of scroll area 3 ¬ of splitter group 1 of window "Untitled" end end Thanks, has

[Pythonmac-SIG] Python 2.6 eggs don't quite build as universal

2008-11-25 Thread has
ow if I can just change 'i386' in the egg's filename to 'ppc', or does it really have to be built under a PPC process? (I can probably build a ppc-only python2.6 interpreter for running on my Intel box, but it won't be tonight.) Thanks, has p.s. Happy py-apps

Re: [Pythonmac-SIG] Modifying table cell content with python-appscript

2008-11-25 Thread has
) on the appscript-users mailing list - you're bound to find some folks there with more GUI Scripting experience than me, and they might have some ideas as well. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net

[Pythonmac-SIG] [ann] Python appscript 0.19.0 (beta 1) released

2008-11-27 Thread has
Python Package Index: http://pypi.python.org/pypi/appscript A Python 3.x-compatible version is currently under development and a file release should be available shortly - see the appscript website for more information. Enjoy, has -- Control AppleScriptable applications from Python

Re: [Pythonmac-SIG] Appscript

2008-12-12 Thread has
ging most popular interpreters as OSA components is a complete PITA due to design shortcomings in both. With Python, you have two very limited options: - Philip Aker's PythonOSA component, which provides basic OSA support only (load/compile/run/store). It has no Apple event integratio

[Pythonmac-SIG] LOLpatents

2008-12-12 Thread has
AND+bridge) Still making my own mind up if I should be worried or amused by it. Not being familiar with the US patent system though, I'm curious if anyone else has any thoughts. Do companies like Apple automatically file patents on everything they write, regardless of whether or not

Re: [Pythonmac-SIG] LOLpatents

2008-12-13 Thread has
and send it off to the USPTO before it stops being a application and starts being awarded? When it comes to software patents, 99 percent of them are bunk. I agree that patents are necessary to let new ideas flourish, but the concept has gone way too far. And especially so in computers. P

Re: [Pythonmac-SIG] appscript Python script preventing logout

2008-12-18 Thread has
ying and unnecessary behaviour; the problem is that the OS will automatically GUI-ify any non-GUI process launched from an application bundle if it calls certain system APIs. Appscript uses the Process Manager to locate applications and get their process ids, and unfortunately that's o

Re: [Pythonmac-SIG] appscript install error

2009-01-30 Thread has
t, otherwise you'll run into the same problem when building other fat projects. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - Pythonmac-SIG@pyt

Re: [Pythonmac-SIG] appscript rocket-in-dock preventing logout

2009-01-31 Thread has
dle incoming events, or prevent the OS from automatically upgrading your python process to a GUI process (which it only does if it knows the executable is located in an application bundle, e.g. Python.app/ Contents/MacOS/python). Regards, has -- Control AppleScriptable

Re: [Pythonmac-SIG] appscript rocket-in-dock preventing logout

2009-01-31 Thread has
On 31 Jan 2009, at 20:18, Bill Janssen wrote: has wrote: ...or prevent the OS from automatically upgrading your python process to a GUI process (which it only does if it knows the executable is located in an application bundle, e.g. Python.app/ Contents/MacOS/python). Thanks! I'

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread has
27;t break any of appscript's existing behaviour. It must be doable: Leopard's Scripting Bridge manages to avoid triggering the upgrade process, and I'm assuming (though have not checked) that it also targets processes by pid. Regards, has -- Control AppleScriptable ap

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-04 Thread has
dock when you use appscript, as Has suggested. [...] Agreed. Today's MacPython is, or should be, a superset of standard *nix Python. OS X is *nix at the shell level, and tools that work on other *nixes ought to work the same on OS X, otherwise you end up in a situation where users have

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

2009-02-21 Thread has
this. BTW, Python modules/extensions are not officially binary compatible across major Python releases, so you should be installing afresh anyway. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net __

Re: [Pythonmac-SIG] appscript path issue

2009-03-05 Thread has
>POSIX paths are converted, I'd suggest writing up a test case in C to confirm the same behaviour there, then submit a bug report to Apple on it as its their APIs that are responsible for it. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sour

Re: [Pythonmac-SIG] How to prevent CommandError -609: connectionInvalid

2009-03-28 Thread has
unexpectedly quitting while handling an event [1], you can modify the timeout delay by adding a 'timeout' keyword argument to your command. See Chapter 11 of the appscript manual for details. HTH has [1] AESendMessage() often reports event timeout errors (-1712) incorrectly as

Re: [Pythonmac-SIG] problem with easy_install appscript

2009-03-29 Thread has
have my suspicions about easy_install's abilities to make the best choice when multiple options are available, but setuptools' shortcomings are a little beyond my ken.) HTH has -- Control AppleScriptable applications from Python, Ruby and Obj

Re: [Pythonmac-SIG] py2app and ipython

2009-05-02 Thread has
Save as 'Application Bundle' format. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Using AHRegisterHelpBook

2009-05-07 Thread has
Or, if futzing with ctypes is too much hassle, consider grabbing the source for the Carbon.AH extension and repackage it as part of the project. This is what I did with Carbon.AE when developing appscript, for example. HTH has -- Control AppleScriptable applications from Python,

Re: [Pythonmac-SIG] [Pyobjc-dev] New beta release for pyobjc: 2.2b2

2009-05-26 Thread has
that library shouldn't be used at all. Guessing it's a Carbon dependency, which in turn is a Cocoa dependency. I've had similar reports from appscript users. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appsc

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

2009-06-01 Thread has
emsend.py", line 82, in send aem.aemsend.EventError: Command failed: Application could not handle this command. (-1708) 2009-05-31 15:42:43.946 ASDictionary[4551:10b] ASDictionary Error 2009-05-31 15:42:43.948 ASDictionary[4551:10b] ASDictionary Error An unexpected error has occurred durin

Re: [Pythonmac-SIG] Problems with appscript

2009-06-11 Thread has
ame.get() Don't suppose you have Default Folder X installed? There's been a couple other recent compatibility reports with that - it's being looked into. has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] [ann] py-appscript 0.20.0 released

2009-06-26 Thread has
Hi all, I am pleased to announce the release of Python appscript 0.20.0: http://pypi.python.org/pypi/appscript Py-appscript 0.20.0 adds support for Python 3.0 and fixes several bugs. Enjoy, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http

Re: [Pythonmac-SIG] appscript with Quicktime - "Connection is invalid' error

2009-06-27 Thread has
Sean DiZazzo wrote: On a whim I tried the 0.20.0 version that was released today. To my surprise, export() has grown a new keyword... timeout! It's actually been around since the early days, although some older documentation wasn't as clear about it. Chapter 11 of the appscrip

Re: [Pythonmac-SIG] Trying to use appscript need some help

2009-06-30 Thread has
a different four-char code), appscript appends an underscore to the application-defined term to prevent any problems. There was a known inconsistency in how older versions of appscript applied these escapes; that has been fixed in the latest appscript and ASDictionary releases, but I've

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread has
o that, depending on whether your Python application is Carbon or Cocoa based, has an event loop or runs in batch mode, uses argvemulation, etc. For more specific advice, provide more details. HTH has -- Control AppleScriptable applications from Python, Ruby an

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread has
On 10 Jul 2009, at 14:45, Brendan Simon (eTRIX) wrote: has wrote: Brendan Simon (eTRIX) wrote: I have an OS X python program that is invoked via a uri on a webpage -- eg. "myapp:command" [...] You need to install an Apple event handler that responds to the GetURL event. Variou

Re: [Pythonmac-SIG] create appscript reference from aedesc

2009-08-01 Thread has
. I don't have time to work on it myself, but could provide a few pointers on where to start looking. How keen are you to get your hands dirty? has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net

Re: [Pythonmac-SIG] Making a Python application scriptable via AppleScript

2009-08-09 Thread has
nd it, this module is designed more to allow Python apps to drive *other* AppleScriptable apps via the OSA. I'm interested in the opposite. I understand that there used to be some modules to support this, but they appear to be deprecated. If it's a PyObjC-based app then use Cocoa Sc

Re: [Pythonmac-SIG] no module named appscript error

2009-08-17 Thread has
self, make sure you're building your application with the same version of Python that you're testing on. Also, make sure any third-party .eggs used by your app are installed in unzipped form (easy_install -Z module_name); py2app currently doesn't work with zipped .eggs. HTH

Re: [Pythonmac-SIG] Using Finder to open app by id

2009-08-23 Thread has
cation_files.ID(u'com.apple.Preview').open() HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] aemreceive/py-appscript and 64-bit

2009-08-25 Thread has
del. Work through the tutorials, and if it's still not clear then ask. If you plan on implementing an AEOM, look into Cocoa Scripting - it's a bit of a clunker (and has been since 10.2), but it's better than nothing. HTH has -- Control AppleScriptable applications from P

Re: [Pythonmac-SIG] Appscript and Snow Leopard

2009-09-08 Thread has
Noel Rappin wrote: I have a Python script that I've been using to communicate back and forth with iTunes via py-appscript -- it's worked fine for a long time. Snow Leopard seems to have broken it -- everytime I run the script, it stops, and then exits, claiming that one of the co

Re: [Pythonmac-SIG] Appscript and Snow Leopard

2009-09-13 Thread has
lling appscript for 2.5, not 2.6, try specifying the exact version of easy_install to use, e.g.: easy_install-2.6 appscript HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonma

Re: [Pythonmac-SIG] Using appscript for GUI interaction, button click

2009-09-13 Thread has
't complete within the allotted timeout period (which should be error -1712, but the Apple Event Manager sometimes returns the wrong code). So does the original AppleScript work? If not, the problem is in what you're trying to do. If it does, then see if the ASTransla

Re: [Pythonmac-SIG] Appscript and Snow Leopard and setuptools...

2009-09-13 Thread has
uptools if it's available and distutils if not. Though if there are problems with setuptools then I'd suggest filing bug reports on that as well. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net

Re: [Pythonmac-SIG] Appscript and Snow Leopard and setuptools...

2009-09-14 Thread has
On 14 Sep 2009, at 16:28, Bill Janssen wrote: has wrote: You can install appscript from source using plain old distutils; the setup.py script will use setuptools if it's available and distutils if not. Though if there are problems with setuptools then I'd suggest filing bug

[Pythonmac-SIG] [ann] appscript 0.20.2

2009-11-18 Thread has
fully this will help. If anything's unclear or incorrect, just let me know and I'll improve it. Enjoy, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - Py

Re: [Pythonmac-SIG] [ann] appscript 0.20.2

2009-11-20 Thread has
lf) so that any time the Apple Event Manager's AECreateAppleEvent function returns a new event with the known-to-be-bad return ID, it chucks it and asks for a fresh one. I really don't have time to work on this right now, but if anyone else wants to have a go and submit

[Pythonmac-SIG] py-appscript 0.20.3

2009-11-24 Thread has
really appreciate it. Thanks, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] py-appscript 0.20.3, 0.21.0 and impending 1.0.0 release (addendum)

2009-11-28 Thread has
o use a non-Apple Python installation and be able to access 10.5/10.6-only APIs (e.g. build your own Python framework?)? Perhaps it's time python.org started distributing framework builds for 10.5 and later? Any thoughts, advice, etc? Thanks, has -- Control AppleScriptable applications fro

[Pythonmac-SIG] can't build extensions for python.org 3.1.1 framework

2009-11-28 Thread has
Ks/MacOSX10.4u.sdk/usr/include/stdarg.h Any relation to the 2.6.3 problems? Or something else? Ta, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - Pythonmac-SIG@pyt

[Pythonmac-SIG] [ann] py-appscript 0.21.0

2009-12-03 Thread has
Python.app icons no longer appear in the Dock when using appscript on Python frameworks built for 10.5+ - Several bug fixes in 64-bit and Python 3.0 support. A new version of the ASDictionary documentation tool has also been released. ASDictionary 0.12.0 addresses occasional launch problems,

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

2009-12-12 Thread has
common cause of poor performance. See chapter 13 of the appscript manual for more information, and post back here if you need more advice. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net _

[Pythonmac-SIG] [ann] py-appscript 0.21.1

2009-12-12 Thread has
Hi all, Just posted a bug-fix release to PyPI that corrects a problem when unpacking Boolean values on Python 3.x. (The 1.0 release date is pushed back accordingly.) Please go beat harder on it. :) has -- Control AppleScriptable applications from Python, Ruby and ObjC: http

Re: [Pythonmac-SIG] Bundlebuilder--why remove it?

2009-12-12 Thread has
Once you've got Xcode building Python-based .app bundles that don't suck, you can look at providing dependency bundling as an extra build phase. Personally, I like py2app and I'm not a huge fan of Xcode for Python development, but the first rule of sustainable OSS development ha

Re: [Pythonmac-SIG] coercing to text (Adam Morris)

2009-12-15 Thread has
her 2% of corner cases that are tricky to fathom, but once you understand what's going on it should be straightforward to rephrase your requests appropriately - in this case by sending a second 'get' command yourself. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] timeout of connection?

2009-12-17 Thread has
) # works just fine > app("EyeTV").stop() #works just fine > > go_do_other_stuff_possibly_in_other_threads_for_a_really_long_time() > > app("EyeTV").play(id) # has no effect Is the EyeTV process running throughout, or does it quit and restart? Are you sure all

Re: [Pythonmac-SIG] timeout of connection?

2009-12-18 Thread has
the command line actually works, which makes setting the AEDebug > environment variable > problematic. Try setting it on EyeTV. http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html#SECAE has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript

Re: [Pythonmac-SIG] Apple event time out with appscript

2009-12-22 Thread has
on-standard timeout, e.g. igor.Do_Script("some command", timeout=1200) HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Python 3 with Cocoa

2010-01-02 Thread has
eloping a program to be used for (human) language educators. Appscript on Python3 works fine here. Try installing the latest PyPI appscript release using Distutils rather than the MacPorts appscript. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC:

Re: [Pythonmac-SIG] Python app with aemreceive is not scriptable

2010-01-04 Thread has
ript Editor: Sounds like you forgot to add an OSAScriptingDefinition entry containing the sdef's filename to your info.plist. Also, bear in mind that sdef-only apps won't work in 10.4 or earlier; if that's a concern then you'll need to provide an aete as well. HTH has -- Con

Re: [Pythonmac-SIG] Python app with aemreceive is not scriptable

2010-01-05 Thread has
Kevin Walzer wrote: > Now my app responds to Apple Events and doesn't complain about a corrupted > dictionary. However, I'm having some additional difficulty. It appears that > Apple Events are bypassing the bundled Python and are going straight to the > Tk framewor

Re: [Pythonmac-SIG] Python app with aemreceive is not scriptable

2010-01-06 Thread has
'd need to pass global/local dicts to it and exchange values via that. For what you're doing though, eval() might be a more appropriate choice. Though personally I'd be looking to add a proper AE API, even if only procedural, so that users can't just run arbitrary code. But t

Re: [Pythonmac-SIG] Integrating aemreceive into a class--help

2010-01-12 Thread has
e.kae.typeUnicodeText) > ) You don't pass self to a bound method in Python. Delete the ('', 'self', ...) tuple. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Integrating aemreceive into a class--help

2010-01-14 Thread has
> Kevin Walzer wrote: > >> You don't pass self to a bound method in Python. Delete the ('', 'self', >> ...) tuple. > > My app crashes when I do that. Here's the error message: > > TypeError: Can't install event handler '

Re: [Pythonmac-SIG] Weird Carbon: gestalt: wxPython issue/bug

2010-02-05 Thread has
ocoa. > As Carbon is deprecated anyway, I guess it's time for gestalt ( or > platform.mac_ver ) to be re-written Python's Carbon modules are deprecated in 2.x and gone in 3.x, so its Carbon.gestalt module is a dead end for Python users. Mac OS X's gestalt APIs are n

Re: [Pythonmac-SIG] Weird Carbon: gestalt: wxPython issue/bug

2010-02-05 Thread has
u consider how they work. Though I still reckon redesigning the code to do all GUI stuff on the main thread will be the best solution for the OP, painful as that might be. Regards, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net _

Re: [Pythonmac-SIG] Storing path as alias

2010-02-21 Thread has
does. Check their docstrings for more information. > I could use NDAlias via pyobjc and get an NSData out. NSURL has a 'bookmark' feature in 10.6+. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___

Re: [Pythonmac-SIG] Storing path as alias

2010-02-22 Thread has
Tobias Weber wrote: > Thanks! I made working examples for both, but I guess the first has > AppleScript limitations like requiring a UI context. No, a Window Manager connection is not required. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC

Re: [Pythonmac-SIG] Issue with DEVONthink and ASDictionary

2010-03-02 Thread has
ASDictionary error logs and send us those if found, I'll add it to my TODO list. Thanks, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - Pythonmac-SIG@pyt

Re: [Pythonmac-SIG] usable references to a remote "System Events" application

2010-03-03 Thread has
p(url='eppc://machine.local/System Events') > > does actually give me a reference. So is there something I'm misunderstanding? app objects don't fetch terminology until you start building a reference or command. HTH has -- Control AppleScriptable applications from Pyt

Re: [Pythonmac-SIG] appscript fails to notice System Events is not running

2010-03-29 Thread has
aviour). See chapter 7 of the appscript manual for more information. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - [email protected] http://mail.python.or

Re: [Pythonmac-SIG] Help getting properties in py-appscript?

2010-04-14 Thread has
neral Python error, as you say. In which case, either pick a different variable name or use 'import appscript' and 'appscript.k.KEYWORD_NAME'. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___

Re: [Pythonmac-SIG] Question on appscript's entire_contents() call

2010-05-03 Thread has
0.6.3) > seems to run 4x slower than on Leopard (10.5.8), discounting hardware > differences. Is there a way for me to setup the appscript > installation to mitigate this performance hit? Have you tried running 32-bit on both to see if it's a 32-/64-bit issue? Otherwise, I'

Re: [Pythonmac-SIG] Keywords <=> Variables in appscript

2010-05-06 Thread has
Adam Morris wrote: > How can one refer to keywords (the k) given a variable? from appscript import * s = 'some_keyword' print getattr(k, s) # k.some_keyword HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.so

Re: [Pythonmac-SIG] Help with py-appscript?

2010-06-19 Thread has
lication "Skim" set r to item 1 of (get selection of note 1 of document 1) get contents of r end tell -- error "Skim got an error: Invalid range." number -1720 from characters 222 thru 286 of text of page 4 of document "points-of-view.pdf" So I would sugg

Re: [Pythonmac-SIG] py-Appscript broken with FileMaker 11?

2010-07-12 Thread has
John Jackson wrote: > I recently upgraded FileMaker to version 11, and discovered that my > python-based application that relies on appscript to control a FileMaker > database has broken. I believe that's a bug in FMP 11, where sending an ascr/gdte (get terminology) event to F

Re: [Pythonmac-SIG] Pythonmac-SIG] AEDesc error: Unsupported Type

2010-07-13 Thread has
Ben Pedersen wrote: > Working with py-appscript to automate testing and I'm getting an error > deep in aemreference/aemcodecs. [...] > > class SuperTest(): > def getProcessHandle(procName="TextEdit"): should read: def getProcessHandle(self, procName=&qu

Re: [Pythonmac-SIG] Appscript unpredictable error

2010-08-05 Thread has
r script was waiting for a reply. I would suggest filing a bug report on QuickTime Player <http://bugreport.apple.com>, ideally including an AppleScript that reproduces the problem. HTH has -- Learn AppleScript, 3rd edition, Sanderson & Rosenthal: http://apress.com/book/view/9781430

<    1   2   3   4   5   >