Editing Talk:Octave for macOS

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 11: Line 11:


:The wiki talk feature is not used widely.  Please consult the mailing list "help@octave.org" for questions about macOS and plotting. [[User:Siko1056|Siko1056]] ([[User talk:Siko1056|talk]]) 18:18, 19 December 2019 (PST)
:The wiki talk feature is not used widely.  Please consult the mailing list "help@octave.org" for questions about macOS and plotting. [[User:Siko1056|Siko1056]] ([[User talk:Siko1056|talk]]) 18:18, 19 December 2019 (PST)
== Helper for Mac ==
I created a little helper to open octave scripts from macs finder in octave GUI editor. I used automater to create an app running a shell script. The shell script looks like this:
  #! /bin/zsh
  # Add path if needed
  path=('/usr/local/bin' $path)
  export PATH
  # create an editor command for each file on command line
  for fi in "$@"
  do
    occmd+=(edit \'$fi\' ";")
  done
  # Run octave with files as arguments and edit files.
  /usr/local/bin/octave --gui --persist --eval "$occmd"
Save this with automator as "Octave Starter" application.
Select one octave ".m" file and open info window and change "open with" to use "Octave Starter".
After this double clicking an octave file will bring up Octave gui with the file opened in editor.
Hope that helps, Georg -- [[Special:Contributions/78.34.194.225|78.34.194.225]] 09:56, 20 February 2023 (UTC)
Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)