Running a .APP from within a shell script (osx)

Member
Posts: 129
Joined: 2009.03
Post: #1
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?
Quote this message in a reply
Member
Posts: 245
Joined: 2005.11
Post: #2
Yes - just use the path to the executable. For example: example.app/Contents/MacOS/example
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #3
If you mean to run it as if double-clicked from the Finder, you can use the open command. open path/to/my.app
Quote this message in a reply
Member
Posts: 129
Joined: 2009.03
Post: #4
Ah yeah, got it working now; many thanks guys. Smile
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  java script using UNITY imaumac 6 6,152 May 16, 2009 08:07 AM
Last Post: imaumac
  What do you think about this free cute doggie script :) Polycount Productions 1 2,357 Apr 7, 2006 04:04 AM
Last Post: Taxxodium
  Running a lua script multiple times... errors on 2nd,3rd etc Joseph Duchesne 10 5,350 Jul 19, 2005 05:01 AM
Last Post: unknown
  Lua: Script glue resources Fenris 5 4,199 Oct 7, 2004 07:24 AM
Last Post: AnotherJake
  Lua: Script help hyperzoanoid 5 4,907 Dec 15, 2002 12:49 PM
Last Post: OneSadCookie