• 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: Exporting shell variables to AppleScripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exporting shell variables to AppleScripts


  • Subject: Re: Exporting shell variables to AppleScripts
  • From: Brian Johnson <email@hidden>
  • Date: Tue, 18 Sep 2007 20:40:43 -0700 (PDT)


Mike,

I would think that "osascript" might hold out some hope, but if you don't get anything better from others, here's how I do it now ...

I wrote an app called peacePipe that is used to connect apache to applescripts. One step in the process is a shell script that talks to an app that builds an AppleEvent to pass to a specified applescript. By building an appropriate shell script & applescript pair, you should be able to pass about anything from the shell universe to the applescript universe. There must be more elegant solutions, but this does work, as I use these "pseudo-CGI" pairs to run things under cron (sick, but works).

Good luck!

peacePipe is available at http://quicksilver.caup.washington.edu/software

  -b.johnson, dept of architecture, university of washington, seattle


On Tue, 18 Sep 2007, Mike wrote:

Is there a way to export shell script variables to AppleScripts? Similar to the 'export' command in bash?

Thanks,

Mike
_______________________________________________
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

_______________________________________________
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
  • Follow-Ups:
    • Re: Exporting shell variables to AppleScripts
      • From: Doug McNutt <email@hidden>
References: 
 >Exporting shell variables to AppleScripts (From: Mike <email@hidden>)

  • Prev by Date: Re: Telling the Finder to only bring one window to the foreground
  • Next by Date: Re: Exporting shell variables to AppleScripts
  • Previous by thread: Exporting shell variables to AppleScripts
  • Next by thread: Re: Exporting shell variables to AppleScripts
  • Index(es):
    • Date
    • Thread