• 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: puzzled by grep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: puzzled by grep


  • Subject: Re: puzzled by grep
  • From: "koenig.yvan" <email@hidden>
  • Date: Mon, 30 Dec 2013 16:20:16 +0100

Thanks

I made tests with the "quoted form" clause with no results.
Of course, the code extracting the two values width and height in a single call is fine but
the really important missing info was the "without altering line endings" clause.

So, I'm glad to see the used syntax wasn’t completely wrong.
I just completely forgot the fact that transferring the extracted data to a variable was changing the line ending by default.

I will keep this "pense-bête" as first item in the folder dedicated to my works in progress.

do shell script "defaults read /Library/Preferences/com.apple.windowserver"
log "1 : " & (result contains return)
--> (*1 : true*)
do shell script "defaults read /Library/Preferences/com.apple.windowserver" without altering line endings
log "2 : " & (result contains linefeed)
—> (*2 : true*)

Yvan KOENIG (VALLAURIS, France) lundi 30 décembre 2013 16:16:52



 _______________________________________________
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: 
 >puzzled by grep (From: "koenig.yvan" <email@hidden>)
 >Re: puzzled by grep (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: puzzled by grep
  • Next by Date: Re: pdftotext
  • Previous by thread: Re: puzzled by grep
  • Next by thread: Executing script by ip address
  • Index(es):
    • Date
    • Thread