From: "James, Roshan (Cognizant)" Date: 2004-04-24T22:11:29+09:00 Subject: Re: How to pass args to Ruby script under SciTE? ------=_NextPartTM-000-39e3d58a-79d5-41d1-8922-63137ffe4e4a Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable //I'm using the Scintilla Text Editor for writing an testing=20 //Ruby scripts. I'm currently writing one that should accept a=20 //single argument when it is run. How can I put such an=20 //argument in SciTE's environment so that when the scripts=20 //references ARGV[0], the first argument is returned from the=20 //environment? You may not like this, but here goes: Take your ruby.properties file (you will find it in the option menu) Now try and find the go command (should be right at the bottom), mine looks like this: command.go.*.rb=3Dd:\roshanj\progs\ruby1.8\bin\ruby.exe $(FileNameExt) Simply edit this to add arguements command.go.*.rb=3Dd:\roshanj\progs\ruby1.8\bin\ruby.exe $(FileNameExt) $(args) Now go to the top of the file and add your args args=3D Of course, this means that you will have to edit ruby.properties and=20 changes args when you need to, but it'll work.=20 Don't say I didn't warn you about not liking it.=20 - rosh ------=_NextPartTM-000-39e3d58a-79d5-41d1-8922-63137ffe4e4a Content-Type: text/plain; name="InterScan_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_Disclaimer.txt" This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com ------=_NextPartTM-000-39e3d58a-79d5-41d1-8922-63137ffe4e4a--