[15 Mar 2006] Using ARexx Return Info in a Hollywood Script

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 591
Joined: Sun Feb 21, 2010 1:28 am

[15 Mar 2006] Using ARexx Return Info in a Hollywood Script

Post by PEB »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 15 Mar 2006 15:58:20 -0800 (PST)

I'm not very good with Arexx, so please excuse what is probably a very obvious question to some of you.

My question is: How can I assign ARexx return information to a variable or a string that I can use in Hollywood?

Example: The OS4 Mixer allows you to use the ARexx command QUERYCARDS to find what cards are installed. But how can I get this information to Hollywood?
User avatar
airsoftsoftwair
Posts: 5914
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[20 Mar 2006] Re: Using ARexx Return Info in a Hollywood Script

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 20 Mar 2006 10:14:37 +0100

Hi Paul

Hollywood does not currently have an ARexx interface. But that is planned for the next version. Until then, do the following:

1) Create an ARexx script that calls QUERYCARDS
2) Write the return values of that call to tmp file, e.g. T:CARDS
3) Open that file with Hollywood, read the contents, and delete it

Pseudo code:

Code: Select all

Execute("rx querycards.rexx")   ; execute querycards.rexx
OpenFile(1, "T:CARDS", #MODE_READ)   ; open file
While Not Eof(1)
    cards$[k] = ReadLine(1)
    k=k+1
Wend
CloseFile(1)
DeleteFile("T:CARDS")
That should do the job quite well.
User avatar
lazi
Posts: 650
Joined: Thu Feb 24, 2011 11:08 pm

[29 Mar 2006] Re: Using ARexx Return Info in a Hollywood Script

Post by lazi »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 29 Mar 2006 10:07:50 +0100

Hello Rev.!

I tried miniampdeluxe from OS4depot (1.1B), but it is stops after an "Could not find interval function 3! ... current line 331" error message.

Code: Select all

The script generated the following output:
  3 *-* address AMPLIFIER.1 'Query Label';
+++ Command returned 10
Maybe I am using a wrong version of Amplifier (2.10).

May I ask you to put some info to the readme about Amplifier. I have not had used this stuff before, and I had to search it.
Locked