need help with a script

I need an applescript to export library or playlist in itunes
this is what i think might work, but it doesnt compile right:

tell application "iTunes"
	activate
	do menu menu item "Export Library" of menu "File"
end tell

SC