Launching applescript from bash

Joined
Sep 5, 2008
Messages
1
Reaction score
0
Points
1
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 ?
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
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.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top