Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Starting application with options

Starting application with options
Thread Tools
HeartGabriel
Fresh-Faced Recruit
Join Date: Jun 2006
Location: Sacramento, CA
Status: Offline
Reply With Quote
Oct 23, 2006, 04:29 PM
 
Greetings,

Right now, I have an application and in order to run it in full screen I have to open it in terminal with the option "-fullscreen". In Windows, I could do similarly with the command prompt. But in Windows, I could also create a shortcut, go to the properties, and add the option. This way, I could just double-click the icon and have it run as I want it to without having to type in a whole bunch of text. Is there a way I can do this on my Mac?

Thanks in advance.
ltl
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Oct 23, 2006, 04:42 PM
 
Originally Posted by HeartGabriel View Post
Greetings,

Right now, I have an application and in order to run it in full screen I have to open it in terminal with the option "-fullscreen". In Windows, I could do similarly with the command prompt. But in Windows, I could also create a shortcut, go to the properties, and add the option. This way, I could just double-click the icon and have it run as I want it to without having to type in a whole bunch of text. Is there a way I can do this on my Mac?

Thanks in advance.

Yes there is.

In your Terminal app, go to "save as", select "execute this command...", type in your command, save. This will create a .term file you can double click on.
     
HeartGabriel  (op)
Fresh-Faced Recruit
Join Date: Jun 2006
Location: Sacramento, CA
Status: Offline
Reply With Quote
Oct 23, 2006, 04:52 PM
 
Oh, cool!
Thanks.
That'll work very well for now.

But is there any way I can do this without having the terminal open? If not, is there a way I can have the terminal close automatically once I close my application? "exit" just closes the particular terminal window it opened and not the whole application.

To better understand the situation, I'm trying to set this up for a child to use.

Thanks again.
ltl
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Oct 23, 2006, 05:16 PM
 
Append "; killall Terminal" to the command and it'll kill the Terminal process when your app closes.

You could also make an AppleScript that is just 'do shell script "yourcommandhere --fullscreen"' and it'll act as a launcher and close automatically when it's done.

There's no graphical option for command-line arguments because, theoretically, graphical apps should have graphical interfaces. What application is this, anyway?
( Last edited by Chuckit; Oct 23, 2006 at 05:30 PM. )
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Oct 23, 2006, 05:20 PM
 
Originally Posted by HeartGabriel View Post
Oh, cool!
Thanks.
That'll work very well for now.

But is there any way I can do this without having the terminal open? If not, is there a way I can have the terminal close automatically once I close my application? "exit" just closes the particular terminal window it opened and not the whole application.

To better understand the situation, I'm trying to set this up for a child to use.

Thanks again.

You can combine multiple commands into a single command by separating them with semi-colons, so, this should work:

<your command>;killall Terminal
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 09:43 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,