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

2008-03-02 Thread Ned Deily
In article <[EMAIL PROTECTED]>, tom wible <[EMAIL PROTECTED]> wrote: > 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/EyeTV.app').window[its.name.beginswith('EyeTV')].close

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 Leonardo Santagada
On 29/02/2008, at 14:21, Christopher Barker wrote: > Personally, I'd really like to see versioning somehow built into > python > itself (and python packages -- eggs solve some of this), then you > could > distribute a script that could declare which versions of python a > script > was known

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

2008-02-29 Thread Christopher Barker
Leonardo Santagada wrote: > And you also make the user know that they are not welcome to install > python were he wants... It all depend in who the "user" is, and who the "author" is. > Try to at least put #!/usr/bin/env python2.5 if all you want is limit > the python to a specific version,

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 Leonardo Santagada
On 29/02/2008, at 01:51, Christopher Barker wrote: > #!/usr/local/python2.5 > > or > > #!/Library/Frameworks/Python.framework/Versions/2.5/bin/python > > I like to do that anyway with production code, as it makes it clear > which python the script was tested against. And you also make the user

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

2008-02-28 Thread Christopher Barker
Ned Deily wrote: > In your first posting, your script was written using /usr/bin/env: > > #! /usr/bin/env python > > That leaves you at the mercy of whatever PATH has been set to. > Suggest you change the cron table entry to explicitly invoke the python > you want, so (all on one line, of cou

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

2008-02-28 Thread Ned Deily
In article <[EMAIL PROTECTED]>, tom wible <[EMAIL PROTECTED]> wrote: > 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 > Fro

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

2008-02-28 Thread Ned Deily
In article <[EMAIL PROTECTED]>, tom wible <[EMAIL PROTECTED]> wrote: > > 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? The python installed under /Sy

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

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

2008-02-28 Thread has
On 27 Feb 2008, at 22:49, tom wible wrote: > 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: > [...] > X-Cron-Env

[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