Here is the gist of what I am trying to do
which returns
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
Code:
set x to do shell script "ls -a /"
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"
Thanks much,
Whit