Pass text input to Shell using automator.

Hello again Apple Community!
What I am trying to do is use automator to promt the user for information like a username and password and then pass that information through a shell command to create a generic keychain item.
What I have so far is an Automator "Ask for text" getting the username and the script I have so far is:
on run {input, parameters}
  do shell script "security add-generic-password -a" & input & "-s servicename -w IAMZPASSWURD"
end run
But it will not take the input and include it in the shell script. Any ideas?

I found the solution! It is a very very sublte mistake. Now Ive got it broken up into 4 chunks to build the command, though I'm sure it could be combined if needed.
Get username:
on run {input, parameters}
          tell me to activate
          display dialog "What is your username?" default answer ""
          set input to text returned of result
          return input
end run
Add username to shell command(I initially missed the space between the -a and the quote and the -w and the quote):
on run {input, parameters}
          set thevariable to input
          set theScript to "security add-generic-password -a " & thevariable & " -s keychainitemname -w "
          return theScript
end run
Get password and add to end of command:
on run {input, parameters}
          set theScript to input
          tell me to activate
          display dialog "What is your password?" default answer ""
          set ACP to text returned of result
          set keychaincan to input & ACP
          return keychaincan as string
end run
Finally, send the Shell Command:
on run {input, parameters}
  do shell script (input)
          return input
end run
Hope this helps anyone trying to accomplish this same thing!

Similar Messages

  • Auto-Inserting Text inside tables (maybe using automator?)

    Hi,
    I've got a large document, and I want to make a formatting change. There are about 500 places where I want to do the following:
    1. Take text between point A and point B.
    2. Remove it, insert a single cell table, and insert the text inside the table.
    Point A and point B are easy to identify, the same words repeat.
    Is there any way to automate that sort of thing? I've gotten a lot done with advanced find + replace, but I don't believe that will work for this. I've heard about apple scripts and automator, but don't know much about them.
    Anyone have any ideas? Thanks so much.

    (1) It seems that it's time to answer a question available in your first message.
    Yes, we may use Find & Replace to apply to formulas.
    (2) The operator = is telling the app that it must sum the value of rows whose cells on the left of the range are equal to what is on the right side of it
    In your case, it sum every values from rows whose cell D contain the value stored in Table 2::A4
    We may use conditions with
    <
    >
    <=
    >=
    <>
    The operator & is more mysterious in this case because, as far as I remember, this exact use isn't described in the available resources.
    I discovered it years ago in the forum dedicated to Numbers '08
    Details about these conditions are available in :
    Yvan KOENIG (VALLAURIS, France) mercredi 13 juillet 2011 21:26:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Text input - how set an automated space after each word?

    When typing in text and using the qwerty assisted text - how can i get it to automatically add a space after each word? My Droid original did that automatically... Thanks

    lovetennis7 wrote:
    When typing in text and using the qwerty assisted text - how can i get it to automatically add a space after each word? My Droid original did that automatically... Thanks
    I have confirmed that this feature was not included with the basic software package of the Incredible 2. 

  • Text Input Dialog

    Hello experts,
    How to configure the Web Item: "Text Input Dialog" to show label in different languages (Language-Dependent Text) according to languages configured in user web browser?
    Thanks and Regards,
    Pablo Moraes

    Heads up..
    <b>Use</b>
    The text input dialog is used to create text for certain parameters in Web items. You can enter the following text types using the dialog:
    1)Language-Independent Text
    2)Language-Dependent Text Stored in Object (Web Template or Reusable Web Item)
    3)Language-Dependent Text Stored in Table
    4)Language-Dependent Report Text (Obsolete)
    <b>Integration -</b>
    The text input dialog is part of the Web Application Designer and is called when you set certain Web item parameters, such as in the parameter tray, using which you can label the tray for the Web item. Using the text input dialog, you can enter the hyperlink text (parameter TEXT_CONTENT) and the quick info text (parameter TOOLTIP) for the Link Web item, for example.
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/42/dbca81689a6ffce10000000a1553f6/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/42/dbca81689a6ffce10000000a1553f6/content.htm</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d7/c4673cffbb4c34e10000000a11402f/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/d7/c4673cffbb4c34e10000000a11402f/content.htm</a>
    Hope it Helps
    Chetan
    @CP..

  • Specified url text input type of form in DW CS5

    If I wanted to dilspay a text input type form on the site's last page, Will the url link function during my table data display? I'm assuming it will be hoverable and active as a link if the text input type form used to submit the link to the database is set up properly? The text input type form creates a record that is automatically saved on a database that I can then use to check for display errors. What other type of url links work with text input type forms in DW.

    If I wanted to dilspay a text input type form on the site's last page, Will the url link function during my table data display?
    I don't understand what you are asking.  Can you say more about this url link function, and the text input type form?

  • Using automator to edit text - find and replace

    Hello. I have a huge database of tv repair tips. Unfortunately, when i started to accumulate the tips I put them in an html table like this:
    <tr>
    <td class="NoiseDataTD">TELEVISION </td>
    <td class="NoiseDataTD">SONY </td>
    <td class="NoiseDataTD">36XBR400 </td>
    <td class="NoiseDataTD">DEAD - NO H.V. - INTERMITTENT START UP - 'D Board' NG. </td>
    <td class="NoiseDataTD">IC6501, MCZ3001D 0r MCZ3001DB(8-759-670-30) - >>>HARD TO REPLACE!---tip:CUT PINS FROM TOP THEN PULL OUT SLOWLY </td>
    </tr>
    <tr>
    <td class="NoiseDataTD">TELEVISION </td>
    <td class="NoiseDataTD">SONY </td>
    <td class="NoiseDataTD">63A </td>
    <td class="NoiseDataTD">INSUFFICIENT HEIGHT </td>
    <td class="NoiseDataTD">CHECK C522 REPLACE IF PARTIALLY OR COMPLETELY OPEN </td>
    </tr>
    <tr>
    <td class="NoiseDataTD">TELEVISION </td>
    <td class="NoiseDataTD">SONY </td>
    <td class="NoiseDataTD">AA-2 </td>
    <td class="NoiseDataTD">Int. loss of pix (HV) after 10 Min. Audio Normal.Pwr up again & OK for 10Min </td>
    <td class="NoiseDataTD">H Protect Circuit. D521 (7.5 zener) ECG5015 </td>
    </tr>
    <tr>
    <td class="NoiseDataTD">TELEVISION </td>
    <td class="NoiseDataTD">SONY </td>
    <td class="NoiseDataTD">AA-2D </td>
    <td class="NoiseDataTD">VERTICAL HEIGHT PROBLEM </td>
    <td class="NoiseDataTD">BAD YOKE: BAD YOKE WINDINGS MEASURED 6 OHMS, SHOULD BE CLOSE TO 9 OHMS </td>
    </tr>
    <tr>
    <td class="NoiseDataTD">TELEVISION </td>
    <td class="NoiseDataTD">SONY </td>
    <td class="NoiseDataTD">AA-2W </td>
    <td class="NoiseDataTD">Negative main pix, pip video ok. Customer heard pop then pix went dark. </td>
    <td class="NoiseDataTD">IC355. CSA2131S </td>
    </tr>
    Now, I want to input the tips into a MySQL database with an insert statement like:
    INSERT INTO `otips` (`id`, `brand`, `model`, `problem`, `solution`, `user`, `date`) VALUES (NULL, UCASE('SONY'), UCASE('KP-53XBR200'), UCASE('CONVERGENCE OFF'), UCASE('REPLACED CONVERGENCE IC''S STK392-020 AND PICO FUSE PS5007 3.15 AMP open'), '0', '0000-00-00');
    I've been all over the help files and different websites with tutorials and I cannot figure out how to do this using automator. Could anyone tell me if this can be done with automator and perhaps point me in the right direction.
    Thanks,
    daniel
    IMac Intel Core Duo   Mac OS X (10.4.8)  

    Are you familliar with regular expressions? If you are, then you can create a shell script and incorporate it into your workflow. Or you could use bbedit or textwrangler from barebones.com to search and replace in multiple files.

  • How can I use Automator to extract specific Data from a text file?

    I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
    How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
    Example of File Contents:
    Link Time =
    DD/MMM/YYYY
    Random
    Text
    161 179
    bytes of CODE    memory (+                68 range fill )
    16 789
    bytes of DATA    memory (+    59 absolute )
    1 875
    bytes of XDATA   memory (+ 1 855 absolute )
    90 783
    bytes of FARCODE memory
    What I would like to have as a final file:
    EXCEL COLUMN1
    Column 2
    Column3
    Column4
    Column5
    Column6
    MM/DD/YYYY
    filename1
    161179
    16789
    1875
    90783
    MM/DD/YYYY
    filename2
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    MM/DD/YYYY
    filename3
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!

    Hello
    You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
    set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
    if f ends with "/" then set f to f's text 1 thru -2
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
    use strict;
    use open IN => ':crlf';
    chdir $ARGV[0] or die qq($!);
    local $/ = qq(\\0);
    my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
    local $/ = qq(\\n);
    #     CSV spec
    #     - record separator is CRLF
    #     - field separator is comma
    #     - every field is quoted
    #     - text encoding is UTF-8
    local $\\ = qq(\\015\\012);    # CRLF
    local $, = qq(,);            # COMMA
    # print column header row
    my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
    print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    # print data row per each file
    while (@ff) {
        my $f = shift @ff;    # file path
        if ( ! open(IN, '<', $f) ) {
            warn qq(Failed to open $f: $!);
            next;
        $f =~ s%^.*/%%og;    # file name
        @dd = ('', $f, '', '', '', '');
        while (<IN>) {
            chomp;
            $dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
            ($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
            ($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
            ($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
            ($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
            last unless grep { /^$/ } @dd;
        close IN;
        print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    EOF
    Hope this may help,
    H

  • Using text input to change content of gallery

    Hello,
    I have an application where I'm using multiple excel tables as my data. Each table has the same columns; The only difference is the data in each one. 
    I have a screen "GalleryScreen" where I have a Gallery (aGallery) that displays information from a single table (Ex: Table1). aGallery's data is set to Table1.
    I now want to allow users to select which table they want to use in the gallery via text input; The user would select a table name via a dropdown menu, and the correct table would be displayed in the GalleryScreen.
    However, I'm unable to pass text to the Gallery, since Gallery is expecting a collection; How do I get the application to use the text as a variable?
    Leo

    It cannot be done directly in Siena right now.   As a workaround, you can use If statements:
    Create a Table that has the names of each table you want to choose between.   Name that column TName.
    Save and import table into Siena.
    Set the Galleries Data to: MyVal
    (there will be red lines indicating an error, that's OK, we'll fix that shortly.)
    Create a Drop Down called DropDown1.
    Set the DropDowns Items to the Table you just imported.
    Set the DropDowns OnChange to:
    If(Dropdown1!Selected!Name = "aGallery", UpdateContext({MyValue: aGallery}),
    If(Dropdown1!Selected!Name = "bGallery", UpdateContext({MyValue: bGallery}),
    If(Dropdown1!Selected!Name = "cGallery", UpdateContext({MyValue: cGallery}))))
    You can change the text in quotes to be whatever you want the user to see, as long as you also change it in the table that contains all the table names.   It does not need to actually n=match the Table Name Siena sees.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This is beneficial to other community members reading the thread.
    -Bruton

  • Dynamically passing text and url-based images as an input parameter to cf8 report builder

    I'm unsuccessfully trying to dynamically pass text and url-based images to a group footer or the detail section via an input parameter or even hardcoded. The field has the attribute 'XHTML Text Formating' set to True. The following are failed samples of a simplified value:
    "<img height=’300’ alt=’Document’ width=’300’ src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    or
    "<img src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    This just results in the above text being output. The end result would have various text and images from a database as input by a user, thus the reason I cannot just use the hyperlink information attribute as I could if it were a single known image. I tried rtf and pdf report types. Ideas?

    HTH,
    Thanks. I'll keep that in mind, although I don't know how many images my user might need or what sizes so that might be tricky.
    Since my target output is rtf so that MS Word can be used to edit the result, I added a pagebreak to a MS Word doc and used the resulting html source to replace the rich text editor source code for the page break, but that did not help either. The page break was so a user could add an image later. Something is wrong with the Report Builder related to intepreting XHTML, especially anything that has an attribute, including URL-based image links. I hope they try to provide another update before CF9. I doubt my client will be going to CF9 for some time, since they are just completing the migration to CF8.
    BrianO

  • How can i pass the Input value to the sql file in the korn shell ??

    Hi,
    How can i pass the Input value to the sql file in the korn shell ??
    I have to pass the 4 different values to the sql file and each time i pass the value it has to generate the txt file for that value like wise it has to generate the 4 files at each run.
    can any one help me out.
    Raja

    Can you please more elaberate., perhaps you should more elaberate.
    sqlplus is a program. you start it from the korn shell. when it's finished, processing control returns to the korn shell. the korn shell and sqlplus do not communicate back and forth.
    so "spool the output from .sql file to some txt file from k shell, while passing the input parameters to the sql file from korn shell" makes no sense.

  • Can a ComboBox be used for Text Input ?

    Hi
    In Ms Access the combo box can be used for text input for creating new lines in the Database instead of just being limited to the lines already there in the drop down list. Is this possible with the combo box available in Flex 4. If it is I haven't being successful in getting it to work.
    Thanks for you help in advance
    ParaicKW

    I am using a Dataservices Commit method to write to the Database via a button on the screen
    When I type into the ComboBox's text input and click outside the combobox or on the commit button the application effectively freezes
    SituationService is a CRUD type servicePHP to MYSQL and it works with the Datagrid
    Here is the code -
    ParaicKW
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:situationservice="services.situationservice.*">
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.events.FlexEvent;
                protected function Situation_creationCompleteHandler(event:FlexEvent):void
                    getAllTblsituationResult3.token = situationService.getAllTblsituation();
                protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                    getAllTblsituationResult.token = situationService.getAllTblsituation();
                protected function button1_clickHandler(event:MouseEvent):void
                    situationService.commit();
                protected function vGroup_creationCompleteHandler(event:FlexEvent):void
                    getAllTblsituationResult2.token = situationService.getAllTblsituation();
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:CallResponder id="updateSituationResult"/>
            <situationservice:SituationService id="situationService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <s:CallResponder id="getAllSituationResult"/>
            <s:CallResponder id="getAllTblsituationResult"/>
            <s:CallResponder id="getAllTblsituationResult2"/>
            <s:CallResponder id="getAllTblsituationResult3"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <mx:DataGrid x="96" y="167" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAllTblsituationResult.lastResult}" editable="true" width="470" height="237">
            <mx:columns>
                <mx:DataGridColumn headerText="ID2" dataField="ID2"/>
                <mx:DataGridColumn headerText="SITUATION" dataField="SITUATION" width="200"/>
            </mx:columns>
        </mx:DataGrid>
        <s:Button label="Commit Updates" click="button1_clickHandler(event)"/>
        <s:HGroup width="90%" height="80%" verticalCenter="20" horizontalCenter="0">
            <mx:ComboBox width="476" id="cmbSituation" creationComplete="Situation_creationCompleteHandler(event)" dataProvider="  
                     {getAllTblsituationResult3.lastResult}" labelField="SITUATION" editable="true">
            </mx:ComboBox>
            <s:TextArea width="426" id="textArea" text="{getAllTblsituationResult3.lastResult.SITUATION}"/>
            <s:Button label="Back" click="cmbSituation.selectedIndex = cmbSituation.selectedIndex-1 ; textArea.selectedIndex = textArea.selectedIndex-1"/>
            <s:Button label="Forward" click="cmbSituation.selectedIndex = cmbSituation.selectedIndex+1 ; textArea.selectedIndex = textArea.selectedIndex-1"/>
        </s:HGroup>
    </s:Application>

  • How to enter text in text input box using virtual keyboard in flex application

    Re: how to enter text in text input box using virtual keyboard in flex application
    hi,
    im using flash builder 4,
    i  designed virtual keyboard, i have to update the text in text input box  continously by using virtual keyboard.
    i used button events.i did  some mistake there.
    can some one help me out of tat.
    thanks  in advance.
    i have included my mxml program with this.
    virtualkeyboard.mxml
    <?xml  version="1.0" encoding="utf-8"?>
    <s:Application  xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"  minHeight="600" creationComplete="initfunc()">
         <fx:Script>
            <![CDATA[
                import  mx.controls.Alert;
                private function initfunc():void
                    b1.addEventListener(MouseEvent.CLICK,handleEvent);
                     b2.addEventListener(MouseEvent.CLICK,handleEvent);
                     b3.addEventListener(MouseEvent.CLICK,handleEvent);
                     b4.addEventListener(MouseEvent.CLICK,handleEvent);
                     b5.addEventListener(MouseEvent.CLICK,handleEvent);
                     b6.addEventListener(MouseEvent.CLICK,handleEvent);
                     b7.addEventListener(MouseEvent.CLICK,handleEvent);
                     b8.addEventListener(MouseEvent.CLICK,handleEvent);
                     b9.addEventListener(MouseEvent.CLICK,handleEvent);
                     b10.addEventListener(MouseEvent.CLICK,handleEvent);
                     b11.addEventListener(MouseEvent.CLICK,handleEvent);
                     b12.addEventListener(MouseEvent.CLICK,handleEvent);
                     b13.addEventListener(MouseEvent.CLICK,handleEvent);
                     b14.addEventListener(MouseEvent.CLICK,handleEvent);
                     b15.addEventListener(MouseEvent.CLICK,handleEvent);
                     b16.addEventListener(MouseEvent.CLICK,handleEvent);
                     b17.addEventListener(MouseEvent.CLICK,handleEvent);
                     b18.addEventListener(MouseEvent.CLICK,handleEvent);
                     b19.addEventListener(MouseEvent.CLICK,handleEvent);
                     b20.addEventListener(MouseEvent.CLICK,handleEvent);
                     b21.addEventListener(MouseEvent.CLICK,handleEvent);
                     b22.addEventListener(MouseEvent.CLICK,handleEvent);
                     b23.addEventListener(MouseEvent.CLICK,handleEvent);
                     b24.addEventListener(MouseEvent.CLICK,handleEvent);
                     b25.addEventListener(MouseEvent.CLICK,handleEvent);
                     b26.addEventListener(MouseEvent.CLICK,handleEvent);
                     b27.addEventListener(MouseEvent.CLICK,handleEvent);
                     b28.addEventListener(MouseEvent.CLICK,handleEvent);
                     b29.addEventListener(MouseEvent.CLICK,handleEvent);
                     b30.addEventListener(MouseEvent.CLICK,handleEvent);
                     b31.addEventListener(MouseEvent.CLICK,handleEvent);
                     b32.addEventListener(MouseEvent.CLICK,handleEvent);
                     b33.addEventListener(MouseEvent.CLICK,handleEvent);
                     b34.addEventListener(MouseEvent.CLICK,handleEvent);
                     b35.addEventListener(MouseEvent.CLICK,handleEvent);
                     b36.addEventListener(MouseEvent.CLICK,handleEvent);
                     b37.addEventListener(MouseEvent.CLICK,handleEvent);
                     b38.addEventListener(MouseEvent.CLICK,handleEvent);
                     b39.addEventListener(MouseEvent.CLICK,handleEvent);
                     b40.addEventListener(MouseEvent.CLICK,handleEvent);
                     b41.addEventListener(MouseEvent.CLICK,handleEvent);
                     b42.addEventListener(MouseEvent.CLICK,handleEvent);
                     b43.addEventListener(MouseEvent.CLICK,handleEvent);
                     b44.addEventListener(MouseEvent.CLICK,handleEvent);
                     b45.addEventListener(MouseEvent.CLICK,handleEvent);
                     b46.addEventListener(MouseEvent.CLICK,handleEvent);
                     b47.addEventListener(MouseEvent.CLICK,handleEvent);
                     b48.addEventListener(MouseEvent.CLICK,handleEvent);
                     b49.addEventListener(MouseEvent.CLICK,handleEvent);
                     b50.addEventListener(MouseEvent.CLICK,handleEvent);
                     b51.addEventListener(MouseEvent.CLICK,handleEvent);
                     b52.addEventListener(MouseEvent.CLICK,handleEvent);
                     b53.addEventListener(MouseEvent.CLICK,handleEvent);               
                public function handleEvent ( e :  MouseEvent ) : void
                    var a:String=  e.target.name ;
                    Alert.show(e.target.name);
                   var b:String=null;
                    switch(a)
                        case "Button20":
                           b=textbox.text;
                            //textbox.text="a";
                             textbox.text=b+"a";
                            break;
                       case "Button21":
                            //textbox.text="b";
                           textbox.text=b+"b";
                           break;
                       default:
                           //textbox.text="s";
                            textbox.text=b+"s";
            ]]>
        </fx:Script>
        <s:Panel  x="43" y="82" width="527" height="213">
          <mx:Button  x="71" y="86" id="b1" label="1" width="30" height="24"/>
             <s:Button x="180" y="86"  id="b2" label="5" width="30"  height="24"/>
            <s:Button x="127" y="86"  id="b3"  label="3" width="30" height="24"/>
            <s:Button x="99"  y="86"  id="b4" label="2" width="30" height="24"/>
             <s:Button x="323" y="86"  id="b5" label="0" width="30"  height="24"/>
            <s:Button x="294" y="86"  id="b6"  label="9" width="30" height="24"/>
            <s:Button x="265"  y="86"   id="b7" label="8" width="30" height="24"/>
             <s:Button x="237" y="86"  id="b8" label="7" width="30"  height="24"/>
            <s:Button x="209" y="86"  id="b9"  label="6" width="30" height="24"/>
            <s:Button x="42"  y="86"  id="b10" label="`" width="30" height="24"/>
             <s:Button x="382" y="86" id="b11" label="=" width="30"  height="24"/>
            <s:Button x="353" y="86"  id="b12"  label="-" width="30" height="24"/>
            <s:Button x="410"  y="86"  id="b13" label="back" width="76" height="24"/>
             <s:Button x="157" y="86"  id="b14" label="4" width="30"  height="24"/>
            <s:Button x="43" y="109" id="b15"  label="tab" width="66" height="24"/>
            <s:Button x="105"  y="109"  id="b16" label="q" width="31" height="24"/>
             <s:Button x="247" y="109"  id="b17" label="y" width="30"  height="24"/>
            <s:Button x="303" y="109"  id="b18"  label="i" width="31" height="24"/>
            <s:Button x="361"  y="110"  id="b19" label="p" width="34" height="23"/>
             <s:Button x="394" y="109"  id="b20" label="[" width="31"  height="24"/>
            <s:Button x="191" y="109"  id="b21"  label="r" width="34" height="24"/>
            <s:Button x="424"  y="109"  id="b22" label="]" width="31" height="24"/>
             <s:Button x="222" y="109"  id="b23" label="t" width="31"  height="24"/>
            <s:Button x="161" y="109"  id="b24"  label="e" width="31" height="24"/>
            <s:Button x="133"  y="109"  id="b25" label="w" width="31" height="24"/>
             <s:Button x="332" y="109"  id="b26" label="o" width="31"  height="24"/>
            <s:Button x="275" y="109"  id="b27"  label="u" width="31" height="24"/>
            <s:Button x="220"  y="133"  id="b28" label="g" width="31" height="24"/>
             <s:Button x="424" y="132"  id="b29" label="enter" width="62"  height="24"/>
            <s:Button x="43" y="132"  id="b30"  label="caps" width="66" height="24"/>
            <s:Button x="275"  y="133"  id="b31" label="j" width="42" height="23"/>
             <s:Button x="314" y="132"  id="b32" label="k" width="31"  height="24"/>
            <s:Button x="133" y="133"  id="b33"  label="s" width="31" height="23"/>
            <s:Button x="161"  y="133"  id="b34" label="d" width="31" height="23"/>
             <s:Button x="250" y="133"  id="b35" label="h" width="31"  height="23"/>
            <s:Button x="105" y="133"  id="b36"  label="a" width="31" height="23"/>
            <s:Button x="191"  y="133"  id="b37" label="f" width="31" height="23"/>
             <s:Button x="342" y="132"  id="b38" label="l" width="31"  height="24"/>
            <s:Button x="152" y="154"  id="b39"  label="x" width="31" height="24"/>
            <s:Button x="353"  y="154"  id="b40" label="." width="31" height="24"/>
             <s:Button x="325" y="154"  id="b41" label="," width="31"  height="24"/>
            <s:Button x="294" y="154"  id="b42"  label="m" width="31" height="24"/>
            <s:Button x="259"  y="154"  id="b43" label="n" width="37" height="24"/>
             <s:Button x="236" y="154"  id="b44" label="b" width="31"  height="24"/>
            <s:Button x="211" y="154"  id="b45"  label="v" width="31" height="24"/>
            <s:Button x="181"  y="154"  id="b46" label="c" width="31" height="24"/>
             <s:Button x="122" y="154"  id="b47" label="z" width="31"  height="24"/>
            <s:Button x="380" y="154"  id="b48"  label="/" width="31" height="24"/>
            <s:Button x="368"  y="132"  id="b49" label=";" width="31" height="24"/>
             <s:Button x="396" y="132"  id="b50" label="'" width="31"  height="24"/>
            <s:Button x="43" y="154"  id="b51"  label="shift" width="82" height="24"/>
            <s:Button  x="407" y="154" id="b52" label="shift" width="79" height="24"/>
             <s:Button x="455" y="109"  id="b53" label="\" width="31"  height="24"/>
        </s:Panel>
        <s:TextInput  x="161" y="27" id="textbox" width="253"/>
    </s:Application>
    regards,
    saran r

    hi,
    how to code for these buttons "control,alt,delete,insert and spacebar".
    can u help me how to program?
    i have attached the mxml code with this,
    virtualkeypad1.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="application1_creationCompleteHandler(event)" viewSourceURL="srcview/index.html">
        <fx:Script>
            <![CDATA[
                import flash.utils.getQualifiedSuperclassName;
                import mx.events.FlexEvent;
                private var inpText:String = 'inp1';
                private var shiftState:Boolean = false;
                private var capsState:Boolean = false;
                protected function keyboard_clickHandler(event:MouseEvent):void
                    this[inpText].text = this[inpText].text+(event.currentTarget as Button).label;
                    if (shiftState == true) shift_clickHandler(null);
                protected function caps_clickHandler(event:MouseEvent):void
                    capsState = !capsState;
                    if (capsState == true)
                        currentState = "SHIFTED" else currentState = "PRIMARY";
                protected function tab_clickHandler(event:MouseEvent):void
                    this[inpText].text = this[inpText].text+"    ";
                protected function shift_clickHandler(event:MouseEvent):void
                    shiftState = !shiftState;
                    if (shiftState == true)
                        currentState = "SHIFTED" else currentState = "PRIMARY";
                protected function enter_clickHandler(event:MouseEvent):void
                    this[inpText].text = this[inpText].text+"\n";
                protected function backspace_clickHandler(event:MouseEvent):void
                    var tmpStr:String = this[inpText].text;
                    this[inpText].text = tmpStr.substr(0,tmpStr.length-1);
                protected function application1_creationCompleteHandler(event:FlexEvent):void
                    inp1.setFocus();               
                protected function focus_enterHandler(event:MouseEvent):void
                    inpText = event.currentTarget.id;
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="PRIMARY"/>
            <s:State name="SHIFTED"/>
        </s:states>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:TextInput id="inp1" y="36" width="151" horizontalCenter="0" click="focus_enterHandler(event)" y.PRIMARY="239" horizontalCenter.PRIMARY="42" width.PRIMARY="199" height.PRIMARY="31"/>
        <s:Group id="keyboard" width="661" height="184" horizontalCenter="0" y="300" focusEnabled="false">
            <s:Button x="5" y="5" label="~" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="`"/>
            <s:Button x="49" y="5" label="!" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="1"/>
            <s:Button x="93" y="5" label="@" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="2"/>
            <s:Button x="137" y="5" label="#" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="3"/>
            <s:Button x="181" y="5" label="$" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="4"/>
            <s:Button x="225" y="5" label="%" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="5"/>
            <s:Button x="269" y="5" label="^" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="6"/>
            <s:Button x="313" y="5" label="&amp;" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="7"/>
            <s:Button x="357" y="5" label="*" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="8"/>
            <s:Button x="401" y="5" label="(" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="9"/>
            <s:Button x="445" y="5" label=")" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="0"/>
            <s:Button x="489" y="5" label="_" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="-"/>
            <s:Button x="533" y="5" label="+" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="="/>
            <s:Button x="577" y="5" label="Backspace" height="43" width="80" fontSize="11" fontWeight="bold" click="backspace_clickHandler(event)"/>
            <s:Button x="5" y="48" label="Tab" height="43" width="67" fontSize="12" fontWeight="bold" click="tab_clickHandler(event)"/>
            <s:Button x="72" y="48" label="Q" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="q"/>
            <s:Button x="116" y="48" label="W" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="w"/>
            <s:Button x="160" y="48" label="E" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="e"/>
            <s:Button x="204" y="48" label="R" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="r"/>
            <s:Button x="248" y="48" label="T" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="t"/>
            <s:Button x="292" y="48" label="Y" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="y"/>
            <s:Button x="336" y="48" label="U" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="u"/>
            <s:Button x="380" y="48" label="I" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="i"/>
            <s:Button x="424" y="48" label="O" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="o"/>
            <s:Button x="468" y="48" label="P" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="p"/>
            <s:Button x="512" y="48" label="{" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="["/>
            <s:Button x="556" y="48" label="}" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="]"/>
            <s:Button x="600" y="48" label="|" height="43" width="57" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="\"/>
            <s:Button x="5" y="91" label="CapsLock" height="43" width="80" fontSize="12" fontWeight="bold" click="caps_clickHandler(event)"/>
            <s:Button x="85" y="91" label="A" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="a"/>
            <s:Button x="129" y="91" label="S" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="s"/>
            <s:Button x="173" y="91" label="D" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="d"/>
            <s:Button x="217" y="91" label="F" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="f"/>
            <s:Button x="261" y="91" label="G" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="g"/>
            <s:Button x="305" y="91" label="H" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="h"/>
            <s:Button x="349" y="91" label="J" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="j"/>
            <s:Button x="393" y="91" label="K" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="k"/>
            <s:Button x="437" y="91" label="L" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="l"/>
            <s:Button x="481" y="91" label=":" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY=";"/>
            <s:Button x="525" y="91" label="&quot;" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="'"/>
            <s:Button x="569" y="91" label="Enter" height="43" width="88" fontSize="24" fontWeight="bold" click="enter_clickHandler(event)"/>
            <s:Button x="5" y="134" label="Shift" height="43" width="106" fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
            <s:Button x="111" y="134" label="Z" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="z"/>
            <s:Button x="155" y="134" label="X" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="x"/>
            <s:Button x="199" y="134" label="C" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="c"/>
            <s:Button x="243" y="134" label="V" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="v"/>
            <s:Button x="287" y="134" label="B" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="b"/>
            <s:Button x="331" y="134" label="N" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="n"/>
            <s:Button x="375" y="134" label="M" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="m"/>
            <s:Button x="419" y="134" label="&lt;" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY=","/>
            <s:Button x="463" y="134" label="&gt;" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="."/>
            <s:Button x="507" y="134" label="?" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="/"/>
            <s:Button x="551" y="134" label="Shift" height="43" width="106" fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
        </s:Group>
    </s:Application>
    thanks in advance,
    saran r

  • Using Automator to create a text box of certain size

    I'm very new to using automator... in fact I haven't used it at all, but I am wondering if I can use it to create a text box of the same size each type to type in within preview (a PDF document).  Basically I want to click or push something and have a text box be generated that is the same size each time.
    Thanks!

    1. In the Finder actions you will need:
    - Get Specified Finder Items, and point it towards the folder that will contain the movie.
    - Get Folder Contents - to get what's inside the folder.
    - Filter Finder Items - set to filter by 'Name Extension' 'Is equal to' 'mov' and make sure all your video files have the right extension...
    - Open Finder Items - in QT Player - note that this might cause problems if there are multiple files in the folder...
    Then from the QT Player actions:
    - Play Movies.
    2. Save As... Application, then after saving, drag the app into the login items for the user account.
    3. That's going to need some AppleScript, but this thread should get you started:
    http://discussions.apple.com/thread.jspa?threadID=455825&tstart=0
    Ian

  • How to use Automator to batch convert xls/xlsx files into tab OR pipe delimited text file.

    If you have answer, please provide specific and detailed steps.
    Situation 1:
    Start:
    150+ files in .xls OR .xlsx format
    data contains many characters EXCEPT "Tab"
    Process:
    Use Automator to:
    Select Files from Finder window
    Convert selected files from xls/xlsx to TAB-DELIMITED file format
    End:
    150+ files in .txt format
    files have identical names to those from "Start:"
    data is TAB-DELIMITED
    Situation 2:
    Start:
    150+ files in .xls OR .xlsx format
    data contains many characters EXCEPT | (pipe, vertical bar)
    Process:
    Use Automator to:
    Select Files from Finder window
    Convert selected files from xls/xlsx to |-delimited file format
    End:
    150+ files in .txt format
    files have identical names to those from "Start:"
    data is "|"-delimited

    If your post is addressed to my response then the answer is you have to write your own or search on-line to see if something exists to do what you want.
    As you note there is no pre-built script for this.
    regards
    Message was edited by: Frank Caggiano - Are you certain there isn;t something in Excel to export as a tab delimited file?
    This link Convert An Excel Spreadsheet To A Tab Delimited Text File seems to indicate that the function is in Excel already.

  • Passing inputs not possible using JRA

    I am running SP14.
    I am unable pass input values to my remotely-callable function module using JRA.  However, I can invoke a different RFM successfully and its retrieve exports--IF it doesn't require inputs.  So it seems that only passing inputs is not possible.
    I have tried passing a simple field, as well as passing a structure.  Neither way works for me.
    <u>1. Here is how I tried to pass a simple field:</u>
    MappedRecord input =
    recordFactory.createMappedRecord
    ("Z_GET_EMPLOYEE");
    input.put("USERID", userid);
    MappedRecord output = (MappedRecord) ix.execute(null, request);
    The error I recieve on this is
    <b>The RFM is invoked, but only a blank parameter is passed.</b>
    <u>2.  Here is how I tried to pass a field in a structure:</u>
    MappedRecord request =
    recordFactory.createMappedRecord
    ("Z_GET_EMPLOYEE");
    MappedRecord importstruct =
    (MappedRecord) request.get("RFCINPUT");
    importstruct.put("USERID", userid);
    MappedRecord output = (MappedRecord) ix.execute(null, request);
    The error I recieve on this is
    <b>Field RFCINPUT not a member of Z_GET_EMPLOYEE</b>
    Any thoughts would be very much appreciated.
    Kevin

    Here is another piece of the puzzle.
    I found some coding examples and tried a few more things.
    Using the same JRA technique that I have been using,<b> I can run an existing sap-delivered rfm (STFC_STRUCTURE) successfully and pass in input parameters successfully</b> using its structure (IMPORTSTRUCT)!
    However, I added IMPORTSTRUCT to my new RFM, and I get the same error as before.
    Why can't I pass in parameters to my RFM?
    Kevin

Maybe you are looking for

  • Mass creation of planned order

    Hello, is there a way to mass creat a planned order for a finished product? having same FG mat, plant and prod version. Thanks

  • Trouble with a Flash Component

    I'm sorry if this question has been asked before. If I had more time, I would have searched the forums, but I'm kind of on a time limit. I'm having trouble wtih getting a goto command to translate through a scrollpane. I have a movie clip with about

  • [solved]xorgconf command no found

    I just installed the base system and trying to set up a desktop. I installed xorg but there is no xorg.conf, so I've to generate one by myself. I want to use this command: xorgconf but error shows it not exist. how can I install xorgconf? TKS P.S: I'

  • Unable to see my elements in balance window

    Hi all I am unable to see my elements in balance window when i define balances(Clik on feeds Button ). what are the setup do i need to fallow .

  • Email Spam

    I unthinkingly clicked on a link in an email that was sent to me by a friend. The link brought me to some site for "cash-flow" something or another. Apparently, now I am sending out the same spam emails my friend continuously sends to me. Here are my