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 |