Shell script timing, regex
Shell script timing, regex
- Subject: Shell script timing, regex
- From: "Andrew Sasaki" <email@hidden>
- Date: Thu, 1 Dec 2005 17:30:07 -0500
- Thread-topic: Applescript-users Digest, Vol 2, Issue 792
Hi all,
I've got a pair o' questions regarding an AppleScript I've got that grabs some files from an ftp site, downloads them and unzips them.
First, I'm grapping the filepaths using 'curl' and parsing the names via AS. I'd like to be able to throw some mighty regex-fu at them -- and years of BBEdit use have made me comfortable doing so -- but I can't seem to find the right command/syntax combo to make it happen. Sed? Awk? Grep? I'm not sure which to use, and I can't seem to use regex in a shell script against an AS variable and get the processed result back. Man pages have been less than helpful in this regard.
The second issue is that I want to run a second shell script against the downloaded files, and it opens in a new terminal window and starts running before the first shell script is done. Is this as simple as putting the second script in a tell block directed at the first terminal window, or is there A Better Way?
I apologize if these aren't *really* AppleScript questions.
Thanks,
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