is no simple way to embed a Python installation within an
AppleScript applet. If you're doing that, you might as well all the way
and deploy your script as a full Mac application with Python libraries
bundled using a tool like py2app.
--Kevin
--
Kevin Walzer
Code by Kevin
On 1/25/19 5:44 AM, Ronald Oussoren via Pythonmac-SIG wrote:
These APIs are not available through PyObjC at this time. Why do you
want these APIs instead of the higher level APIs in AppKit?
Since these are C API's, it should be possible to access them through
ctypes, yes?
--
Kevin W
552f is not in range [U+; U+10]
I am not certain of how to proceed. Please advise.
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
h
e for this to work because
of Tk's architecture. I don't think that calling Tk from Cocoa is feasible.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
___
Pythonmac-SIG ma
ac OS, which is very old and buggy in terms of event loop
integration; these kinds of overloads were not uncommon with that
version (8.5). Try updating your build to 8.6.6 and see what happens;
it's a lot more stable.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by
s one who used Build Applet back
in the day, but it's probably been 10 years).
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
___
Pythonmac-SIG maillist - Pythonmac-S
g this exact issue but I did see similar
things with "ghost windows" hanging around in a system menu after being
destroyed. You may want to update your installation of Tk.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://w
and why you are using it
instead of codesign, but in my experience setting a signature size, i.e.
--signature-size 9400, sometimes fixes codesign failures.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmob
syntax because it looks to be
malware) saw this popup:
I saw that too, but I suspect Brendan simply mistyped the domain.
startssl.com is a valid CA for codesigning certs, and they have the
lowest-cost certificates in the business.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
does not recognize certificates from authorities other than
Apple--not sure if codesign itself would flag a signature as non-valid
if the cert was not issued by Apple's developer group.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmob
jects that will deployed elsewhere, it's
probably better to use a new installation. However, for casual
programming, the system Python is fine.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobileso
ture: i386
The certificate is a .p12 file that was imported with KeyChain.app to
the System destination keychain.
This works for me:
codesign --deep --signature-size 9400 -f -s "Developer ID Application:
Kevin Walzer" cbk/QuickWho.app
I use cx_freeze in this app, not py2app, but this
require using
their Python as well.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
https://mail.python.org/mailman/listin
ation; and supporting 64-bit Python. I bet you can run the
installer package from the GUI, as well, since it's not an old package
like wxPython 2.8.
Hope this helps,
Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobileso
ython referenced in the stack trace,
it's 2.8, not the 2.9. one you installed. 2.8 is 32-bit only. Looks like
Python is confused about which version to load. You may simply want to
remove the 2.8 one altogether to avoid the conflict.
--Kevin
--
Kevin Walzer
Code by Ke
a more official capacity, as the
maintainers, but that's my two cents.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
h
Parallels are two Qt apps that do a better job with the UI.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org
ow, I don't think Nokia has much to do with it (again
I could be wrong!) but still seems active.
Phil Thompson earns his living dual-licensing PyQt (commercial and GPL),
just as TrollTech did. Moving to LGPL would probably hurt his revenue.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile
after Digia took over Qt?
My impression is that it was now an orphan.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http
indow flag. See
http://doc.qt.digia.com/qq/qq18-macfeatures.html for particulars.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
Wxpython bug, that is.
Sent from my iPhone
On May 27, 2013, at 11:26 AM, Charles Hartman wrote:
> I'm coming back to all of this after years away, so I'm sure I'm missing
> something simple. I've brought an old app into the current world:
>
>Python 2.7.5
>OS 10.8.3
>wxPython 2.9
I've observed this with the wxPy demo...may be a ex bug.
Sent from my iPhone
On May 27, 2013, at 11:26 AM, Charles Hartman wrote:
> I'm coming back to all of this after years away, so I'm sure I'm missing
> something simple. I've brought an old app into the current world:
>
>Python 2.7.
its documentation can be found via "man say".
The overhead of pyobjc isn't necessary here.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
___
Pythonmac-SIG ma
() failed with errno=1
3/30/13 7:04:02.119 PM DeFisheye: DeFisheye Error
Some linking error to libpng, apparently. This wouldn't seem to have
anything to do with the Cocoa linking issue in py2app.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
IDE) follow Windows/Linux design patterns and jam every
conceivable function into a toolbar button; the result is an
incomprehensible, overwhelming mess.
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
using the X11 version of
Gtk...even Gimp now runs natively on OS X.
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.py
. Simple but adequate for my needs.
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo
an
my own installation in /Library/Frameworks? I don't want to have to
rebuild Python to achieve this effect, but my previous experience with
py2app suggests that it's the only way to make sure py2app doesn't
vaccum up the /Library/Framework bits.
--Kevin
--
Kevin
cific tool. You should switch to the target
platform and try building there.
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
un
27;s wrapped
with py2app, the executable is the actual app name (actually, the stub
executable created by py2app, but which is renamed to match your app).
You shouldn't expect to see anything but what you are seeing.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
__
On 10/31/12 9:49 PM, w...@mac.com wrote:
Where should I have been looking to find that for myself, please?
The Tk man pages discuss special menus, including the Apple menu; I
figured it out in Tkinter by Googling for snippets.
Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
On 10/31/12 5:48 PM, w...@mac.com wrote:
applemenu = Menu(menubar, tearoff = FALSE)
Add the apple name to the menu object, cf:
applemenu = Menu(menubar, tearoff = FALSE, name='apple')
That works for me.
--
Kevin Walzer
Code by Kevin
http://www.codeb
On 10/10/12 11:26 PM, Ned Deily wrote:
A Python patch could go here:
http://bugs.python.org/issue15853
Patch submitted. The preferences dialog no longer crashes for me.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG
On 10/10/12 10:02 PM, Kevin Walzer wrote:
I've been stepping through the IDLE source code and it appears IDLE is
crashing during the LoadConfigs() call of the config dialog. Still have
more investigating to do, but I'm hopeful I can come up with a
workaround that will keep things fro
level with calls to update, after idle, etc. It may take some trial and
error here to get that working.
If I'm successful, where should I submit a patch?
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist
On 10/10/12 7:38 PM, Ned Deily wrote:
Look at the dump file I attached to the Tk issue. It has a complete
debug trace through Tk including C line numbers.
My stack trace is completely different, so I'm not sure where to look.
--
Kevin Walzer
Code by Kevin
http://www.codebykevi
ion
sendEvent:] + 5772
47 Tk 0x0b0c591e 0xb00 + 809246
48 Tk 0x0b0c5ca6 0xb00 + 810150
49 Tcl 0x0a07c2d1 Tcl_DoOneEvent + 180
50 _tkinter.so 0x00593ef3 Tkapp_MainLoop + 355
(_tkinter.c:
P.S. To fire the prefs dialog, type Command-, or command-comma. That is
the default keybinding even though I did not explicitly enable it in the
script.
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pyt
ut it doesn't. Please try it to confirm.
At this point I'm not sure what else to suggest.
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mail
s preferences
method is calling into tk::mac::ShowPreferences, then it shouldn't crash
unless Wish is also crashing. I don't know what to say if something
crashes in Python/Tkinter but not in Tk.
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_
veTcl, you won't see
this fix, because ActiveState hasn't incorporated it yet. The fix was
committed in the past month or so, I believe, as part of the input
method patch submitted by Adrian Robert.
--Kevin
--
Kevin Walzer
Code by Kevin
http:/
it's still
available.
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/op
away.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
anyone tell me what I'm doing wrong.
I prefer pack to grid. Try this:
mainframe.pack(fill=BOTH, expand=YES)
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.
y have a similar API, but they are not
identicial (cf. you can't set the foreground for them without creating
an entirely custom stule; they pick up platform defaults much better,
though).
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
You may have better luck asking on a wxPython ML...
Sent from my iPhone
On Aug 15, 2012, at 12:24 PM, Mark Livingstone
wrote:
> No ideas?
>
> On 12 August 2012 13:31, Mark Livingstone wrote:
>> Hi Guys,
>>
>> I finally dragged myself kicking and screaming into the current
>> millennium, and
Additions, so I'm not sure.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
?
If you post a copy of your code, it would be easier to figure out what's
going on.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-
ue with my own apps, which
crash when someone has an outdated osax installed--there's no workaround
other than to ask the end user to remove or update the library.)
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillis
doOpenFile(sys.argv[1])" needs to be wrapped in some
sort of try statement to guard against the app being launched without a
file argument, but clearly what you want to do can be done. The opendoc
event is still useful for dragging the file to the app icon in the Dock,
regardles
launches, and any openDocument event was probably
> handled BEFORE the first line of my python code is
> executed.
>
> So none of this is any help to me. My users expect to
> double click on a .ctpx document to launch the application
> AND open that document for editing.
>
&
ently. I
contributed documentation on all these commands to the Tk man pages:
http://www.tcl.tk/man/tcl8.6/TkCmd/tk_mac.htm
The commands are documented for Tk 8.6, but they are all present in the
Cocoa-based version of Tk 8.5 from ActiveState as well, so you may find
some useful things to look at he
has received some openDocument events
or until a timeout occurs).
You can set a CFBundleTypeExtension key in your info.plist file to
indicate that your app can handle a certain type of document via
double-click.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
On 5/4/12 9:42 PM, Kevin Walzer wrote:
I'm getting quite frustrated with the app store's brain dead auto-scan
tool that doesn't see proper symlinks in the framework, and I'm getting
to the point where I am going to investigate other packaging tools that
don't set
framework structure--cx_freeze and/or pyinstaller. No
blame to py2app here, of course. I appreciate your advice and support.
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http
On a related note, does anyone else have a Python app in the Mac App
Store? Have you encountered issues with uploads or approvals? How are
you setting up py2app? My recent headaches getting the app uploaded have
been a real curveball, because I have had any issues previously.
Thanks in adva
archive is generated in the process though I can't be sure)--but
that's a separate issue I'll have to take up with Apple. :-(
Thanks,
Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pyth
On 4/30/12 9:35 AM, Charlie Clark wrote:
--semi-standalone (-s) depend on an existing installation of Python
Not an option in my case, alas, but thanks for the suggestion. --K
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac
manually later in my build script, but it's a pain and I'd
rather have py2app not strip them out in the first place.
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@p
ndard library,
since these functions pre-date OS X running on top of Unix; or, if you
are really in need of specific functionality offered by one of the
Carbon modules, code your own C wrapper library or use Ctypes.
--
Kevin Walzer
Code by Kevin
http://www.codebykevi
bk/Phynchronicity_intel.app cbk/Phynchronicity.app
...and so on.
Hope this helps,
Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Marking the AppleEvent
API as "legacy" is not, in my view.
3. There's no real alternative to appscript in Python, unless you shift
to running AppleScripts via a shell command (osascript) or use one of
the "approved" Cocoa API's via PyObjC. I'm not sure either of t
if you decide to add this capability to py2app, I'm sure other folks
would find it useful.
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/list
On 11/8/11 11:41 PM, Kevin Walzer wrote:
Is there any way I can get this executable linked to
/System/Library/Frameworks/Cocoa.framework? I didn't think
install_name_tool would do the trick, as that just rewrites links,
rather than adding them. A
Any suggestions are appreciated.
I solve
name_tool would do the trick, as that just rewrites links,
rather than adding them. A
Any suggestions are appreciated.
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://
eeing this issue now after building matplotlib,
then it's logical to assume that matplotlib may have been linked to the
wrong library. You can change the linking by running install_name_tool
to get matplotlib to point to the correct version of Tk.
--Kevin
--
Kevin Walzer
Cod
ts to me that you are not running the code as an application
wrapped by py2app, but just in the bare Python interpreter--that's why
the title is "Python." If you want the app name, try wrapping it with
py2app.
--
Kevin Walzer
alog point somewhere else? If so, where?
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
On 8/9/11 1:21 PM, Michael Foord wrote:
This is a change from previous versions of OS X. Is this known, and is
it an issue? (I chown'd everything back to me to get round it.)
I don't believe it is a change. /Library and /System/Library are owned
by the system, not you.
--
Kevin W
o yes.
And still not compiling. This is an issue because argv_emulation is set
to true.
Thanks
Carl
IIRC, argv_emulation doesn't work in 64-bit because it depends on
deprecated API's in Carbon that were not ported to 64-bit.
--
Kevin Walzer
Code by Kevin
http:/
about this in more depth here:
http://www.codebykevin.com/opensource/app-store.html. This article
doesn't mention Python (it focuses instead on Tk), but most of it is
applicable, and can be supplemented by what I've outlined in this e-mail.
Hope others find this useful,
K
ne on with both Tk and Tkinter's integration of
the Cocoa version of Tk.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-s
e3ab9
PyRun_SimpleFileExFlags + 489
21 com.codebykevin.quickwho-cbk0x00015856 start + 19074
22 com.codebykevin.quickwho-cbk0x000159c8 main + 229
23 com.codebykevin.quickwho-cbk0x00010e08 start + 52
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevi
. What other
options are there? Specify your GUI by hand? Use the XML format from
GNUStep? (Renaissance, I think)?
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://m
such
as 10.5.1 or even 10.4.x?
A package built on 10.5.x should run fine on 10.5.x. Backwards
compatibility (building on 10.5, running on 10.4) can be done but is a
bit tricky. Others on the list can help with that.
Good luck!
Kevin
--
Kevin Walzer
Code by Kevin
http://www.
Snack is a Tkinter wrapper for the Snack sound library. You'll need to
install TkSnack in your site-packages path and Snack in a place where
Tkinter can find it like /Library/Tcl. Google can direct you to download
sites.
--
Kevin Walzer
Code by Kevin
http://www.
apps in Python,
I'm taking a careful look.
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.p
any binary extensions, which obviously won't run on the Mac.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://
On 10/15/10 4:56 AM, BjornJohansson wrote:
Hi,
I understood that py2app can only produce mac .apps when run on macosx and
not linux.
Is this correct?
/bjorn
That's correct.
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevi
such a patch in ActivePython?
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options
coa)?
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
you know, I've also
filed patches on IDLE to make it lay nicer on Tk-Cocoa.
Again, thanks for the work you do. Thanks also to Ned Deilly for his
contributions, bug reports, patches, etc.
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
__
On 6/1/10 11:06 AM, Kevin Walzer wrote:
Does anyone have any idea what might cause my framework build of Python
to see sys.path only in the build directory of one of my apps? I don't
typically jigger my Python settings with .pth files so I have no idea
what to look for.
I solved the pr
ypically jigger my Python settings with .pth files so I have no idea
what to look for.
TIA,
Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listin
her things).
So, I assume I need to build my own osx packages of 2.7 linking against
Tk 8.6 to achieve this?
Thanks,
Stephen
Yes, most likely. I believe the binary installers from Python.org still
link against 8.4 by default--anything else requires you to build your own.
--Kevin
--
Kevin Walz
eopard) and I don't see any crashes; I'm not able to reproduce this
error. You might actually want to consider filing a bug with Apple,
because this type of crash is coming from deep within Python or Tk's
internals--not in your code.
--Kevin
--
Kevin Walze
ssume that means it didn't work and I'll need a mac?
Mike
py2app only works on the Mac...
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/li
st who can post
links to standalone PyQt apps wrapped with py2app that run on Leopard?
Thanks,
Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinf
n/convert" in the app
but then when convert calls Ghostscript (gs) it can't find IT in /bin/sh.
Suggestions?
Thanks,
Dan
Why wouldn't you just use the full path to gs as well? /path/to/gs
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_
On 3/3/10 5:33 AM, Ned Deily wrote:
The main problem before was 64-bit Tk availability. IIRC, the only real
game in town for that was the Apple-supplied 8.5 in 10.6 which
apparently pulled in from the TkAqua Cocoa/64-bit port project (which
now may be a part of 8.6?). Kevin Walzer was
my first attempt to build an app. Did
you get any response to this question?
Thanks,
-Bill
http://wiki.python.org/moin/MacPython/BundleBuilder
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@py
in any way, so use at your own risk...)
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
olution here may be to recompile Tcl/Tk with different headerpad
flags, which I don't have time to do.)
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
On 1/25/10 1:52 PM, Christopher Barker wrote:
Kevin Walzer wrote:
py2app may be more powerful than BundleBuilder, but it is also a
complex, fragile beast. It consists of several different packages,
requiring both a) a deep understanding of OS X mach-o internals and
how libraries/load paths/dyld
ks
fine with Python 2.x, and I see no reason why it can't work with Python
3.x, with some modification (it's removed from 3.x). When I move my own
platform to Python 3.x in the future, I will likely start a separate
BundleBuilder 3.x project.
--Kevin
--
Kevin Walzer
Code by Kevi
On 1/12/10 2:13 PM, has wrote:
Kevin Walzer wrote:
You don't pass self to a bound method in Python. Delete the ('', 'self',
...) tuple.
HTH
One more follow-up:
The code now works! I run this code in Script Editor:
tell application "QuickWho"
t('Default')
quickwhoApp.getInfo()
aemreceive.installeventhandler(getDomain,
'CoKvdman',
('', 'domain', aemreceive.kae.typeUnicodeText)
)
app = quickwhoApp(None)
app.mainloop()
This
execute
*any* Tcl code, but aemreceive allows you to provide a real AppleScript
interface to Python commands (you don't have to call raw Python code
from AppleScript). There's a richer Tcl interface to Apple Events called
TclAE, but it's more low-level and complex, and and it'
On 1/10/10 3:08 PM, Kevin Walzer wrote:
What's the best way to structure the command so that it can be seen from
AppleScript, i.e. run in the proper scope and not return an error?
Never mind about the scope question--I found that simply adding the
aemreceive bits and the custom fun
ript "fooApp.runCommand(\"inputstring\")"
end tell
returns this error:
NameError: name 'fooApp' is not defined
What's the best way to structure the command so that it can be seen from
AppleScript, i.e. run in the proper scope and not return an error?
--Kevin
--
Kevin
1 - 100 of 373 matches
Mail list logo