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

2009-02-21 Thread tom wible
i've recently installed 2.6 on my minimac pvr, and it raised a unicode issue: under 2.5, the filename returned from an applescript.app is plain text: tomsdvr:/DVR/recordings dvr$ /usr/local/bin/python2.5 Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363

[Pythonmac-SIG] toxic appscript/python?

2008-09-14 Thread tom wible
i have a cgi called from a webpage that seems to break my webserver's file access: an empty file fails: 2008-09-14 11:14:33: (mod_cgi.c.998) CGI failed: Exec format error /DVR/webAccess/cgi-bin/editrecitem.sh but this python/appscript makes itself invisible to my server(lighttpd): 2008-09

Re: [Pythonmac-SIG] Rocketship in the Dock

2008-08-31 Thread tom wible
Apache/mod_python, it hangs. Probably because Apache doesn't run as a normal user so it can't get a GUI context. This is a bummer, I was able i solved that problem by modding the sudoers file: Cmnd_Alias DVR_cmds=/usr/bin/osascript, /DVR/webAccess/scripts/*.sh www ALL=(DVR_ra)NOPA

Re: [Pythonmac-SIG] py-appscript problem in crontab

2008-02-29 Thread tom wible
thanx to all who replied...version control is a major issue in all s/w dev... i'm solving my problem w/ #!/usr/local/bin/python btw, i figured out why i wasn't getting any mail from crontab: no output...d'oh!-} but i can't figure out how to get useful info out: >>> print app(u'/Applications/E

Re: [Pythonmac-SIG] py-appscript problem in crontab

2008-02-29 Thread tom wible
thanx, ned, conflated u with ed;-) ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] py-appscript problem in crontab

2008-02-28 Thread tom wible
i give up: crontab no longer executes python:-P 33 21 * * * /usr/bin/osascript /DVR/scripts/noLiveEyeTV.scpt works fine: From [EMAIL PROTECTED] Thu Feb 28 21:33:02 2008 From: [EMAIL PROTECTED] (Cron Daemon) but 52 21 * * * /DVR/scrip

Re: [Pythonmac-SIG] py-appscript problem in crontab

2008-02-28 Thread tom wible
> version (0.18.1) in both Pythons so why does the python2.5 installer put it in /Lib... & not /System/Lib... anyway? will some system scripts fail if i point /system/lib/current to 2.5? ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://ma

[Pythonmac-SIG] py-appscript problem in crontab

2008-02-27 Thread tom wible
just wrote a script to kill live eyetv: #! /usr/bin/env python from appscript import * app(u'/Applications/EyeTV.app').window[its.name.startswith('EyeTV')].close() and it works great fom the cli, but not in crontab: Subject: Cron <[EMAIL PROTECTED]> /DVR/scripts/noLiveEyeTV.py X-Cron-Env: X-Cro

[Pythonmac-SIG] creating a dictionary for an applescript app?

2007-06-18 Thread tom wible
i'm trying to access a function in an applescript.app i've written...in applescript it's: tell application "playRec" initRecList(false) set recList to listRecDict() -- returns a list of records end tell but i want to do it in py-appscript (so i can use cheetah) but ASTran