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

Re: Re. Help with simple grep - Thanks


  • Subject: Re: Re. Help with simple grep - Thanks
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 30 Aug 2008 23:41:09 +0200

Le 30 août 08 à 22:30, Joe a écrit :

[...]

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

Hello Joe,

This one should do the trick:

words of (do shell script "mdls -name kMDItemPixelHeight -name kMDItemPixelWidth -raw " & quoted form of x)


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.

I'm not sure to fully understand what you mean here, but if this involves two "do shell script" invocations, then it always is better (more efficient) to avoid one whenever possible...


HTH,
Axel

_______________________________________________
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: "Mark J. Reed" <email@hidden>
References: 
 >Re. Help with simple grep - Thanks (From: Joe <email@hidden>)

  • Prev by Date: Re: Get path to app without launching it
  • Next by Date: Re: Get path to app without launching it
  • Previous by thread: Re: Re. Help with simple grep - Thanks
  • Next by thread: Re: Re. Help with simple grep - Thanks
  • Index(es):
    • Date
    • Thread