[Pythonmac-SIG] Sending files to the trash

2008-03-28 Thread Alex MacCaw
I'm making a cross platform script that sends files to the trash (or recycle bin), but am having trouble with the applescript version: Here's the applescript which I'm trying to generate: tell application "Finder" move path to the trash end tell And the py-appscript version (which doe

[Pythonmac-SIG] Import AppKit (pyobjc) and Cocoa-Python Debug Error

2008-03-28 Thread Dongpyo Hong
Hi all, I am not sure whether this issue was already dealt in here. XCode 3.0 already included python 2.5.1 (I think), and I updated it with 2.5.2 and replaced the installed one with this. Anyway, I couldn't import AppKit and relevant ones from the terminal. In XCode 3.0, when I debug projec

Re: [Pythonmac-SIG] Import AppKit (pyobjc) and Cocoa-Python Debug Error

2008-03-28 Thread Dongpyo Hong
I installed the python-2.5.2 dmg from pythong.org and yes it installed /Library/Frameworks/... And I copied it to /System/Library/Frameworks/.. (I removed / System/... at first, and copied /Library/...) Hmm... reinstall? which one? XCode or Leopard ? By the way, why I cannot import AppKit and

Re: [Pythonmac-SIG] Import AppKit (pyobjc) and Cocoa-Python Debug Error

2008-03-28 Thread Ronald Oussoren
On Friday, March 28, 2008, at 11:40AM, "Dongpyo Hong" <[EMAIL PROTECTED]> wrote: >Hi all, > >I am not sure whether this issue was already dealt in here. > >XCode 3.0 already included python 2.5.1 (I think), and I updated it >with 2.5.2 >and replaced the installed one with this. What exactly di

Re: [Pythonmac-SIG] Import AppKit (pyobjc) and Cocoa-Python Debug Error

2008-03-28 Thread Ronald Oussoren
On Friday, March 28, 2008, at 12:02PM, "Dongpyo Hong" <[EMAIL PROTECTED]> wrote: >I installed the python-2.5.2 dmg from pythong.org and yes it >installed /Library/Frameworks/... >And I copied it to /System/Library/Frameworks/.. (I removed / >System/... at first, and copied /Library/...) > >Hmm

[Pythonmac-SIG] ASTranslate and appscript question

2008-03-28 Thread Robert Pyle
Hi, From a python program, I'm trying to set the input and output gains of a USB audio interface (M-Audio Transit). Using ASTranslate, I've been able to write appscript code to manipulate the "Sound" preference panel of "System Preferences" to find and make note of the current sound inpu

Re: [Pythonmac-SIG] Sending files to the trash

2008-03-28 Thread has
Alex MacCaw wrote: > I'm making a cross platform script that sends files to the trash (or > recycle bin), but am having trouble with the applescript version: > > Here's the applescript which I'm trying to generate: > >tell application "Finder" > move path to the trash >end tell > > An

Re: [Pythonmac-SIG] Sending files to the trash

2008-03-28 Thread Ned Deily
In article <[EMAIL PROTECTED]>, Alex MacCaw <[EMAIL PROTECTED]> wrote: > Here's the applescript which I'm trying to generate: > >tell application "Finder" > move path to the trash >end tell > > And the py-appscript version (which doesn't work): > >app('Finder').move(os.path.abs

Re: [Pythonmac-SIG] ASTranslate and appscript question

2008-03-28 Thread has
Robert Pyle wrote: > What I can't do so far is figure out how to set the gain while the > Transit is selected. When the Transit is the selected default device, > this AppleScript sets the gains as I want: > > - > tell application "Finder" > set volume output volume 100 > set v

Re: [Pythonmac-SIG] ASTranslate and appscript question

2008-03-28 Thread Ned Deily
In article <[EMAIL PROTECTED]>, Robert Pyle <[EMAIL PROTECTED]> wrote: > From a python program, I'm trying to set the input and output gains > of a USB audio interface (M-Audio Transit). Using ASTranslate, I've > been able to write appscript code to manipulate the "Sound" preference > panel

[Pythonmac-SIG] [Help] Where is objc (PyObjc) in Leopard?

2008-03-28 Thread Dongpyo Hong
Dear all, I need some explanation why it is that. A few days ago, I downloaded python 2.5.2 for Mac OS X, and installed it. It goes to /Library/Frameworks/ And I found that Leopard already had one 2.5.1 in /System/Library/Frameworks/... I didn't want to have both, thus I replaced python.frame