Re. Help with simple grep - Thanks
Re. Help with simple grep - Thanks
- Subject: Re. Help with simple grep - Thanks
- From: Joe <email@hidden>
- Date: Sat, 30 Aug 2008 13:30:31 -0700
I'm sorry if this is a triple post. The first two try never showed up
- anywhere.
Thanks to all who responded to my question. Charles, Jon, Mark and
Ronald, thank you.
I went with Mark's grepless solution, but I learned a lot more about
grep, nevertheless.
Jon, I discovered I have a copy of your smartString - Downloaded
sometime ago. I'm going to give it a go with another project I'm
working on.
The (important) part of my script is this - And one last question.
set x to POSIX path of (choose file)
set y to do shell script "mdls -name kMDItemPixelHeight -raw " &
quoted form of x
set z to do shell script "mdls -name kMDItemPixelWidth -raw " &
quoted form of x
set thewookie to {y, z}
-->{"188", "500"}
Could I make a one-liner from the two "do shell script" statements?
Sort of like this:
set y to do shell script "mdls -name kMDItemPixelHeight -raw -name
kMDItemPixelWidth -raw " & quoted form of x
but returning a list of two values rather than -->"188
I know I could have them on one line separated with a semicolon, but
wouldn't that be the same as as two lines in this instance.
Joe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden