[futurebasic] Re: [FB] ScanFolder and types

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2012 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Tue, 7 Feb 2012 06:13:03 -0500
This is the icky workaround I came up with. 

long if ascan.type = _"fldr"
if UCASE$(right$(ascan.ScanSpec.name$,4)) == ".APP"  then ascan.type = _"APPL"
if UCASE$(right$(ascan.ScanSpec.name$,5)) == ".PLUG" then ascan.type = _"APPL"
end if

No fainting.

On Feb 7, 2012, at 5:28 AM, Robert Covington wrote:

> I have a plugins engine in Compositor and I just rebuilt my demo plugin in Intel. The old one scanned fine. The new does not...
> 
> Now with the new, when I scan for it in Fn ScanFolder, the filetype is not reporting an application...but a folder...and then i get the various parts in the package.
> 
> So while it scans the whole folder, doesn't give me a hit as to the one which is  'APPL'...and thus the scanner is reporting no plugin. And I have no way to launch it.
> 
> What is missing from the plugin plist which might cause this, or what additional do I need to be doing during the scan? 
> 
> I'm almost back to the promised land.
> 
> rc
> 
> '~';
> ascan.ScanSpec   = fSpec
> ascan.ScanIndex  = 0
> ascan.recursive  = _true
> '~';
> 
> while Fn ScanFolder( ascan ) >= 0
> 
> long if ascan.ScanSpec.name$[1] != _"."
> 
> 
> //stop Mki$(ascan.type) 
> 
> select ascan.type // not returning "APPL" type
> 
> case _"CPPI",_"APPL",_"PLUG",_"LPPA",_"GULP" // CPPI is plugin app sig in PLIST 
> 
> ascan.ScanSpec.parID = fSpec.parID
> 
> 
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
> To access the list archives, go to:  http://freegroups.net/groups/futurebasic/
>