Octave for macOS: Difference between revisions
no edit summary
(=Level1= is intended for the page title) |
No edit summary |
||
Line 64: | Line 64: | ||
*Follow [https://github.com/mxcl/homebrew/wiki/installation Homebrew's installation instructions]. | *Follow [https://github.com/mxcl/homebrew/wiki/installation Homebrew's installation instructions]. | ||
*[http://mxcl.github.com/homebrew/ Homebrew] has good support for Octave. To install Octave, type {{Codeline|<nowiki>brew install octave</nowiki>}} at the Terminal's command line. Octave has many dependencies which will be downloaded and installed prior to Octave. The entire installation process can take a few hours. | *[http://mxcl.github.com/homebrew/ Homebrew] has good support for Octave. To install Octave, type {{Codeline|<nowiki>brew install octave</nowiki>}} at the Terminal's command line. Octave has many dependencies which will be downloaded and installed prior to Octave. The entire installation process can take a few hours. | ||
==Create a launcher app with AppleScript== | |||
* Open the "AppleScript Editor" application | |||
* write the following text in the editor window: | |||
<code> | |||
tell application "Terminal" | |||
do script "/path/to/octave; exit" | |||
end tell | |||
</code> | |||
* Select "Save as ..." from the "File" menu | |||
* In the menu that appears, select "Application" from the "File format" menu, | |||
then navigate to the "Applications" folder and save your script there as "Octave.app" | |||
To change the application icon | |||
* Open [http://www.octave.org/wiki/images/9/96/Icon.png this link] in a web browser, right-click an select "copy image" | |||
* Select "Octave.app" in the Finder, then press command-i to bring up the file info dialog | |||
* In the file info dialog select the icon and press command-v to paste the Octave icon over it |