• 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: Creating an environment variable from AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



Philip Aker
email@hidden


 _______________________________________________
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

  • Follow-Ups:
    • Re: Creating an environment variable from AppleScript
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Creating an environment variable from AppleScript (From: "Kumar Shailove" <email@hidden>)

  • Prev by Date: Universal Applications
  • Next by Date: Re: Creating an environment variable from AppleScript
  • Previous by thread: Re: Creating an environment variable from AppleScript
  • Next by thread: Re: Creating an environment variable from AppleScript
  • Index(es):
    • Date
    • Thread