hey
is a small public domain scripting utility which works with standard BeOS scripting. It comes with source which you can modify as you wish. If you want your modification in the standard distribution, just drop me a line.
Use it at your own risk.
hey-98MMDD.zip
or by dropping it on Expander
hey
) to home/config/bin
hey v1.2.0, written by Attila Mezei (amezei@mail.datanet.hu)
usage: hey <app|signature> <verb> <specifier_1> <of <specifier_n>>* [to <value>]
[with name=<value> [and name=<value>]*]
where <verb> : GET|SET|COUNT|CREATE|DELETE|GETSUITES|QUIT|SAVE|LOAD|'what'
<specifier> : <property_name> [ '['index']' | '['-reverse_index']' |
'['fromvalue to tovalue']' | name | "name" ]
<value> : "string" | <integer> | <float> | bool(value) | int8(value) |
int16(value) | int32(value) | float(value) | double(value) |
BPoint(x,y) | BRect(l,t,r,b) | rgb_color(r,g,b,a) | file(path)
hey Application '_ABR'
will open the about window of the application.LOAD and SAVE are actually not scripting commands, they are standard BeOS messages. I included them for convenience. E.g. open a file in Application (the path can be relative or absolute):
hey Application load 'file(/boot/home/images/Be.jpg)'
or save it:
hey Application save Window "Be.jpg"
The specifier can be direct, index, reverse index, range or named. Reverse range is not supported. If you enter an index which consists of only digits, you can omit the square brackets:
hey Application get Window 0
hey Application set .... to BPoint(100,100)
Instead use square brackets or quotes:
hey Application set .... to BPoint[100,100]
hey Application set .... to 'BPoint(100,100)'
If the value string contains only digits, it will be considered an int32. If it contains digits and a dot,
a float type is assumed. "true" or "false" can also be used as bools.
hey Network get Messenger
hey Network getsuites
hey Network get Name
hey Network '_ABR'
hey Network get Window [0]
hey Network get Window 0
hey Network get Window "Network"
hey Network getsuites of Window "Network"
hey Network get Title of Window "Network"
hey Network get Frame of Window "Network"
hey Network set Title of Window "Network" to "hey is great"
hey Network set Frame of Window "Network" to 'BRect(0,0,300,300)'
hey Network set Frame of Window "Network" to BRect[0,0,300,300]
hey Network get View 0 of Window "Network"
hey Network getsuites of View 0 of Window "Network"
hey Network get Frame of View 0 of Window "Network"
hey Network get Hidden of View 0 of View 0 of Window "Network"
hey Network get Label of View 5 of View 0 of Window "Network"
hey Network get Value of View 0 of View 2 of View 0 of Window "Network"
hey Network get Text of View 2 of View 2 of View 0 of Window "Network"
hey Network set Frame of View 0 of Window "Network" to 'BRect(0,0,100,400)'
hey Network set Hidden of View 0 of View 0 of Window "Network" to true
hey Network set Label of View 5 of View 0 of Window "Network" to "Restart Something"
hey Network set Value of View 0 of View 2 of View 0 of Window "Network" to 1
hey Network set Text of View 2 of View 2 of View 0 of Window "Network" to "joe"
hey Network quit Window "Network"
hey Network quit