A different take on directorywalking
Malte Brill
revolution at derbrill.de
Wed Nov 11 08:40:31 EST 2015
Hi Mike,
thanks for the reply!
For the Mac I seem to be able to use:
put "find -d tree“ && tPath && "-type f“ into tShellCommand
For Windows of course I forgot to replace the backslashes with slashes.
Not sure if find is available and has the same switches on Linux though…
All the best,
Malte
> I think the issue you are going to run into is going to be the output format. On both Mac and Linux you are going to be using the "ls -R" command.
>
> Do a search on unix ls command and you can see some example outputs in some of the articles.
>
> -= Mike
>
>
>
> On Nov 11, 2015, 7:54 AM, at 7:54 AM, Malte Brill <
> revolution at derbrill.de
> > wrote:
> >
> Hi all,
>
> >
> >
> as the livecode solutions tend to become rather slow if there is a
>
> >
> certain amount of nesting involved, I want to come up with a shell
>
> >
> alternative to directorywalking. something like
>
> >
> >
> — [snip]
>
> >set the hideconsoleWindows to true
> >
> switch
>
> >
> case „win“ is in the platform
>
> >
> put "dir " & tPath && "/b /s /A-D" into tShellCommand
>
> >
> — tPath needs to be a Windows path using backslashes and needs to be
>
> >
> quoted
>
> >
> break
>
> >
> case „linux“ is in the platform
>
> >
> — todo
>
> >
> break
>
> >
> case „mac“ is in the platform
>
> >
> — todo
>
> >
> break
>
> >
> end switch
>
> >
> return shell(tShellCommand
>
> >
> —[snap]
>
> >
> >
> This returns for example:
>
> >
> C:\Users\Malte
>
> >
> Brill\Documents\archaeodox\2013-480\dokumentationsschritte\10\2013-480_ds_10_1.JPG
>
> >
> C:\Users\Malte
>
> >
> Brill\Documents\archaeodox\2013-480\dokumentationsschritte\10\2013-480_ds_10_2.JPG
>
> >
> C:\Users\Malte
>
> >
> Brill\Documents\archaeodox\2013-480\dokumentationsschritte\11\2013-480_ds_11_1.JPG
>
> >
> C:\Users\Malte
>
> >
> Brill\Documents\archaeodox\2013-480\dokumentationsschritte\11\2013-480_ds_11_2.JPG
>
> >
> C:\Users\Malte
>
> >
> Brill\Documents\archaeodox\2013-480\dokumentationsschritte\11\2013-480_ds_11_3.JPG
>
> >
> …
>
> >
> >
> where tpath was:
>
> >
> "C:\Users\Malte
>
> >
> Brill\Documents\archaeodox\2013-480\dokumentationsschritte“
>
> >
> >
> Can anyone help me with the Linux and Mac counterparts. Ideally with
>
> >
> the same output?
>
> >
> >
> Best,
>
> >
> >Malte
>
More information about the use-livecode
mailing list