• 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: how to refer to environment variable in a Terminal do script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to refer to environment variable in a Terminal do script?


  • Subject: Re: how to refer to environment variable in a Terminal do script?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 30 Nov 2007 17:31:48 -0500

On Nov 30, 2007 3:24 PM, Skeeve <email@hidden> wrote:
> osascript <<'END OF SCRIPT'
>     tell app "Terminal"
>         activate
>         do script "export DISPLAY=:0.0;/path/to/toolToRun"

or just

            do script "DISPLAY=:0.0 /path/to/tool/to/Run"

without the 'export' and semicolon.

--
Mark J. Reed <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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >how to refer to environment variable in a Terminal do script? (From: Gonzalo Castro <email@hidden>)
 >Re: how to refer to environment variable in a Terminal do script? (From: Skeeve <email@hidden>)

  • Prev by Date: Re: If statements in Excel
  • Next by Date: Performing a Shell script, works but error message pops up.
  • Previous by thread: Re: how to refer to environment variable in a Terminal do script?
  • Next by thread: Performing a Shell script, works but error message pops up.
  • Index(es):
    • Date
    • Thread