Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hiddenpremise

macrumors regular
Original poster
Here is the gist of what I am trying to do
Code:
set x to do shell script "ls -a /"
which returns
Code:
".
..
.DS_Store
.vol
Applications
Desktop DB
Desktop DF
Developer
Library
Network
System
Users
Volumes
bin
cores
dev
etc
home
install
mach.sym
mach_kernel
mach_kernel.ctfsys
mnt
net
php.ini
private
sbin
tmp
usr
var"
I then want to get each item that "ls" returns. The way it is returned, every item is on a separate line. There may be more than one word on a line, but it is still the same item, for instance "Desktop DB." Does anyone know how to separate by carriage return (I'm assuming that is \p or \r)?

Thanks much,
Whit
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.