File browser extension

Terry Judd tsj at unimelb.edu.au
Mon Jun 21 21:07:41 EDT 2010


You can use files() and folders() to get a list of files and folders in the
default directory and then create a combined listing based on this. If
you're happy enough using generic folder and file icons then it's fairly
trivial (a tabbed field with the file and folder icons set using the
imagesource property). If you want the icons to reflect the file
type/extension then it's more complicated (you really need an external for
this).

Terry...


On 22/06/10 10:31 AM, "Simon Lord" <slord at karbonized.com> wrote:

> Close.  What I'm looking for is a field list that shows you all the
> files and folders in the stacks current directory.  With graphical
> representations of files and folders.  User can simply click the
> folder(s) disclosure icons to expand the view to see what's inside or
> doubleclick to display only the contents of that folder.
> 
> So *not* the answer file.  Just a browsable list field that looks and
> acts kinda like the column list view in OSX finder or the file browser
> as seen in Panic's CODA application.
> 
> http://panic.com/coda/
> 
> The first screenshot at the bottom will give you the idea of what I'm
> looking for.
> 
> On Mon, Jun 21, 2010 at 8:24 PM, Bob Sneidar <bobs at twft.com> wrote:
>> It sounds like you want the folder of the chosen file so:
>> 
>> answer file "Choose a file..."
>> put it into thePath
>> set the itemdelimiter to "/" -- for macs. use \ for windows paths
>> delete the last item of thePath
>> 
>> Bob
>> 
>> 
>> On Jun 21, 2010, at 5:12 PM, Mark Schonewille wrote:
>> 
>>> Hi Simon,
>>> 
>>> Do you mean the "answer file" command? You might want to look it up in the
>>> dictionary.
>>> 
>>> sample:
>>> answer file "Choose a file..."
>>> 
>>> --
>>> Best regards,
>>> 
>>> Mark Schonewille
>>> 
>>> Economy-x-Talk Consulting and Software Engineering
>>> Homepage: http://economy-x-talk.com
>>> Twitter: http://twitter.com/xtalkprogrammer
>>> 
>>> Subscribe to the Economy-x-Talk newsletter at http://qurl.tk/cj
>>> Download Clipboard Link http://clipboardlink.economy-x-talk.com and share
>>> the clipboard of your computer over the local network.
>>> 
>>> On 22 jun 2010, at 01:44, Simon Lord wrote:
>>> 
>>>> I'm wondering out loud if someone has written a file system browser
>>>> extension.  I'm not in the mood to write one myself (remembering my
>>>> prior experience with this).
>>>> 
>>>> Just looking for something I can drop into my stack that allows the
>>>> end user to browse their system looking for images and pass me the
>>>> result.
>>>> 
>>>> If it's brain dead easy in RunRev then I'll proudly wear egg on my
>>>> face (but please point to samples).
>>> 
>>> 
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription
>>> preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne





More information about the Use-livecode mailing list