/**
 *  filename: ABApplicationSuite.scriptSuite
 *  created : Thu Apr 11 11:14:27 2002
 *  LastEditDate Was "Tue Sep 30 13:48:24 2003"
 *
 */

{
    Name           = ABApplicationSuite;
    AppleEventCode = "az00";
    UsedFeatures   = (UnnamedArguments);

    Classes = {
        ABApplication = {
            Superclass     = "NSCoreSuite.NSApplication";
            AppleEventCode = capp;

            Attributes = {
                hasUnsavedChanges = {
                    AppleEventCode = azf2;
                    ReadOnly       = YES;
                    Type           = "NSNumber<Bool>";
                };
                selectedRecords = {
                    AppleEventCode = az48;
                    ReadOnly       = NO;
                    Type           = "NSArray";
                };
                meCard = {
                    AppleEventCode = az54;
                    ReadOnly       = NO;
                    Type           = ABPerson;
                };
                defaultCountryCode = {
                    AppleEventCode = az63;
                    ReadOnly       = YES;
                    Type           = "NSString";
                };
            };
            ToOneRelationships  = {
            };
            ToManyRelationships = {
                people = {
                    AppleEventCode           = azf4; /* Same Event code as ABPerson */
                    ReadOnly                 = NO;
                    Type                     = ABPerson;
                    LocationRequiredToCreate = NO;
                };
                groups = {
                    AppleEventCode           = azf5; /* Same Event code as ABGroup */
                    ReadOnly                 = NO;
                    Type                     = ABGroup;
                    LocationRequiredToCreate = NO;
                };
            };
            SupportedCommands     = {
                ABApplicationSuite.Save = "handleSaveScriptCommand:";
            };
        };

        ABRecord = {
            Superclass      = "NSCoreSuite.AbstractObject";
            AppleEventCode  = azf6;
            Attributes = {
                uniqueId = {
                    AppleEventCode = "ID  ";
                    ReadOnly       = YES;
                    Type           = "NSString";
                };
                modificationDate = {
                    AppleEventCode = az34;
                    ReadOnly       = YES;
                    Type           = "NSDate";
                };
                creationDate = {
                    AppleEventCode = az35;
                    ReadOnly       = YES;
                    Type           = "NSDate";
                };
            };
            SupportedCommands = {
                Add = "handleAddCommand:";
                Remove = "handleRemoveCommand:";
            };
        };
        ABPerson = {
            Superclass      = ABRecord;
            AppleEventCode  = azf4;
            Attributes = {
                name = {
                    AppleEventCode = pnam;
                    ReadOnly       = YES;
                    Type           = "NSString";
                };
                title = {
                    AppleEventCode = az39;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                firstname = {
                    AppleEventCode = azf7;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                middlename = {
                    AppleEventCode = az40;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                lastname = {
                    AppleEventCode = azf8;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                suffix = {
                    AppleEventCode = az41;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                maidenname = {
                    AppleEventCode = az42;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                nickname = {
                    AppleEventCode = az43;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                phoneticfirstname = {
                    AppleEventCode = azf9;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                phoneticlastname = {
                    AppleEventCode = az10;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                phoneticmiddlename = {
                    AppleEventCode = az56;
                    ReadOnly       = NO;
                    Type           = NSString;
                };
                birthdate = {
                    AppleEventCode = az11;
                    ReadOnly       = NO;
                    Type           = "NSDate";
                };
                jobtitle = {
                    AppleEventCode = az12;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                homepage = {
                    AppleEventCode = az13;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                note = {
                    AppleEventCode = az37;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                organization = {
                    AppleEventCode = az38;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                department = {
                    AppleEventCode = az55;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                vCardRep = {
                    AppleEventCode = az49;
                    ReadOnly       = YES;
                    Type           = NSString;
                };
                image =  {
                    AppleEventCode = az50;
                    ReadOnly       = NO;
                    Type           = "NSData<Image>";
                };
                company = {
                    AppleEventCode = az51;
                    ReadOnly       = NO;
                    Type           = "NSNumber<Bool>";
                };
            };

            ToManyRelationships = {
                parentGroups = {
                    AppleEventCode           = azf5; /* Same Event code as ABGroup */
                    ReadOnly                 = YES;
                    Type                     = ABGroup;
                };
                phone = {
                    AppleEventCode           = az20; /* Same Event code as Phone */
                    ReadOnly                 = NO;
                    Type                     = Phone;
                    LocationRequiredToCreate = NO;
                };
                email = {
                    AppleEventCode           = az21; /* Same Event code as Email */
                    ReadOnly                 = NO;
                    Type                     = Email;
                    LocationRequiredToCreate = NO;
                };
                aim = {
                    AppleEventCode           = az22; /* Same Event code as AIM */
                    ReadOnly                 = NO;
                    Type                     = AIM;
                    LocationRequiredToCreate = NO;
                };
                jabber = {
                    AppleEventCode           = az23; /* Same Event code as Jabber */
                    ReadOnly                 = NO;
                    Type                     = Jabber;
                    LocationRequiredToCreate = NO;
                };
                msn = {
                    AppleEventCode           = az24; /* Same Event code as MSN */
                    ReadOnly                 = NO;
                    Type                     = MSN;
                    LocationRequiredToCreate = NO;
                };
                yahoo = {
                    AppleEventCode           = az25; /* Same Event code as Yahoo */
                    ReadOnly                 = NO;
                    Type                     = Yahoo;
                    LocationRequiredToCreate = NO;
                };
                icq = {
                    AppleEventCode           = az26; /* Same Event code as ICQ */
                    ReadOnly                 = NO;
                    Type                     = ICQ;
                    LocationRequiredToCreate = NO;
                };
                address = {
                    AppleEventCode           = az27; /* Same Event code as Address */
                    ReadOnly                 = NO;
                    Type                     = Address;
                    LocationRequiredToCreate = NO;
                };
                date = {
                    AppleEventCode           = az52; /* Same Event code as Date */
                    ReadOnly                 = NO;
                    Type                     = Date;
                    LocationRequiredToCreate = NO;
                };
                related = {
                    AppleEventCode           = az53; /* Same Event code as Related */
                    ReadOnly                 = NO;
                    Type                     = Related;
                    LocationRequiredToCreate = NO;
                };
				url = {
					AppleEventCode           = az70; /* Same event code as URL */
					ReadOnly                 = NO;
					Type                     = URL;
					LocationRequiredToCreate = NO;
				};
            };
        };

        ABGroup = {
            Superclass      = ABRecord;
            AppleEventCode  = azf5;
            Attributes = {
                name = {
                    AppleEventCode = pnam;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
            };
            ToManyRelationships = {
                people = {
                    AppleEventCode = azf4; /* Same Event code as ABPerson */
                    ReadOnly       = YES;
                    Type           = ABPerson;
                };
                groups = {
                    AppleEventCode = azf5; /* Same Event code as ABGroup */
                    ReadOnly       = YES;
                    Type           = ABGroup;
                };
            };
        };

        KeyValue = {
            Superclass     = "NSCoreSuite.AbstractObject";
            AppleEventCode = az16;
            Attributes = {
                value = {
                    AppleEventCode = az17;
                    ReadOnly       = NO;
                    Type           = "NSObject";
                };
                label = {
                    AppleEventCode = az18;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                uniqueId = {
                    AppleEventCode = "ID  ";
                    ReadOnly       = YES;
                    Type           = "NSString";
                };
            };
        };
        Phone = {
            Superclass     = KeyValue;
            AppleEventCode = az20;
        };
        Email = {
            Superclass     = KeyValue;
            AppleEventCode = az21;
        };
        AIM = {
            Superclass     = KeyValue;
            AppleEventCode = az22;
        };
        Jabber = {
            Superclass     = KeyValue;
            AppleEventCode = az23;
        };
        MSN = {
            Superclass     = KeyValue;
            AppleEventCode = az24;
        };
        Yahoo = {
            Superclass     = KeyValue;
            AppleEventCode = az25;
        };
        ICQ = {
            Superclass     = KeyValue;
            AppleEventCode = az26;
        };
        Date = {
            Superclass     = KeyValue;
            AppleEventCode = az52;
        };
        Related = {
            Superclass     = KeyValue;
            AppleEventCode = az53;
        };
		URL = {
			Superclass     = KeyValue;
			AppleEventCode = az70;
		};
        Address = {
            Superclass     = "NSCoreSuite.AbstractObject";
            AppleEventCode = az27;
            Attributes = {
                street = {
                    AppleEventCode = az28;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                city = {
                    AppleEventCode = az29;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                state = {
                    AppleEventCode = az30;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                zip = {
                    AppleEventCode = az31;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                country = {
                    AppleEventCode = az32;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                countryCode = {
                    AppleEventCode = az33;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                uniqueId = {
                    AppleEventCode = "ID  ";
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                label = {
                    AppleEventCode = az18;
                    ReadOnly       = NO;
                    Type           = "NSString";
                };
                formattedAddress = {
                    AppleEventCode = az65;
                    ReadOnly       = YES;
                    Type           = "NSString";
                };
            };
        };

    };
    Commands = {
        Save = {
            AppleEventCode       = az15;
            CommandClass         = NSScriptCommand;
            Type                 = ""; /*Return type */
        };
        Add = {
            AppleEventCode       = az44;
            CommandClass         = NSScriptCommand;
            Type                 = ""; /*Return type */
            UnnamedArgument      = {
                    Optional     = NO;
                    Type         = "ABRecord";
            };
            Arguments            = {
                target = {
                    AppleEventCode = az45;
                    Type = NSScriptObjectSpecifier;
                };
            };
        };
        Remove = {
            AppleEventCode       = az46;
            CommandClass         = NSScriptCommand;
            Type                 = ""; /*Return type */
            UnnamedArgument      = {
                    Optional     = NO;
                    Type         = "ABRecord";
            };
            Arguments            = {
                target = {
                    AppleEventCode = az47;
                    Type = NSScriptObjectSpecifier;
                };
            };
        };
            /* Commands for RollOvers ***************************************/
        ActionProperty = {
            AppleEventCode       = az57;
            CommandClass         = NSScriptCommand;
            Type                 = "NSString"; /* Return type */
            ResultAppleEventCode = "utxt";
        };
        ActionTitle = {
            AppleEventCode       = az58;
            CommandClass         = NSScriptCommand;
            Type                 = "NSString"; /* Return type */
            ResultAppleEventCode = "utxt";
            Arguments            = {
                for = {
                    AppleEventCode = az61;
                    Type           = ABPerson;
                    Optional       = NO;
                };
                value = {
                    AppleEventCode = az62;
                    Type           = NSObject;
                    Optional       = NO;
                };
            };
        };
        ActionEnable = {
            AppleEventCode       = az59;
            CommandClass         = NSScriptCommand;
            Type                 = "NSNumber<Bool>"; /* Return type */
            ResultAppleEventCode = bool;
            Arguments            = {
                for = {
                    AppleEventCode = az61;
                    Type           = ABPerson;
                    Optional       = NO;
                };
                value = {
                    AppleEventCode = az62;
                    Type           = NSObject;
                    Optional       = NO;
                };
            };
        };
        ActionPerform = {
            AppleEventCode       = az60;
            CommandClass         = NSScriptCommand;
            Type                 = "NSNumber<Bool>"; /* Return type */
            ResultAppleEventCode = bool;
            Arguments            = {
                for = {
                    AppleEventCode = az61;
                    Type           = ABPerson;
                    Optional       = NO;
                };
                value = {
                    AppleEventCode = az62;
                    Type           = NSObject;
                    Optional       = NO;
                };
            };
        };
            /****************************************************************/
    };
    ValueTypes = {
        Image = "TIFF";
    };
}
