Changes

47 bytes removed ,  06:43, 16 May 2016
→‎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:
  −
<code>
      
  tell application "Terminal"
 
  tell application "Terminal"
 
   do script "/path/to/octave; exit"
 
   do script "/path/to/octave; exit"
 
  end tell
 
  end tell
  −
</code>
      
or if Octave is in your default path:
 
or if Octave is in your default path:
   −
<code>
   
  tell application "Terminal"
 
  tell application "Terminal"
 
   do script "`which octave`; exit"
 
   do script "`which octave`; exit"
 
  end tell
 
  end tell
</code>
      
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:
   −
<code>
   
  do shell script "/path/to/octave --force-gui"
 
  do shell script "/path/to/octave --force-gui"
</code>
      
(e.g. Homebrew installs Octave to '/usr/local/bin/octave' by default)
 
(e.g. Homebrew installs Octave to '/usr/local/bin/octave' by default)
364

edits