# Scite and rubyw

**URL:** <https://rubytalk.org/t/scite-and-rubyw/36340>\
**Category:** ruby-talk\
**Created:** [21 March 2007 19:30 UTC](https://rubytalk.org/t/scite-and-rubyw/36340 "2007-03-21T19:30:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidy1](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@aidy1](https://rubytalk.org/u/aidy1)\
**Post date:** [21 March 2007 19:30 UTC](https://rubytalk.org/t/scite-and-rubyw/36340/1 "2007-03-21T19:30:10Z")

</div>

Hi,

I aiming to run a script within scite, but I am trying to hide the  
command shell.

Is there anyway I can associate the rubyw interpreter with scite to  
achieve this on a windows platform?

I have tried to change the file properties to rubyw.exe, and also  
adding rubyw.exe the Ruby system path

aidy

---

<div class="post-metadata">

**Author:** ![Aur\_Saraf](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@Aur\_Saraf](https://rubytalk.org/u/Aur_Saraf)\
**Post date:** [21 March 2007 19:45 UTC](https://rubytalk.org/t/scite-and-rubyw/36340/2 "2007-03-21T19:45:58Z")

</div>

Scite is very customisable.

I think it's in global options or in ruby options that you can choose  
to associate commands with menu options (and optionally give them  
shortcuts).

I had once options for "run", for "run debugger" AND for "run with rubyw".

Aur

> **···**
>
> On 3/21/07, aidy.lewis@googlemail.com \<aidy.lewis@googlemail.com\> wrote:
> 
> > Hi,
> > 
> > I aiming to run a script within scite, but I am trying to hide the  
> > command shell.
> > 
> > Is there anyway I can associate the rubyw interpreter with scite to  
> > achieve this on a windows platform?
> > 
> > I have tried to change the file properties to rubyw.exe, and also  
> > adding rubyw.exe the Ruby system path
> > 
> > aidy

---

<div class="post-metadata">

**Author:** ![mitchell2](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mitchell2](https://rubytalk.org/u/mitchell2)\
**Post date:** [22 March 2007 02:54 UTC](https://rubytalk.org/t/scite-and-rubyw/36340/3 "2007-03-22T02:54:17Z")

</div>

Hi,

> I aiming to run a script within scite, but I am trying to hide the  
> command shell.
> 
> Is there anyway I can associate the rubyw interpreter with scite to  
> achieve this on a windows platform?

In your ruby.properties:

command.go.$(file.patterns.rb)=rubyw.exe $(FileNameExt)

Take care,  
-Mitchell;

---

<div class="post-metadata">

**Author:** ![Chris6](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@Chris6](https://rubytalk.org/u/Chris6)\
**Post date:** [22 March 2007 12:55 UTC](https://rubytalk.org/t/scite-and-rubyw/36340/4 "2007-03-22T12:55:05Z")

</div>

I have it set up two handle both so when I execute an \*.rb file it  
executes with ruby.exe and  
when I execute a \*.rbw it executes with rubyw.exe

The SciTe site has details on setting up commands in the properties  
file.

cheers  
Chris

> **···**
>
> On Mar 21, 10:54 pm, mitchell \<mforal.n...@gmail.com\> wrote:
> 
> > Hi,
> > 
> > \> I aiming to run a script within scite, but I am trying to hide the  
> > \> command shell.
> > 
> > \> Is there anyway I can associate the rubyw interpreter with scite to  
> > \> achieve this on a windows platform?
> > 
> > In your ruby.properties:
> > 
> > command.go.$(file.patterns.rb)=rubyw.exe $(FileNameExt)
> > 
> > Take care,  
> > -Mitchell;

---

<div class="post-metadata">

**Author:** ![Chris6](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@Chris6](https://rubytalk.org/u/Chris6)\
**Post date:** [22 March 2007 14:30 UTC](https://rubytalk.org/t/scite-and-rubyw/36340/5 "2007-03-22T14:30:05Z")

</div>

Since a "picture" is worth a thousand words, here's the commands I  
have in my ruby.properties:

&nbsp;&nbsp;command.go.\*.rb=ruby -w $(FileNameExt) $(1) $(2) $(3) $(4)  
&nbsp;&nbsp;command.go.subsystem.\*.rb=1  
&nbsp;&nbsp;command.go.\*.rbw=rubyw -w $(FileNameExt) $(1) $(2) $(3) $(4)  
&nbsp;&nbsp;command.go.subsystem.\*.rbw=1  
&nbsp;&nbsp;command.help.$(file.patterns.rb)=$(CurrentWord)!c:\chris\ruby\doc  
\ProgrammingRuby.chm  
&nbsp;&nbsp;command.help.subsystem.\*.rb=4  
&nbsp;&nbsp;command.name.1.$(file.patterns.rb)=Check Syntax  
&nbsp;&nbsp;command.1.$(file.patterns.rb)=ruby -cw $(FileNameExt)  
&nbsp;&nbsp;command.name.2.$(file.patterns.rb)=Code Profiler  
&nbsp;&nbsp;command.2.$(file.patterns.rb)=ruby -r profile $(FileNameExt)  
&nbsp;&nbsp;command.name.3.$(file.patterns.rb)=Code Formatter  
&nbsp;&nbsp;command.3.$(file.patterns.rb)=ruby -w U:/Chris/chris/dev/rbeautify/  
rbeautify.rb $(FileNameExt)  
&nbsp;&nbsp;command.name.4.$(file.patterns.rb)=RubyScript2Exe  
&nbsp;&nbsp;command.4.$(file.patterns.rb)=ruby -w U:/Chris/chris/dev/rs2exe/  
rubyscript2exe.rb $(FileNameExt)  
&nbsp;&nbsp;command.name.5.$(file.patterns.rb)=Ri Docs  
&nbsp;&nbsp;command.5.$(file.patterns.rb)=ri.bat $(CurrentWord)  
&nbsp;&nbsp;command.name.6.$(file.patterns.rb)=VisualuRuby Help  
&nbsp;&nbsp;command.6.$(file.patterns.rb)=rubyw -e "exec('start C:/chris/ruby/doc/  
VRuby/vrswin-en.chm')"  
&nbsp;&nbsp;command.name.7.$(file.patterns.rb)=FRi Docs  
&nbsp;&nbsp;command.7.$(file.patterns.rb)=fri.cmd $(CurrentWord)

cheers  
Chris
