• 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: using a shell variable in an osascript line?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using a shell variable in an osascript line?


  • Subject: Re: using a shell variable in an osascript line?
  • From: LuKreme <email@hidden>
  • Date: Sun, 1 Mar 2009 17:14:55 -0700

On 1-Mar-2009, at 16:27, Mark J. Reed wrote:
I'm a bit confused by the assertion that assignment to a var eats
newlines.  Certainly untrue with shell variables - assignment won't
eat the newlines, though expanding the var unqoted will:

$ wc -l file
      4 file
$ foo=`cat file`
$ echo $foo | wc -l
      1
$ echo "$foo" | wc -l
      4


Interesting. I thought I'd tried that. the CRLF must have been getting mucked up earlier in the assignment rather than the expansion.

--
SUSURRATION: It's a hushed noise. But it hints of plots and secrets
	and people turning to one another in surprise. It's the noise,
	in fact, made just after the sword i withdrawn from the stone
	and just before the cheering starts.

_______________________________________________
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: using a shell variable in an osascript line? (From: "Mark J. Reed" <email@hidden>)
 >Re: using a shell variable in an osascript line? (From: LuKreme <email@hidden>)
 >Re: using a shell variable in an osascript line? (From: "Mark J. Reed" <email@hidden>)
 >Re: using a shell variable in an osascript line? (From: LuKreme <email@hidden>)

  • Prev by Date: Re: using a shell variable in an osascript line?
  • Next by Date: Re: Basic casting question
  • Previous by thread: Re: using a shell variable in an osascript line?
  • Next by thread: Basic casting question
  • Index(es):
    • Date
    • Thread