Making a List out of Terminal "ls" command
Making a List out of Terminal "ls" command
- Subject: Making a List out of Terminal "ls" command
- From: Christopher MJ Tangora <email@hidden>
- Date: Thu, 10 Feb 2005 16:02:29 -0500
Hi Folks,
I'm trying to make a piece to an applescript that will make a list of
the contents of a folder using a shell, not the Finder. I know you can
do it with the finder, but when I try to do it with a shell script I
get a string, not a list. I can not get a text item delimiter to
separate the info into a list either.
I thought it would be as easy as this...
set AppleScript's text item delimiters to ASCII character 13
set List_Shell to do shell script "ls /Users/Me/Desktop/A"
But it wasn't. I tried a variety of different ASCII characters, but
they none seemed to work. Anybody know of a way to do this or should I
just accept failure and use the Finder command.
I also tried adding in ...
set List_List to List_Shell as list
but that didn't do anything either (hoping the Text Item Delimiter
would come into effect when I tried making it a list, but no luck).
All help appreciated.
Thanks in advance.
Chris
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
There are no property taxes on church-owned orphanages in Chicago.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden