iphoto interface

I am fairly new to AppleScript. I am a developer but I do mostly Java and C#.
I want to write an app to sync my iphoto between two computers that get frequent picture updates. I have tried to look for apps that may do that but I haven’t found one clear answer.
Anyways, as I try to accomplish this I have started to look at what the available APIs for IPhoto may be and I haven’t had much luck.
How does one go about finding out what commands a Mac OS X app can take using AppleScript?
Thanks,

–Carlos

You have to look at the “dictionary” of an application. To see the dictionary open Script Editor, under the file menu choose Open Dictionary.