• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Making a List out of Terminal "ls" command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Making a List out of Terminal "ls" command (From: Christopher MJ Tangora <email@hidden>)

  • Prev by Date: Re: Making a List out of Terminal "ls" command
  • Next by Date: Scripting Inkpad
  • Previous by thread: Re: Making a List out of Terminal "ls" command
  • Next by thread: Re: Making a List out of Terminal "ls" command
  • Index(es):
    • Date
    • Thread