[Mono-osx] Access iTunes using C#

Bart Masschelein masschel at gmail.com
Wed Jan 23 15:09:53 EST 2008


Hi guys,

I don't have much time right now, but I had a 'talk' with the  
maintainer of the AppScript project. I will extend the anwer here  
later, but here is some good news already:

---------------
My question:
> I was wondering how feasible/difficult it would be to
> hack/adapt the appscript system to create C# bindings, in
> similar ways as it is done now for ObjC/Ruby/Python?

has's partly answer:

It would certainly be doable (I'm already thinking about doing a Java  
version)(...).

Basically it'd be a case of wrapping the relevant Apple Event Manager  
C APIs in C# (c.f. rb-appscript's rbae.c file), porting objc- 
appscript's 'AEM...' classes to C#, and creating a modified version of  
the osaglue tool to generate glue code for C# instead of ObjC.
----------------

I still have to look at what possibilities there are, since this  
question has raised several paths, and see what the best approach  
would be. Best in two senses: one being rapid results, the other being  
solid solution. Usually they don't really go hand in hand...

I will post some more snippets from has's replies later.

regards,

Bart



On 23 Jan 2008, at 19:18, Manuel de la Pena wrote:

> I believe that should be tackle in the cocoa# project since cocoa  
> has libs that will allow you to access itune, addressbook etc...
>
> -----Original Message-----
> From: mono-osx-bounces at lists.ximian.com [mailto:mono-osx-bounces at lists.ximian.com 
> ] On Behalf Of 8
> Sent: 17 January 2008 20:33
> To: Geoff Norton
> Cc: mono-osx at lists.ximian.com
> Subject: Re: [Mono-osx] Access iTunes using C#
>
>
> Il giorno 17/gen/08, alle ore 20:09, Geoff Norton ha scritto:
>
>> (I havn't looked into how
>> feasible hacking sdp to that would be; you might need to manually  
>> bind
>> all that).
>
> The appscript project has a generator that can produce Ruby, Python  
> or Obj-C bindings for their own AppleScript bridge. Maybe it can be  
> hijacked to produce C# code, too.
>
>  - ∞
>
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx



More information about the Mono-osx mailing list