Mac Forums

Mac Forums (
-   OS X - Development and Darwin (
-   -   Launching applescript from bash (

samimk120 09-05-2008 02:01 PM

Launching applescript from bash
i wrote a bash script, renamed it to script.command so the users run it,
then from inside it i call an applescript using "exec osascript XXXX"
all that goes well except a command window
that i am trying to make it close automatically

How ?

xstep 09-08-2008 12:35 AM

I haven't used the exec command before. What is special about it?

What I would try in this case is just; "osascript XXX &". The & symbol will allow you to run the command as a separate process and return to your script immediately. Well, at least from the command line.

You might also be interested in this thread: Basic Terminal Automation.

All times are GMT -4. The time now is 11:33 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.