script0011   [plain text]


//
// script0011
//
//		KCSetAttribute
//
// Adding an Internet Password to an empty Keychain and
// set 5 attributes & retrieve them
//	Description (desc)
//	Comment (icmt)
//	Label (labl)
//	Creator Type (crtr)
//	File Type (type)
// 
35 KCNewItem
   Input Arguments : 4
     Class : inet
     Creator : meme
     Data : /19/Internet Password 1
   Results : 2
     OSStatus 0
     ItemIndex : 0
3 KCMakeKCRefFromFSSpec
   Input Arguments : 1
      KeychainFile : test0011.001
   Results : 2
      OSStatus 0
      KeychainIndex : 0
14 KCCreateKeychain
   Input Arguments : 2
      KeychainIndex : 0
      Password : Apple
   Results : 2
      OSStatus 0
      KeychainIndex : 0
8 KCUnlock
   Input Arguments : 2
     KeychainIndex : 0
     Password : Apple
   Results : 1
     OSStatus 0
13 KCSetDefaultKeychain
   Input Arguments : 1
     KeychainIndex : 0
   Results : 1
     OSStatus 0
41 KCAddItem
   Input Arguments : 1
     ItemIndex : 0
   Results : 1
     OSStatus 0
36 KCSetAttribute
   Input Arguments : 2
     ItemIndex : 0
     Attribute : 
     .tag : desc
     .data : /21/Description Attribute
   Results : 1
     OSStatus 0
36 KCSetAttribute
   Input Arguments : 2
     ItemIndex : 0
     Attribute : 
     .tag : icmt
     .data : /17/Comment Attribute
   Results : 1
     OSStatus 0
36 KCSetAttribute
   Input Arguments : 2
     ItemIndex : 0
     Attribute : 
     .tag : labl
     .data : /15/Label Attribute
   Results : 1
     OSStatus 0
36 KCSetAttribute
   Input Arguments : 2
     ItemIndex : 0
     Attribute : 
     .tag : crtr
     .data : /4/meme
   Results : 1
     OSStatus 0
36 KCSetAttribute
   Input Arguments : 2
     ItemIndex : 0
     Attribute : 
     .tag : type
     .data : /4/yuyu
   Results : 1
     OSStatus 0
37 KCGetAttribute
   Input Arguments : 2
     ItemIndex : 0
     Attribute : 
     .tag : desc
     .data : /25/0000000000000000000000000
   Results : 3
     OSStatus 0
     Attribute : 
     .tag : desc
     .data : /25/Description Attribute0000
     ActualLength : 21
37 KCGetAttribute
   Input Arguments : 2
     ItemIndex : 0
     Attribute : 
     .tag : icmt
     .data : /17/00000000000000000
   Results : 3
     OSStatus 0
     Attribute : 
     .tag : icmt
     .data : /17/Comment Attribute
     ActualLength : 17
37 KCGetAttribute
   Input Arguments : 2
     ItemIndex : 0
     Attribute : 
     .tag : labl
     .data : /15/000000000000000
   Results : 3
     OSStatus 0
     Attribute : 
     .tag : labl
     .data : /15/Label Attribute
     ActualLength : 15
37 KCGetAttribute
   Input Arguments : 2
     ItemIndex : 0
     Attribute : 
     .tag : crtr
     .data : /5/00000
   Results : 3
     OSStatus 0
     Attribute : 
     .tag : crtr
     .data : /4/meme
     ActualLength : 4
37 KCGetAttribute
   Input Arguments : 2
     ItemIndex : 0
     Attribute : 
     .tag : type
     .data : /4/0000
   Results : 3
     OSStatus 0
     Attribute : 
     .tag : type
     .data : /4/yuyu
     ActualLength : 4
37 KCGetAttribute
   Input Arguments : 2
     ItemIndex : 0
     Attribute : 
     .tag : type
     .data : /2/00
   Results : 3
     OSStatus 0
     Attribute : 
     .tag : type
     .data : /2/yu
     ActualLength : 2
37 KCGetAttribute
   Input Arguments : 2
     ItemIndex : 0
     Attribute : 
     .tag : clas
     .data : /4/0000
   Results : 3
     OSStatus 0
     Attribute : 
     .tag : clas
     .data : /4/inet
     ActualLength : 4
45 KCUpdateItem
   Input Arguments : 1
     ItemIndex : 0
   Results : 1
     OSStatus 0
46 KCReleaseItem
   Input Arguments : 1
     ItemIndex : 0
   Results : 1
     OSStatus 0
6 KCReleaseKeychain
   Input Arguments : 2
      KeychainIndex : 0
   Results : 1
      OSStatus 0