Using "convert" from iTunes with ScriptingBridge
Using "convert" from iTunes with ScriptingBridge
- Subject: Using "convert" from iTunes with ScriptingBridge
- From: "Dave Verwer" <email@hidden>
- Date: Wed, 6 Feb 2008 19:26:34 +0000
I am trying to use ScriptingBridge to control iTunes to convert and
import an aiff file generated by my application, and failing.
I have the file stored as an aiff on disk and the correct file name as
an NSString. I also have an iTunesApplication instance up and working.
However when I add the file name (as NSString) to an NSArray and call
convert with it, nothing crashes but nothing seems to happen.
An iTunes Track is successfully returned from the convert call but if
I NSLog the returned object, I get this:
2008-02-06 19:11:01.317 TunesSampleApp[12073:613] (
)
I have pastie'd the code I am using here (I realise the Array building
could be more efficient but I wanted to make sure i was drop dead
simple for the example):
http://pastie.caboo.se/148337
As far as I can see, there is no documentation about what type the
entries in the NSArray have to be to be accepted by iTunes or any
documentation really on what convert should actually do.
For all I know it could be converting the file but not adding it to
iTunes and just storing it somewhere on the disk? Is there any
documentation other than the sdef and .h files for the API's with
ScriptingBridge?
Thanks in advance
Dave
--
e-mail: email@hidden
web: http://shinydevelopment.com
Shiny Development Ltd. is registered in England, Registration Number:
05805802. Registered Office: 4 Claridge Court, Lower Kings Road,
Berkhamsted, Herts., HP4 2AF.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden