AppleScript: move a folder to library (to root) in iTunes
@ArtemG. then I assume that this operation could be done by editing the playlist file that is loaded by iTunes. It should  be located in ~/Music/iTunes/

Information is according to the posts marked as helful over here (https://discussions.apple.com/thread/2439817)