• 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
Re. Help with simple grep - Thanks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Re. Help with simple grep - Thanks
      • From: Axel Luttgens <email@hidden>
    • Re: Re. Help with simple grep - Thanks
      • From: Skeeve <email@hidden>
  • Prev by Date: Re: scope problem
  • Next by Date: Get path to app without launching it
  • Previous by thread: Re: Get sender in Apple Mail
  • Next by thread: Re: Re. Help with simple grep - Thanks
  • Index(es):
    • Date
    • Thread