Re: Creating an environment variable from AppleScript
Re: Creating an environment variable from AppleScript
- Subject: Re: Creating an environment variable from AppleScript
- From: Philip Aker <email@hidden>
- Date: Fri, 06 Oct 2006 08:02:47 -0700
On 2006-10-06, at 03:16:03, Kumar Shailove wrote: I am trying to create an environment variable with AppleScript. The script is as follows
do shell script “export retval=1”
I am executing this script with the osascript command with script file path from Terminal. But the script is not able to set the environment variable.
Any clues, what the problem can be?
Here's my Terminal line:
osascript env.scpt "export JOE=1;export BOB=2"
Here's my script:
on run {theArgs} tell application "System Events" activate display dialog (do shell script theArgs & ";env") end tell end run
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden