|
|
| version 1.39, 2003/11/15 07:10:03 | version 1.40, 2003/11/24 20:44:14 |
|---|---|
| Line 93 pascal OSErr OpenAppleEventHandler(const | Line 93 pascal OSErr OpenAppleEventHandler(const |
| DescType rtype; | DescType rtype; |
| AEKeyword key; | AEKeyword key; |
| AEDescList dlist; | AEDescList dlist; |
| OSErr err = noErr; | |
| if(!AEGetParamDesc(event,keyDirectObject,typeAEList,&dlist)) { | if(!AEGetParamDesc(event,keyDirectObject,typeAEList,&dlist)) { |
| AECountItems( &dlist,&ct ); | AECountItems( &dlist,&ct ); |
| for( i=1;i<=ct;i++ ) { | for( i=1;i<=ct;i++ ) { |
| pp=&fsc; | pp=&fsc; |
| if (!AEGetNthPtr( &dlist,i,typeFSS,&key,&rtype,(Ptr)pp,(long)sizeof(FSSpec),&len)) { | if (!AEGetNthPtr( &dlist,i,typeFSS,&key,&rtype,(Ptr)pp,(long)sizeof(FSSpec),&len)) { |
| setDropFile(fsc, i-1); | err = setDropFile(fsc, i-1); |
| } | } |
| } | } |
| AEDisposeDesc( &dlist ); | AEDisposeDesc( &dlist ); |
| } | } |
| return( 0 ); | return(err); |
| } | } |