Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Development and Darwin (http://www.mac-forums.com/forums/os-x-development-darwin/)
-   -   Launching applescript from bash (http://www.mac-forums.com/forums/os-x-development-darwin/122362-launching-applescript-bash.html)

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 10:43 AM.

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