If you look at the instructions for lexicon use in iHook, there are several things you add or change.  One of those is an Input Box:  %INPUT ENABLE/DISABLE/REMOVE [prompt Title].  You can then read the input.  Here&#39;s a little script example they give:<br>
<br>#! /bin/sh<br><br># read user input<br>echo &quot;%INPUT ENABLE Please enter some text:&quot;<br>read input<br>echo &quot;%INPUT DISABLE Processing input...&quot;<br>do_input_processing ${input}<br>echo %INPUT REMOVE<br>
<br><br>Using that you could solicit input from the user and then move on.  Also, if you just wanted to wait for a user to click OK before moving on with your script, you could use that input box as such.  The proof of concept I sent was to open up Calculator.app after the OK button was pressed.  That script looked like this:<br>
<br>#!/bin/sh<br><br>echo &quot;%INPUT ENABLE Please Close All Applications and press OK&quot;<br>read input<br>echo &quot;%INPUT DISABLE Processing....&quot;<br><br>echo %INPUT REMOVE<br><br>open /Applications/Calculator.app<br clear="all">
<br><br><br><br>Steve Wood<br>Director of IT<br><a href="mailto:swood@integer.com">swood@integer.com</a> <br><br>The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX 75201 <br>T 214.758.6813 | F 214.758.6901 | C 940.312.2475 <br>

<br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 10:59 AM, Criss Myers <span dir="ltr">&lt;<a href="mailto:bukira@gmail.com">bukira@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#FFFFFF"><div>????</div><div><br></div><div>I don&#39;t have an input box my ihooks</div><div><br></div><div>What are u doing differently I wonder</div><div><br></div><div><font color="#888888">Criss</font><div>
<div></div><div class="h5"><br><br>On 9 Nov 2009, at 16:00, Steve Wood &lt;<a href="mailto:swood@integer.com" target="_blank">swood@integer.com</a>&gt; wrote:<br><br></div></div></div><div><div></div><div class="h5"><div>
</div><blockquote type="cite"><div>I sent him some information on using iHook to do the notification.  The only thing that iHook does that I don&#39;t like is that it puts an input box on the page with an OK button.  You don&#39;t have to put anything in the box, but it is there.  Not sure how to get that off in iHook.<br>

<br>The advantage to using iHook is that if you are already using it for login/logout hooks you don&#39;t have to add anything more, just drop a new script.<br clear="all"><br>Steve Wood<br>Director of IT<br><a href="mailto:swood@integer.com" target="_blank"></a><a href="mailto:swood@integer.com" target="_blank">swood@integer.com</a> <br>

<br>The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX 75201 <br>T 214.758.6813 | F 214.758.6901 | C 940.312.2475 <br>
<br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 9:53 AM, Ryan Manly <span dir="ltr">&lt;<a href="mailto:ryan.manly@gmail.com" target="_blank"></a><a href="mailto:ryan.manly@gmail.com" target="_blank">ryan.manly@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>What did you end up doing? I like looking at other&#39;s scripts. Gives me fun ideas. :D</div><div><br clear="all">Ryan M. Manly<br>Mac OS X Expert<br>Glenbrook High Schools<br>1835 Landwehr Rd.<br>Glenview, IL 60026<br>

(847) 486-4948<br>

<br><br></div><div class="gmail_quote"><div>On Thu, Nov 5, 2009 at 10:44 AM, Thomas Larkin <span dir="ltr">&lt;<a href="mailto:tlarki@kckps.org" target="_blank"></a><a href="mailto:tlarki@kckps.org" target="_blank">tlarki@kckps.org</a>&gt;</span> wrote:<br>
</div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>

  
    
    
  
  <div>
    <p style="margin-bottom: 0pt; margin-top: 0pt;">
      <font face="Lucida Grande" size="3">So, I am trying to run some automation with a bit of end user interaction.  If I use the jamf displayMessage binary to display a message it will return the output back into terminal, but I can&#39;t seem to quite make the connection.</font>    </p>



<br>      
    <p style="margin-bottom: 0pt; margin-top: 0pt;">
      <font face="Lucida Grande" size="3">Basically I want to run the command along with other commands and then the user clicks on the OK button it will trigger the last or final command of the policy.</font>    </p>
<br>      
    <p style="margin-bottom: 0pt; margin-top: 0pt;">
      <font face="Lucida Grande" size="3">Here is what I got, proof of concept wise, but it is very very broken.  Anyone else got any ideas?</font>    </p>
<br>      
    <p style="margin-bottom: 0pt; margin-top: 0pt;">
      <font face="Lucida Grande" size="3">#!/bin/bash</font>    </p>
<br>      
    <p style="margin-bottom: 0pt; margin-top: 0pt;">
      <font face="Lucida Grande" size="3">#test jamf display message command</font>    </p>
<br>      
    <p style="margin-bottom: 0pt; margin-top: 0pt;">
      <font face="Lucida Grande" size="3">selection=</font>    </p>
<br>      
    <p style="margin-bottom: 0pt; margin-top: 0pt;">
      <font face="Lucida Grande" size="3">/usr/sbin/jamf displayMessage -message &quot;testing&quot;</font>    </p>
<br>      
    <p style="margin-bottom: 0pt; margin-top: 0pt;">
      <font face="Lucida Grande" size="3">until [ &quot;$selection&quot; = &quot;button returned: OK&quot; ] ; do</font>    </p>
<br>      
    <p style="margin-bottom: 0pt; margin-top: 0pt;">
      <font face="Lucida Grande" size="3">case $selection in</font>    </p>
<br>      
    <p style="margin-bottom: 0pt; margin-top: 0pt;">
      <font face="Lucida Grande" size="3">&quot;button returned:OK&quot; ) /bin/echo &quot;the test is over&quot; ;;</font>    </p>
    <p style="margin-bottom: 0pt; margin-top: 0pt;">
      <font face="Lucida Grande" size="3">   esac</font>    </p>
    <p style="margin-bottom: 0pt; margin-top: 0pt;">
      <font face="Lucida Grande" size="3">done</font>
    </p>
  <br>___________________________<br>Thomas Larkin<br>TIS Department<br>KCKPS USD500<br><a href="mailto:tlarki@kckps.org" target="_blank"></a><a href="mailto:tlarki@kckps.org" target="_blank">tlarki@kckps.org</a><br>blackberry:  913-449-7589<br>
office:  913-627-0351<br>chown -R us /.base<br>

<br><br><br><br><br></div>

<br></div></div><div>_______________________________________________<br>
Casper mailing list<br>
<a href="mailto:Casper@list.jamfsoftware.com" target="_blank"></a><a href="mailto:Casper@list.jamfsoftware.com" target="_blank">Casper@list.jamfsoftware.com</a><br>
<a href="http://list.jamfsoftware.com/mailman/listinfo/casper" target="_blank"></a><a href="http://list.jamfsoftware.com/mailman/listinfo/casper" target="_blank">http://list.jamfsoftware.com/mailman/listinfo/casper</a><br>

<br></div></blockquote></div><br>
<br>_______________________________________________<br>
Casper mailing list<br>
<a href="mailto:Casper@list.jamfsoftware.com" target="_blank"></a><a href="mailto:Casper@list.jamfsoftware.com" target="_blank">Casper@list.jamfsoftware.com</a><br>
<a href="http://list.jamfsoftware.com/mailman/listinfo/casper" target="_blank"></a><a href="http://list.jamfsoftware.com/mailman/listinfo/casper" target="_blank">http://list.jamfsoftware.com/mailman/listinfo/casper</a><br>

<br></blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Casper mailing list</span><br><span><a href="mailto:Casper@list.jamfsoftware.com" target="_blank">Casper@list.jamfsoftware.com</a></span><br>
<span><a href="http://list.jamfsoftware.com/mailman/listinfo/casper" target="_blank">http://list.jamfsoftware.com/mailman/listinfo/casper</a></span><br></div></blockquote></div></div></div></blockquote></div><br>