1 Reply Latest reply on Sep 9, 2011 9:25 AM by Joe ... Ward

    How can an AIR app accept a Drag-and-Drop from iTunes under OS X?

    thephilmccarty

      It works fine, in Windows.  If you drag a track from iTunes, you can find the URL/location of the file.  However the same code doesn't work for iTunes drag-and-drop (I think there's something "strange" to the iTunes clipboard object).  I know it's doable under Cocoa, but have no idea where to begin wtih Air.

       

      http://www.mail-archive.com/cocoa-dev@lists.apple.com/msg17452.html//www.mail-archive.com/cocoa-dev@lists.apple.com/msg17452.html

       

      Alternately, is there a workaround?  Maybe a helper program that detects files dragged into the AIR app and runs in Cocoa... or... ?  I guess if I wanted to slum it I could just analyze the iTunes playlist information from within the app itself but that seems a little yucky especially since the app would have to parse the iTunes XML data each time it opens.

       

      Any help would be greatly appreciated!