[futurebasic] Re: [FB] Dropping folder on application icon

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2009 : Group Archive : Group : All Groups

From: Bernie <fblist.bw@...>
Date: Sat, 25 Jul 2009 09:16:40 +0100
Robert P wrote:

> Step 2. Save the program below in the same location as the  
> Info.plist, and build it.
> '-------------------
> < ... >

And for those who feel more comfortable with FinderInfo and the good  
ol' FSSpecs:
'---------------
local fn DoFinderInfo
'~'1
dim as FSSpec   spec
dim as short    index, count
dim as OSType   type

count = 0
FinderInfo( count, spec, type )
for index = 1 to count
FinderInfo( index, spec, type )
print spec.name
next index
fn ClearFinderInfo()
end fn

on FinderInfo fn DoFinderInfo

do
HandleEvents
until gFBQuit
'---------------

Note: In FB5, FinderInfo also works with FSRefs and CFURLRefs.

Bernie