%!PS-Adobe-1.0 %%Creator: devps (Pipeline Associates, Inc.) %%CreationDate: Thu Sep 11 15:23:56 1997 %%Pages: (atend) %%DocumentFonts: (atend) /X{exch}def /r{rmoveto}def /m{moveto}def /l{lineto}def /rl{rlineto}def /lc{yc X xc X l st}def /mc{yc X xc X m}def /el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}def /ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}def /sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}def /st{stroke}def /gs{gsave}def /gr{grestore}def /cp{currentpoint}def /np{newpath}def /ct{curveto}def /m0{0 0 moveto}def /BP{/devps-save save def m0}def /EP{ clear devps-save restore showpage}def /res 10.000000 def /V{res neg div 792 add currentpoint pop X m}def /H{res div currentpoint X pop moveto}def /h{res div 0 r}def /v{res neg div 0 X r}def /xc{res div}def /yc{res neg div 792 add}def /S{X H show}def /psize 10 def /height 1 def /slant 0 def /FF{findfont X dup 12 div setlinewidth /psize X def [psize 0 psize height mul slant sin slant cos div mul psize height mul 0 0] makefont setfont}def /shade{gs /dy X def /dx X def np m setgray 0 dy rl dx 0 rl 0 dy neg rl dx neg 0 rl closepath fill gr}def 1 setlinecap /R{/Times-Roman FF}def /B{/Times-Bold FF}def /I{/Times-Italic FF}def /Y{/Symbol FF}def %%EndProlog %%Page: 1 1 BP /slant 0 def /height 1.000000 def 10 R 10 R 480 V 900(OBMSH)S 1272(\()S 1321(1)S 1387(\))S 2787(USER COMMANDS )S 5060(OBMSH)S 5432(\()S 5481(1)S 5547(\))S 960 V 9 B 900(NAME)S 1080 V 10 R 1260(obmsh)S 1557(\261)S 1637(Object)S 1933(Manager)S 2317(GUI)S 2524(script)S 2776(interpreter)S 1248 V 9 B 900(SYNOPSIS)S 1368 V 10 B 1260(obmsh)S 10 R 1574([)S 10 I 1607(\256le)S 10 R 1729(])S 1536 V 9 B 900(DESCRIPTION)S 1656 V 10 B 1260(Obmsh)S 10 R 1611(is)S 1717(a)S 1800(GUI)S 2016(command)S 2449(interpreter)S 2903(for)S 3058(the)S 3219(IRAF)S 3486(Widget)S 3819(Server)S 4118(/)S 4185(Object)S 4491(Manager)S 4885(\(OBM\))S 5219(that)S 5409(exe-)S 1776 V 1260(cutes)S 1499(commands)S 1966(read)S 2171(from)S 2399(the)S 2555(standard)S 2927(input)S 3167(or)S 3284(from)S 3512(a)S 3590(\256le.)S 3807(As)S 3952(with)S 4164(other)S 4403(shell)S 4626(interpreters)S 5114(such)S 5331(as)S 10 I 5447(csh)S 1896 V 10 R 1260(if)S 1360(the)S 1521(program)S 1898(is)S 2004(a)S 2087(\256le)S 2254(beginning)S 2693(with)S 10 B 2910(#!)S 10 R 2993(,)S 3057(the)S 3218(remainder)S 3661(of)S 3783(the)S 3944(\256rst)S 4139(line)S 4329(speci\256es)S 4713(an)S 4847(interpreter)S 5302(for)S 5458(the)S 2016 V 1260(program,)S 1653(usually)S 1972(the)S 2124(path)S 2326(to)S 2434(the)S 2586(obmsh)S 2883(executable.)S 3394(There)S 3656(are)S 3807(no)S 3937(arguments.)S 2256 V 1260(OBM)S 1524(programs)S 1937(are)S 2095(Tcl)S 2265(scripts)S 2563(consisting)S 3006(of)S 3126(application)S 3607(widgets)S 3955(to)S 4070(be)S 4201(created,)S 4550(resource)S 4924(values)S 5216(for)S 5369(those)S 2376 V 1260(widgets,)S 1644(callback)S 2024(procedures,)S 2534(and)S 2726(OBM-speci\256c)S 3340(functions)S 3760(needed)S 4090(to)S 4216(create)S 4501(and)S 4692(activate)S 5049(the)S 5218(GUI.)S 5497(In)S 2496 V 1260(applications)S 1776(such)S 1992(as)S 10 I 2108(Ximtool)S 10 R 2458(the)S 2613(GUI)S 2823(interacts)S 3194(with)S 3405(an)S 3532(underlying)S 3998(client)S 4253(program)S 4624(by)S 4757(passing)S 5091(messages)S 5502(to)S 2616 V 1260(the)S 1414(client,)S 1693(server)S 1967(\(the)S 2153(object)S 2428(manager)S 2802(itself\))S 3066(or)S 3180(various)S 3505(parameters)S 3973(or)S 4087(widgets)S 4429(in)S 4538(the)S 4691(script.)S 4999(Obmsh)S 5319(scripts)S 2736 V 1260(have)S 1484(no)S 1620(client)S 1878(but)S 2042(will)S 2234(execute)S 2574(a)S 2655(default)S 2969(callback)S 3338(that)S 3525(outputs)S 3857(the)S 4016(client)S 4275(message)S 4650(to)S 4765(the)S 4924(standard)S 5299(output,)S 2856 V 1260(the)S 1412(script)S 1664(will)S 1850(continue)S 2224(to)S 2332(run)S 2495(until)S 2709(a)S 2783('q')S 2929(keystroke)S 3347(is)S 3444(detected)S 3806(in)S 3914(a)S 3988(client)S 4240(message.)S 3096 V 1260(Obmsh)S 1594(script)S 1861(support)S 2206(all)S 2351(features)S 2711(of)S 2840(the)S 3008(Tcl)S 3187(language)S 3593(but)S 3767(also)S 3974(provide)S 4325(a)S 4415(builtin)S 4723(GUI)S 4946(capability.)S 5441(For)S 3216 V 1260(applications)S 1787(which)S 2075(do)S 2219(not)S 2391(require)S 2717(a)S 2805(client)S 3070(to)S 3191(perform)S 3555(more)S 3803(complex)S 4190(operations,)S 4674(the)S 4839(obmsh)S 5149(provides)S 5536(a)S 3336 V 1260(fully)S 1482(featured)S 1841(GUI)S 2051(scripting)S 2434(language.)S 2882(For)S 3054(more)S 3292(information)S 3797(on)S 3930(the)S 4085(IRAF)S 4346(Widget)S 4674(Server)S 4968(/)S 5030(OBM)S 5292(contact)S 3456 V 1260(iraf@noao.edu)S 1883(or)S 1996(see)S 2153(Tody,)S 2419(D.)S 2546(1995,)S 2801(in)S 2909(ADASS)S 3267(IV)S 3402(Proceedings,)S 3945(ASP)S 4159(Conf.)S 4414(Ser,)S 4602(Vol)S 4782(77,)S 4937(p.)S 5042(89.)S 3744 V 9 B 900(EXAMPLE)S 3864 V 10 R 1260(The)S 1445(following)S 1864(GUI)S 2071(script)S 2323(program)S 2691(demonstrates)S 3248(a)S 3322(simple)S 3619("hello)S 3890(world")S 4194(application:)S 4104 V 1380(#!/usr/local/bin/obmsh)S 4344 V 1380(reset-server)S 4464 V 1380(appInitialize)S 1909(hello)S 2139(Hello)S 2391({)S 4584 V 1500(!)S 1563(Application)S 2065(defaults)S 2411(for)S 2557(the)S 2709(hello)S 2939(world)S 3202(program.)S 4704 V 1500(Hello)S 10 Y 1722(*)S 10 R 1772(objects:\\)S 4824 V 1740(toplevel)S 2700(Form)S 3157(helloForm\\)S 4944 V 1740(helloForm)S 2700(Label)S 3137(helloLabel\\)S 5064 V 1740(helloForm)S 2700(Command)S 3267(quitButton)S 5304 V 10 Y 1500(*)S 10 R 1550(background:)S 2559(bisque)S 5424 V 10 Y 1500(*)S 10 R 1550(helloLabel.label:)S 2554(Hello,)S 2831(world!)S 5544 V 10 Y 1500(*)S 10 R 1550(quitButton.fromHoriz:)S 2663(helloLabel)S 5664 V 10 Y 1500(*)S 10 R 1550(quitButton.label:)S 2556(Quit)S 5784 V 1380(})S 6024 V 1380(createObjects)S 6144 V 1380(proc)S 1587(quit)S 1773(args)S 1969({)S 2047(send)S 2260(client)S 2512(gkey)S 2736(q;)S 2844(deactivate)S 3278(unmap)S 3580(})S 6264 V 1380(send)S 1593(quitButton)S 2052(addCallback)S 2581(quit)S 6384 V 1380(activate)S 6624 V 1260(If)S 1361(the)S 1519(\256le)S 1683(has)S 1852(execute)S 2192(permissions)S 2706(set)S 2853(the)S 10 B 3011(#!)S 10 R 3130(will)S 3322(invoke)S 3630(the)S 3788(obmsh)S 4091(to)S 4205(execute)S 4545(the)S 4703(\256le,)S 4892(otherwise)S 5316(it)S 5408(may)S 6744 V 1260(be)S 1384(running)S 1725(using)S 1972(either)S 6984 V 1620(%)S 1733(obmsh)S 2030(hello.gui)S 2700(or)S 3090(%)S 3203(obmsh)S 3500(<)S 3586(hello.gui)S 7680 V 900(X11IRAF Project)S 2703(Last change: 28 Aug 1997)S 5530(1)S 7920 V EP %%Page: 2 2 BP /slant 0 def /height 1.000000 def 10 R 10 R 480 V 900(OBMSH)S 1272(\()S 1321(1)S 1387(\))S 2787(USER COMMANDS )S 5060(OBMSH)S 5432(\()S 5481(1)S 5547(\))S 960 V 9 B 900(SEE)S 1112(ALSO)S 1080 V 10 R 1260(xgterm\(1\),)S 1714(ximtool\(1\))S 1248 V 9 B 900(COPYRIGHT)S 1368 V 10 R 1260(Copyright\(c\))S 1806(1986)S 2036(Association)S 2538(of)S 2651(Universities)S 3164(for)S 3310(Research)S 3705(in)S 3813(Astronomy)S 4293(Inc.)S 7680 V 900(X11IRAF Project)S 2703(Last change: 28 Aug 1997)S 5530(2)S 7920 V EP %%Trailer %%DocumentFonts: Times-Roman Times-Bold Times-Italic Symbol %%Pages: 2