Thread: Launching applescript from bash
09-05-2008, 03:01 PM #1
Launching applescript from bash
- Member Since
- Sep 05, 2008
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
09-08-2008, 01:35 AM #2
- Member Since
- Jun 25, 2005
- On the road
- 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.CameraTime - Time lapse photography for novice and advanced users.
When asking questions, post the version of your software. You'll receive better answers.
Please post your results to the thread as it is good feedback.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By V6Pony in forum OS X - Operating SystemReplies: 1Last Post: 06-17-2012, 05:38 PM
By Snipeye in forum OS X - Apps and GamesReplies: 2Last Post: 05-30-2011, 11:09 PM
By Zaush in forum OS X - Apps and GamesReplies: 1Last Post: 11-22-2010, 01:14 AM
By Commander_FarkU in forum OS X - Development and DarwinReplies: 0Last Post: 06-13-2010, 10:32 PM
By fparedesg in forum OS X - Operating SystemReplies: 1Last Post: 08-12-2009, 11:01 PM