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: Fri, 27 Feb 2009 18:07:44 -0700
On 27-Feb-2009, at 14:15, Mark J. Reed wrote:
$ export HELLO="World"
$ HELLO="There" osascript -e 'system attribute "HELLO"' 2>/dev/null
There
$ echo "$HELLO"
World
That's pretty nifty, actually.
But passing the value as an argument, accessible via the run handler's
parameter list, seems to be the cleanest solution. Thanks, Skeeve.
Agreed. That's the best solution offered so far.
--
I love as only I can, with all my heart
_______________________________________________
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