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: 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