Running a .APP from within a shell script (osx)
Is it possible?
I've got 'testme.sh' as a text file, and it just has in it "path/to/my.app" (without quotes).
When I run it from within Terminal, it just says my.app is a folder. Which, I get why it's saying that, but I just want to run it, not browse it; is that possible to ddo within a shell script?
I've got 'testme.sh' as a text file, and it just has in it "path/to/my.app" (without quotes).
When I run it from within Terminal, it just says my.app is a folder. Which, I get why it's saying that, but I just want to run it, not browse it; is that possible to ddo within a shell script?
Blog - http://bit.ly/mrqwak
Games - http://bit.ly/mrqwakgames
Twitter - http://www.twitter.com/mrqwak
Yes - just use the path to the executable. For example: example.app/Contents/MacOS/example
If you mean to run it as if double-clicked from the Finder, you can use the open command. open path/to/my.app
Ah yeah, got it working now; many thanks guys.
Blog - http://bit.ly/mrqwak
Games - http://bit.ly/mrqwakgames
Twitter - http://www.twitter.com/mrqwak
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| java script using UNITY | imaumac | 6 | 5,402 |
May 16, 2009 08:07 AM Last Post: imaumac |
|
| What do you think about this free cute doggie script :) | Polycount Productions | 1 | 2,103 |
Apr 7, 2006 04:04 AM Last Post: Taxxodium |
|
| Running a lua script multiple times... errors on 2nd,3rd etc | Joseph Duchesne | 10 | 4,877 |
Jul 19, 2005 05:01 AM Last Post: unknown |
|
| Lua: Script glue resources | Fenris | 5 | 3,875 |
Oct 7, 2004 07:24 AM Last Post: AnotherJake |
|
| Lua: Script help | hyperzoanoid | 5 | 4,160 |
Dec 15, 2002 12:49 PM Last Post: OneSadCookie |
|

