How to turn the list from do shell find into an AS list

Hi Guys,

I have searched the forums for an easy way to transform a list I get from the find command into an AppleScript list object. The lists from find are just single lines liek these:

/Applications/.localized
/Applications/3ivx
/Applications/3ivx/.DS_Store
/Applications/3ivx/forums.3ivx.com
/Applications/3ivx/How To Play AVI Files
/Applications/3ivx/ReadMe.pdf
/Applications/3ivx/Uninstall 3ivx.app
/Applications/3ivx/Uninstall 3ivx.app/Contents
/Applications/3ivx/Uninstall 3ivx.app/Contents/Info.plist
/Applications/3ivx/Uninstall 3ivx.app/Contents/MacOS
/Applications/3ivx/Uninstall 3ivx.app/Contents/MacOS/installer
/Applications/3ivx/Uninstall 3ivx.app/Contents/MacOS/installtoo

and so on. I am sure you get the idea. I am always running find against the full path so there will be a / at the beginning of each line. Now, I thought about delimiters, but on another thread, covering curl responses, it seemed to me that the linefeed ist not enough.

Any suggestion is greatly appreciated.

Thanks,
budy

Ahh, never mind!

set theList to do shell script "find ~/Documents -name \"*.pl\" -print"

already returns a list. I was rather trying to figure out beforehand than simply doing trial and error, but a search on the forum has come up with this.

Thanks,
Stephan

That doesn’t seem to return a list for me - at least an Appescript one. This does however.

set myFind to do shell script "find ~/Desktop -type f -maxdepth 1 \\! -name \".*\" "
set x to (paragraphs of myFind) as list

Hi Chris,

yes, you’re right. I was a bit confident that it would work the way I saw on the other post. Anyway, your suggestion works perfectly.

Thanks a lot,
budy

Chris, I don’t think you need as list on the end of that.