|
|
Starting application with options
|
|
|
|
Fresh-Faced Recruit
Join Date: Jun 2006
Location: Sacramento, CA
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by HeartGabriel
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.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Jun 2006
Location: Sacramento, CA
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
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'."
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by HeartGabriel
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 Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|