Re: Re. Help with simple grep - Thanks
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