A different take on directorywalking
Malte Brill
revolution at derbrill.de
Wed Nov 11 07:54:10 EST 2015
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
--
derbrill IT-service Malte Pfaff-Brill
Alsenstr. 15, d-24768 Rendsburg
Tel: +49 4331-337 640 0
eMail: info at derbrill.de web: http://www.derbrill.de
Steuernummer: 28 015 03865 VAT ID: DE223571286
Bankverbindung: BIC: GENODEF1KIL IBAN: DE87 2109 0007 0088 2849 05 Kieler Volksbank e.G.
Kontoinhaber Malte Pfaff-Brill
More information about the use-livecode
mailing list