• 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: "Mark J. Reed" <email@hidden>
  • Date: Sun, 31 Aug 2008 09:13:50 -0400

On Sat, Aug 30, 2008 at 5:41 PM, Axel Luttgens <email@hidden> wrote:
>        words of (do shell script "mdls -name kMDItemPixelHeight -name
> kMDItemPixelWidth -raw " & quoted form of x)

If you run that in a Terminal, you won't be able to see the separator
(it's a nul character), so it'll look like the width and height are
jammed together into a single value, but AppleScript can see the
delimiter fine.

An easy way to separate the values in the Terminal is to use xargs -0:

mdls -name kMDItemPixelHeight -name kMDItemPixelWidth -raw | xargs -0 echo


--
Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >Re. Help with simple grep - Thanks (From: Joe <email@hidden>)
 >Re: Re. Help with simple grep - Thanks (From: Axel Luttgens <email@hidden>)

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