Search the web
Sign In
New User? Sign Up
ymedev · Yahoo! Music Engine Developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Trying to Write Playlist Information to a Local File from a Web Plu   Message List  
Reply | Forward Message #1144 of 1169 |
I am trying to replicate one of the great features of the MusicMatch
software within YME, and I am running into a brick wall.

MusicMatch has the ability to export information about any playlist in
a variety of formats (text, XLS, etc.). Some formats have lots of
detail, some very little. YME does not seem to have that feature.

I saw the Excel plug-in, but it does not do everything that the old
MusicMatch exports would do, plus it relies on a pesky automation
interface to Excel. I am an OpenOffice user and would rather not rely
on Excel.

Here is the problem: I am writing a web plug-in, and I have the basic
playlist information loaded up and working. I can get the ToXML
function to work, and I can get specific columns of data about the
playlist.

My problem is that I cannot figure out how to write this great data
out to a file. It might be some kind of security setting for web-based
plug ins, but I cannot find a way to write a local file with the XML
or the playlist data in a tab-separated format. If there is no
workaround I might simply have the plug-in write the information to a
text box. I can always copy-and-paste from the text box into a text
editor, but that seems silly.

The techniques I have used so far include trying to create an ActiveX
File System Object using the following statement:
fso = new ActiveXObject("Scripting.FileSystemObject");
I get an error that it cannot create the ActiveX object.

I also tried using the built-in ExportPlaylist2 function, but it
always returns "false" (unable to complete the export).

Any ideas about what might work here? I thought the web plug-ins
operated in a "trusted" zone where we would have access to file I/O.
If not, I guess I will have to copy-and-paste or work on a DLL-based
plug-in.

--Alex




Sun Aug 5, 2007 11:59 pm

alexsbrownpmp
Offline Offline
Send Email Send Email

Forward
Message #1144 of 1169 |
Expand Messages Author Sort by Date

I am trying to replicate one of the great features of the MusicMatch software within YME, and I am running into a brick wall. MusicMatch has the ability to...
Alex S. Brown, PMP
alexsbrownpmp
Offline Send Email
Aug 6, 2007
12:21 pm

I could be wrong, but I don't think you're going to be able to get File I/O access from a web plugin. IE (and most browsers) typically block that even in...
Pell, Blake B.
blake_pell2002
Offline Send Email
Aug 6, 2007
1:47 pm

One possible approach is to have a web site return the reformatted result set, though I don't know what YMJ would do with the returned data....
Lucas Gonze
lucas_gonze
Offline Send Email
Aug 6, 2007
3:47 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help