• 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
Making a List out of Terminal "ls" command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Making a List out of Terminal "ls" command
      • From: Doug McNutt <email@hidden>
    • Re: Making a List out of Terminal "ls" command
      • From: John Stewart <email@hidden>
    • Re: Making a List out of Terminal "ls" command
      • From: Andrew Oliver <email@hidden>
    • Re: Making a List out of Terminal "ls" command
      • From: jj <email@hidden>
  • Prev by Date: Re: Xmail Problems
  • Next by Date: Re: Making a List out of Terminal "ls" command
  • Previous by thread: Re: The future for AppleScript
  • Next by thread: Re: Making a List out of Terminal "ls" command
  • Index(es):
    • Date
    • Thread