364
edits
(→Simple Installation Instructions: Some minor typo corrections) |
(→Create a launcher app with AppleScript: remove <code></code> formatting and its buggy behavior) |
||
Line 145: | Line 145: | ||
* Open the "AppleScript Editor" application | * Open the "AppleScript Editor" application | ||
* write the following text in the editor window: | * write the following text in the editor window: | ||
tell application "Terminal" | tell application "Terminal" | ||
do script "/path/to/octave; exit" | do script "/path/to/octave; exit" | ||
end tell | end tell | ||
or if Octave is in your default path: | or if Octave is in your default path: | ||
tell application "Terminal" | tell application "Terminal" | ||
do script "`which octave`; exit" | do script "`which octave`; exit" | ||
end tell | end tell | ||
or if you wish to start the GUI by default, without a terminal: | or if you wish to start the GUI by default, without a terminal: | ||
do shell script "/path/to/octave --force-gui" | do shell script "/path/to/octave --force-gui" | ||
(e.g. Homebrew installs Octave to '/usr/local/bin/octave' by default) | (e.g. Homebrew installs Octave to '/usr/local/bin/octave' by default) |
edits