• 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
Shell script timing, regex
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Shell script timing, regex
      • From: Christopher Nebel <email@hidden>
    • Re: Shell script timing, regex
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Copy text to the clipboard
  • Next by Date: Re: Copy text to the clipboard
  • Previous by thread: Re: XCode 2 Applescript app won't launch on 10.2.8
  • Next by thread: Re: Shell script timing, regex
  • Index(es):
    • Date
    • Thread