Re: [Pythonmac-SIG] accessing iPhoto star rating through appscript?

2007-04-19 Thread Simon Brunning
On 4/18/07, Dethe Elza <[EMAIL PROTECTED]> wrote: > On 18-Apr-07, at 2:14 PM, Daniel Thorpe wrote: > > Does anyone know if it's possible to access the star rating of a > > photo from iPhoto using appscript? > You don't strictly need AppleScript for this (unless you want data > that has been change

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-11-29 Thread Simon Brunning
On 11/28/06, Jamie Stuart <[EMAIL PROTECTED]> wrote: > Thanks Simon - I've now got it adding correctly to the playlist but > still can't seem to set the track name. This is what I was attempting: > > convertfile = itunes.convert(addfile) > convertfile.name.set('New Title') H. Perhaps what the

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-11-28 Thread Simon Brunning
On 11/28/06, Jamie Stuart <[EMAIL PROTECTED]> wrote: > Hi, > I'm completely new to Python and something is evading me completely. I'm > using appscript to add (and convert to mp3) a bunch of .aif files to > iTunes. I also want to create a new playlist which they are all added to > and then tagged.

Re: [Pythonmac-SIG] Why Do I Explicitly Need MacPython

2006-09-22 Thread Simon Brunning
On 9/20/06, Bob Ippolito <[EMAIL PROTECTED]> wrote: > > There also > many pre-built easy to install libraries available for 2.4: > http://pythonmac.org/packages/py24-fat/ Are Python 2.5 versions of these forthcoming? I can build most of them myself, but I've never had any sucess building psycopg2.

[Pythonmac-SIG] Setting the Screen Saver

2006-07-18 Thread Simon Brunning
Is there a way of setting the OS X screen saver using Python? The System Preferences ap looks like it's AppleScript (and hence appscript) drivable, but I can't work out how to make it actually change any settings. I've also found the screen saver plist, but it's binary rather than XML, so I'd rat

[Pythonmac-SIG] CD burning

2005-09-30 Thread Simon Brunning
Is it possible to programmatically burn a CD with Python. Or indeed from the shell, as a pinch? -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.or

Re: [Pythonmac-SIG] Connecting to Windows shares

2005-09-22 Thread Simon Brunning
On 9/22/05, Simon Brunning <[EMAIL PROTECTED]> wrote: > I want to use a python script to copy some files from a Windows share > to my Mac. Connecting to a Windows share with Finder is easy, but how > do I do it from a script? (Python 2.4.1 on OSX 10.4.2, if it matters. Found

Re: [Pythonmac-SIG] Connecting to Windows shares

2005-09-22 Thread Simon Brunning
On Thu, 22 Sep 2005 11:36 +0100 (BST), David Hughes <[EMAIL PROTECTED]> wrote: > > If the Windows partition you've attached appears as an 'ejectable' > > drive in the leftmost Finder pane, you can see it and its contents > > under /volumes using a Terminal session. Here, it appears as a > > directo

[Pythonmac-SIG] Connecting to Windows shares

2005-09-22 Thread Simon Brunning
I want to use a python script to copy some files from a Windows share to my Mac. Connecting to a Windows share with Finder is easy, but how do I do it from a script? (Python 2.4.1 on OSX 10.4.2, if it matters. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ ___

[Pythonmac-SIG] Dock menu

2005-09-14 Thread Simon Brunning
On Windows, I've got a few Python scripts that sit in the system tray - . It basically creates a system tray icon with a context menu. The menu is fefined in Python code, and each item has an associated callable that gets called when th

Re: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

2005-09-01 Thread Simon Brunning
On 8/31/05, Robert Kern <[EMAIL PROTECTED]> wrote: > It selects the first executable named "python" in the PATH. The shebang > line requires an explicit executable. For example, Thanks, All. I've got it all working now, with your help. I'm glad to see that the Python Mac community is as beyond-the

Re: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

2005-08-31 Thread Simon Brunning
On 8/31/05, Craig Amundsen <[EMAIL PROTECTED]> wrote: > > Or I can just invoke the /usr/local/bin version explicitly, yes? Seems > > to work... > > > > How do I specify that in a shebang line? I tried "#!/usr/local/bin > > python", but I got a "bad interpreter: Permission denied" error > > message.

Re: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

2005-08-31 Thread Simon Brunning
On 8/30/05, Craig Amundsen <[EMAIL PROTECTED]> wrote: > The python you installed lives in /usr/local/bin. If you want it to > run when you type 'python' at the prompt you need to make sure that > /usr/local/bin is before /usr/bin in your path. Or I can just invoke the /usr/local/bin version explic

Re: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

2005-08-31 Thread Simon Brunning
On 8/30/05, Bob Ippolito <[EMAIL PROTECTED]> wrote: > I think that installer is broken, compile from source. > appscript does not have an installer for 2.4, you'll have to compile > it and its 5 or 6 dependencies. Thanks. I've grabbed source copies of all of these, and I'll have a bash with them t

[Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

2005-08-30 Thread Simon Brunning
Complete and utter Mac newbie here - be gentle with me! Hi, all. I've downloaded and installed MacPython 2.4.1 from undefined.org. It installed happily enough, and seems to run fine. But when I attempt to install PyObjC (from pyobjc-1.3.7-py2.4-macosx10.4.zip) it says that it requires Python 2.4.