Re: Making a List out of Terminal "ls" command
Re: Making a List out of Terminal "ls" command
- Subject: Re: Making a List out of Terminal "ls" command
- From: John Stewart <email@hidden>
- Date: Thu, 10 Feb 2005 17:07:08 -0500
On 02/10/05 at -0500 Christopher MJ Tangora said this
> 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).
set List_Shell to every paragraph of (do shell script "ls /Users/me/Desktop/A")
There's no need to use text item delimiters.
JBS
--
A day without sunshine is like - night.
_______________________________________________
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