Octave for macOS: Difference between revisions

(→‎Homebrew: Add note.)
Line 98: Line 98:
In case of trouble, please visit the [https://github.com/spack/spack/issues Spack repo issues list], and browse through Octave related issues by writing <code>is:issue octave</code> in the filters box.
In case of trouble, please visit the [https://github.com/spack/spack/issues Spack repo issues list], and browse through Octave related issues by writing <code>is:issue octave</code> in the filters box.


==Create a launcher app with AppleScript==
== Create a launcher app with AppleScript ==


* Open the "AppleScript Editor" application
Open the "AppleScript Editor" application and write the following text in the editor window:
* write the following text in the editor window:


  tell application "Terminal"
  tell application "Terminal"
Line 107: Line 106:
  end tell
  end tell


or if Octave is in your default path:
(e.g. Homebrew installs Octave to {{Path|/usr/local/bin/octave}} by default) or if Octave is in your default path:


  tell application "Terminal"
  tell application "Terminal"
Line 117: Line 116:
  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)
Then:
 
* Select "Save as ..." from the "File" menu
* 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"
* 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  
To change the application icon:
 
* Open [[:File:Icon.png|this link]] in a web browser, right-click and select "copy image".
* Open [http://wiki.octave.org/File:Icon.png this link] in a web browser, right-click and select "copy image".
* Select "Octave.app" in the Finder, then press {{Key|command-i}} to bring up the file info dialog.
* 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 (in the top left) and press {{Key|command-v}} to paste the Octave icon over it.
* In the file info dialog, select the icon (in the top left) and press command-v to paste the Octave icon over it.


== See also ==
== See also ==