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: Andrew Oliver <email@hidden>
- Date: Thu, 10 Feb 2005 13:24:18 -0800
On 2/10/05 1:02 PM, "Christopher MJ Tangora" <email@hidden>
wrote:
> 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).
'text item delimiters' only come into effect when you coerce a list to text,
or request 'text items of' the text object.
Therefore your code would have worked if you'd said:
set my text item delimiters to return
set the_ls to do shell script "ls"
text items of the_ls
Since that coerces the single text object returned by 'do shell script' into
a list based on the current text item delimiters.
However, as has already been stated, 'paragraphs of' is probably a better
way to go.
Andrew
:)
_______________________________________________
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