Editing Octave para macOS
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 75: | Line 75: | ||
octave --gui | octave --gui | ||
{{Note| | {{Note|The entire installation process can '''take up to a few hours'''. Octave has many dependencies which will be downloaded and installed prior to Octave.}} | ||
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 the Script Editor == | ||
For example Homebrew installs Octave to {{Path|/usr/local/bin/octave}} by default. From the [https://support.apple.com/guide/terminal/open-or-quit-terminal-apd5265185d-f365-44cb-8b09-71a064a42125/mac Terminal] application you can enter the command <code>which octave</code> to find out the exact location. | |||
If you know the installation location, open the [https://support.apple.com/guide/script-editor Script Editor] application and write the following text in the editor window: | |||
do shell script "/usr/local/bin/octave --gui" | do shell script "/usr/local/bin/octave --gui" | ||
if you wish to start the Octave GUI by default. If you want to start the Octave command-line interface (CLI), enter instead: | |||
tell application "Terminal" | tell application "Terminal" | ||
Line 93: | Line 93: | ||
end tell | end tell | ||
or if Octave is in your default path: | |||
tell application "Terminal" | tell application "Terminal" | ||
Line 99: | Line 99: | ||
end tell | end tell | ||
Finally: | |||
* | * With a script open in the Script Editor app on your Mac, choose "File > Export". | ||
* | * 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 [[: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. | ||
* In | * In the file info dialog, select the icon (in the top left) and press {{Key|command-v}} to paste the Octave icon over it. | ||
== | == See also == | ||
* [[Octave for macOS (outdated)]] | * [[Octave for macOS (outdated)]] contains old installation instructions. | ||
== | == Footnotes == | ||
<references/> | <references/> |