Re: software update
Re: software update
- Subject: Re: software update
- From: Courtney Schwartz <email@hidden>
- Date: Tue, 18 Jan 2005 17:20:04 -0500
Since the pieces of text you want are not in uniform places throughout
the listing, it might require a bit of experimentation to account for
all of the cases, but I would recommend either a "do shell script" with
a little sed and awk, or maybe a Python script. In any case, it's
string manipulation you're after... so whatever helps you achieve that
end. :)
What I would look for is what field (index position in terms of words)
and line your text is on, to see if there is any pattern to that, and
then build for that case with error handling for the exceptions...
For example, it appears like you can largely take the second field of
every line beginning with a ! character, as long as you check for a
com.apple.whatever structure that may need to be trimmed from the
beginning of the string, and maybe a [required] that needs to be
trimmed from the end.
This is pretty straight-forward with a sed/awk statement (to me), but
you obviously want to go with whatever language you'll (and your
colleagues/inheritors) understand best and will be most maintainable...
Is vanilla AppleScript what you're looking for, then, or is a mix with
'do shell script' okay with you?
Courtney Schwartz
On Jan 18, 2005, at 4:22 PM, Martha I. Espinosa wrote:
Yes, parsing it...
At 4:22 PM -0500 1/18/05, Courtney Schwartz wrote:
I thought Martha was asking how to parse out the software version
names, not how to install them... or am I mistaken?
_______________________________________________
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