Phtoshop: Save for web via AppleScript ?

Can anyone tell me how to do a “save for web” JPEG quality 50 with given filename with Apple Script ?