Re: using a shell variable in an osascript line?
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 15:30:17 -0700
On 1-Mar-2009, at 13:34, Mark J. Reed wrote:
You misunderstand. "do shell script" is fine, but "do shell script"
within an applescript that's BEING RUN FROM OSASCRIPT is what I called
silly. :) It's already a shell script, just do the shell stuff in the
shell env.
Yeah, ok, I see where you were coming from.
And yes, we covered on run(argv), but then, *after* that, you
indicated you were still having trouble making it work.
Ah, no, I was just replying to Axel and trying to reinforce that what
was being looked for was a generic method that passed shel VARs to
osascript without modifying them.
Skeeve made it clear that to pass the info *completely* untouched, you
have to pass the info directly, without an intervening VAR assignment
since the assigned to a VAR will eat the CRLFs and fold the info into
a single line. In the case of my signatures, that is a problem. In
the vast majority of cases, it would not even be noticeable.
"If [ ]" is apparently ok in bash; other versions of sh fail on it.
Wait, there are still non-bash versions of sh? Where? :)
--
My little brother got his arm stuck in the microwave. So my mom had
to take him to the hospital. My grandma dropped acid this
morning, and she freaked out. She hijacked a busload of
penguins. So it's sort of a family crisis. Bye!
_______________________________________________
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