Welcome, Guest. Please login or register.

Author Topic: What is ARexx? What does it do?  (Read 3585 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline barneyTopic starter

  • Hero Member
  • *****
  • Join Date: May 2008
  • Posts: 555
    • Show only replies by barney
What is ARexx? What does it do?
« on: May 26, 2009, 09:54:43 AM »
What is ARexx?  What does it do?  Thanks.

barney
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: What is ARexx? What does it do?
« Reply #1 on: May 26, 2009, 09:58:39 AM »
Quote from: barney;456304
What is ARexx?  What does it do?  Thanks.

barney


ARexx is an Amiga implementation of the Rexx scripting language. It is a high level interpreted scripting language that allows you to automate tasks in any application that supports it.

Key to this notion are "ARexx Ports". An application opens an ARexx port that an ARexx script can connect to. Once connected, the ARexx interpreter will pass any commands it doesn't directly recognise to the port for the application to interpret.

Most amiga applications that support any form of script based automation use ARexx for the job.
int p; // A
 

Offline Pacman

  • Newbie
  • *
  • Join Date: May 2009
  • Posts: 12
    • Show only replies by Pacman
Re: What is ARexx? What does it do?
« Reply #2 on: May 26, 2009, 10:01:08 AM »
ARexx is an implementation of the REXX language for the Amiga, written in 1987 by William S. Hawes, with a number of Amiga-specific features beyond standard REXX facilities. Like most REXX implementations, ARexx is an interpreted language. Programs written for ARexx are called "scripts", or "macros"; several programs offer the ability to run ARexx scripts in their main interface as macros.

ARexx can easily communicate with third-party software that implements an "ARexx port". Any Amiga application can define a set of commands and functions for ARexx to address, thus making the capabilities of the software available to the scripts written in ARexx.

ARexx can direct commands and functions to several applications from the same script, thus offering the opportunity to mix and match functions from the different programs. For example, an ARexx script could extract data from a database, insert the data into a spreadsheet to perform calculations on it, then insert tables and charts based on the results into a word processor document.
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: What is ARexx? What does it do?
« Reply #3 on: May 26, 2009, 10:04:46 AM »
In short, if an application supports ARexx, you can write an ARexx script to make that application do stuff :)
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline mgerics

  • Sr. Member
  • ****
  • Join Date: Jun 2002
  • Posts: 294
    • Show only replies by mgerics
Re: What is ARexx? What does it do?
« Reply #4 on: May 26, 2009, 10:18:34 AM »
It can do more that just control a program - it can be used to create a stand alone program. It expands the versatility of the Amiga in the hands of a skilled, or at least eager programmer.
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: What is ARexx? What does it do?
« Reply #5 on: May 26, 2009, 10:19:57 AM »
Indeed it can, but you wouldn't want to use it for application development, unless execution speed is not a concern.
int p; // A
 

Offline kzin

  • Jr. Member
  • **
  • Join Date: Sep 2002
  • Posts: 65
    • Show only replies by kzin
    • http://202.78.156.93
Re: What is ARexx? What does it do?
« Reply #6 on: May 26, 2009, 10:36:20 AM »
Quote from: barney;456304
What is ARexx?  What does it do?  Thanks.

barney


I missed rexx on the amiga, so Ive been using ooRexx on my win xp system. It was so much easer to use it to control 7zip to do a back up of my important files each time the computer was turned on, but I suspect the amiga verson has the advantage of specific Arexx ports in lots of programs.
 

Offline barneyTopic starter

  • Hero Member
  • *****
  • Join Date: May 2008
  • Posts: 555
    • Show only replies by barney
Re: What is ARexx? What does it do?
« Reply #7 on: May 26, 2009, 11:23:21 AM »
If I just use my Amiga for occasional gaming, do I really need this running in the background?  Will it speed my Amiga up if I remove it from my startup?

Barney
 

Offline marcfrick2112

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 811
    • Show only replies by marcfrick2112
Re: What is ARexx? What does it do?
« Reply #8 on: May 26, 2009, 11:57:59 AM »
Quote; If I just use my Amiga for occasional gaming, do I really need this running in the background? Will it speed my Amiga up if I remove it from my startup?

I assume you mean the RexxMast program... I really, really doubt removing wil have any effect on the speed of your Amiga....
If you Only play games on your machine, I suppose you could comment out the line that runs RexxMast in your User-Startup...
I would just as soon leave it, you may someday run a program that uses ARexx...  What version of the OS do you have? Cuz the OS 3.9 Workbench has an Arexx port too :) (OS 3.5 too maybe?) Later Amiga Format CD's had a search funtion that would automatically open the CD/sub-directories to the file you were looking for.
---------------
Marc Frick
---------------
A1200T / \'060, 256MB, CD-R, OS3.9
A4000 w/ WarpEngine / 82MB , OS3.1
A4000 16MB, OS 3.9
A1200 , \'030 / 10MB
A1200 (stock)

CD32 :)

...And a very sick 4000T
 

Offline barneyTopic starter

  • Hero Member
  • *****
  • Join Date: May 2008
  • Posts: 555
    • Show only replies by barney
Re: What is ARexx? What does it do?
« Reply #9 on: May 27, 2009, 07:26:31 AM »
I use OS 3.1.  Initially, it didn't have AREXX.  I think I actually added it myself to the User-Startup.  Maybe I will just comment it out and see how my system performs.

Barney
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: What is ARexx? What does it do?
« Reply #10 on: May 27, 2009, 07:56:37 AM »
I don't think turning off ARexx is going to make any noticable difference to your system. The script host uses a very small amount of memory and unless an ARexx script is actually running, consumes slmost no CPU time at all.
int p; // A