• 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: Doug McNutt <email@hidden>
  • Date: Thu, 10 Feb 2005 15:58:30 -0700

Terminal.app has a -s switch in which you can specify s meaning "Return results as AppleScript entities" or something like that.

osascript -s s << END
tell application "Terminal"
   get bounds of front window
end tell
END

will return an AppleScript list something like {123, 456, 789, 912}

Perhaps such a call would work with ls. But I donno how to specify -s in a "do shell script" from the Script Editor.

--
-->  There are 10 kinds of people:  those who understand binary, and those who don't <--
 _______________________________________________
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: Christopher Nebel <email@hidden>
References: 
 >Making a List out of Terminal "ls" command (From: Christopher MJ Tangora <email@hidden>)

  • Prev by Date: Re: HOWTO check if file is completly copied - OS9 (Emmanuel)
  • Next by Date: Re: Image Events Oddity
  • 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