AppleScript: ask a user to enter one or more numbers online

Hello

How can I apply in the dialog box display one several channels in a window like this:

Entry three letters in the right column

window show me asks me to enter

first letter]

second letter]

third letter]

Implementation of the language of the AppleScript to display dialog box does not offer multiple inputs, or formatting. However, you can separate your entries with a delimiter and then place these items in a list, where you can refer to these elements.

Here is a demonstration of AppleScript. You enter the text (for example) in this format: A1, B1, C1

use scripting additions

set msg to "Input three letters for each of first letter, second letter, and third letter. Separate your responses by a comma (e.g. aaa,bbb,ccc)"
set delimAnswer to text returned of (display dialog msg default answer "")

set {TID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ","}
set dialogList to text items of delimAnswer
set {TID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
display dialog "Items are: " & return & (items of dialogList) & return & "Item 1: " & (item 1 of dialogList) as text
set AppleScript's text item delimiters to TID
return

Tags: Mac OS & System Software

Similar Questions

  • Asking the user to enter data

    Hello

    I can't find if it is possible to run javascript, that will be window (such as a form) that will contain some text boxes to enter data by user and some check boxes, the user can register/unregister. According to values user will type and user option chosen will be the scrypt will be another feature.

    Thanks in advance for your answers.

    Gregory

    Yes, you can make it appear simple UI elements or complex dialogue boxes.  The details are in the Acrobat JavaScript documentation.

  • How to ask the user to type in the select statement

    Hello

    Can anyone tell me the syntax of the select statement where I can ask the user to enter the value.

    for example, I try to use belowthing, but it displays error

    Select * from emp where empname =: empname

    SP2-0552: Bind "empname' undeclared variable.


    2. is there a dictionary of data table to see all pl/sql procedures and corresponding code?


    Thank you
    Sri

    Try:

    select * from emp where empname='&empname';
    

    L.

  • validate if the user has entered at least one element of the page

    The apex Version: Application Express 4.1.0.00.32
    Web browser: Internet Explorer 8
    Oracle DB: 11g Enterprise Edition Release 11.2.0.1.0

    Is there a way to validate whether a user has entered at least one item on a form?

    I have a function:
    function hasPageValues return a Boolean value
    is
    Boolean v_item_found: = false;
    Start

    for rITM in
    (select nom_element
    of apex_application_page_items
    where application_id = Apex_Application.g_flow_id
    and page_id = Apex_Application.g_flow_step_id
    )
    loop
    -the element's value
    If v (rITM.item_name) is not null then
    v_item_found: = true;
    end if;
    end loop;

    Return v_item_found;
    end hasPageValues;

    I call this function returning a Boolean in my posting of the page. It doesn't seem to work. It always returns false. What am I missing and is there a better way to do this type of validation. Sorry I'm new to APEX. Thank you very much!

    SmV says:
    Also, I added the part output in the above code and it still does not work. Always returns false.

    When you have a problem in the APEX you can use debug mode to trace what actually demand. It is advisable to include the code of instrumentation in your program units that will generate useful debugging information. To do this, use apex_debug_message API:

    create or replace function hasPageValues (
        p_app_id  in pls_integer
      , p_page_id in pls_integer)
      return boolean
    is
      v_item_found boolean := false;
    begin
    
      for rITM in (
        select
                  item_name
                , display_as
        from
                  apex_application_page_items
        where
                  application_id = p_app_id
        and       page_id = p_page_id)
      loop
        apex_debug_message.log_message(rITM.item_name || ' (' || rITM.display_as || '): ' || v(rITM.item_name));
        -- does the item have a value
        if v(rITM.item_name) is not null
        then
          apex_debug_message.log_message(rITM.item_name || ' is not null: exit.');
          v_item_found := true;
          exit;
        end if;
      end loop;
    
      apex_debug_message.log_message('hasPageValues = ' || case when v_item_found then 'TRUE' when not(v_item_found) then 'FALSE' else null end);
    
      return v_item_found;
    
    end hasPageValues;
    

    Without data in the page, this gives the following debug trace:

    ...
    0.19096     0.00084     Perform custom validations:
    0.19180     0.00081     ...Validation "hasPageValues" - Type: FUNC_BODY_RETURNING_BOOLEAN
    0.19261     0.09948     ...Execute Statement: declare function x return boolean is begin return hasPageValues(:app_id, :app_page_id); return null; end; begin wwv_flow.g_boolean := x; end;
    0.29213     0.00144     P6_PRODUCT_IMAGE (File Browse...):
    0.29352     0.00082     P6_IMAGE (Display Only):
    0.29434     0.00075     P6_PRODUCT_ID (Hidden):
    0.29509     0.00105     P6_PRODUCT_NAME (Text Field):
    0.29614     0.00083     P6_PRODUCT_DESCRIPTION (Textarea):
    0.29697     0.00104     P6_CATEGORY (Radio Group):
    0.29801     0.00151     P6_PRODUCT_AVAIL (Radio Group):
    0.29952     0.00079     P6_LIST_PRICE (Number Field):
    0.30030     0.00071     hasPageValues = FALSE
    0.30102     0.00066     ......Did NOT pass
    0.30168     0.00080     Add error onto error stack
    0.30249     0.00079     ...Error data:
    0.30327     0.00299     ......message: Page has no values
    

    While with a set of element values, we get:

    0.07573     0.00107     Perform custom validations:
    0.07680     0.00094     ...Validation "hasPageValues" - Type: FUNC_BODY_RETURNING_BOOLEAN
    0.07774     0.00231     ...Execute Statement: declare function x return boolean is begin return hasPageValues(:app_id, :app_page_id); return null; end; begin wwv_flow.g_boolean := x; end;
    0.08005     0.00105     P6_PRODUCT_IMAGE (File Browse...):
    0.08109     0.00077     P6_IMAGE (Display Only):
    0.08187     0.00094     P6_PRODUCT_ID (Hidden):
    0.08281     0.00074     P6_PRODUCT_NAME (Text Field):
    0.08354     0.00087     P6_PRODUCT_DESCRIPTION (Textarea):
    0.08442     0.00072     P6_CATEGORY (Radio Group):
    0.08514     0.00067     P6_PRODUCT_AVAIL (Radio Group): Y
    0.08581     0.00112     P6_PRODUCT_AVAIL is not null: exit.
    0.08693     0.00076     hasPageValues = TRUE
    

    The two that appear to be the expected behaviours. What happens when you do this?

  • Unable to get the write IMAQ 2 file to ask the user for the path.

    I am currently using an IMAQ 2 writing file to create a .bmp image. I have the VI attached to a control which allows the user to enter the path where they want to save the file. However, I do not want the user to have to ensure that they have typed the path forward the write IMAQ file runs. I want the program to work so that when the write IMAQ file running a window is displayed asking the user where they would like to save the file. If someone could help me out I would be grateful thanks.

    Use the file i/o VI file dialog box > range of advanced features to file

  • Error: "it is not possible to disable the connection at this time. "This connection may be using one or more protocols that don't support Plug-and-play, or it may have been initiated by another user or the system account.

    Original title: unable to disable my lan connection

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • I turn off my connection to the local network, it is showing message.

      It is not possible to disable the connection at this time. This connection may be using one or more protocols that don't support Plug-and-play, or it may have been initiated by another user or the system account.

      Please answer soon

      You have problems with programs

    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hi MVTDA,

    You can try the following methods and check to see if it helps:

    Method 1:

    a. Click Start and select run, type cmd and click OK.

    b. type net stop cryptsvc and press ENTER.

    c. type ren %systemroot%\System32\Catroot2 oldcatroot2, and then press the Enter key.

    d. restart the computer.

    e. open new command prompt and Type net start cryptsvc, and press ENTER.

    Method 2:

    If the same problem persists then you can try to uninstall the network drivers and check.

    a. click the Start button. Select run, type devmgmt.msc and press OK.

    b. Select the network card and right click on it.

    c. now, select Properties.

    d. in the Properties window, on the driver tab, click Uninstall.

    e. After you have uninstalled the drivers, restart the computer.

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Why PL/SQL procedures does not allow users to enter data dynamically at run time?

    Dear all,

    I tried to do a procedure that will search for a group of approval in our database that matches.

    (1) the number of levels

    (2) the number of users by each level

    (3) the id of users by level

    entered by the user.

    I tried various methods to receive user input dynamically at run time, but in vain.

    Finally finished my procedure allowing the user to enter the parameters and then executes the procedure, to which these parameters are passed as arguments. (1 variable for the number of levels and 2 userdefinedarrays with the number of users by level and level respectively)

    Why PL/SQL procedures does not allow users to enter data dynamically at run time?

    Thanks in advance,

    Séverine Suresh

    HEY, Sebastian,

    3035408 wrote:

    Hello Sir,

    My question is that if I'm going to say, the number of levels 5, is there any way by which, at runtime, the procedure prompts me to enter at the start of the number of users per level. Now as soon as I get the number of users per level can I do the procedure ask me to enter the nicknames of the members of each level. I mean, something like a invite.

    Thank you

    Séverine Suresh

    There is no way to do it in SQL or PL/SQL, because not SQL PL/SQL is a way to get user input.  User interaction is a job for your front end, like Zlatko tool suggested in response to #5.  If your front end tool is SQL * Plus, you can use the substtitution variables, as Jarkko showed in response #6.

  • How do you use BER if the value that you want the user to enter is 0?

    I have several TEB on a slide, but the value of input from the user to one of the ETB must be 0.  If the user clicks on the button submit without entering any value in the TEB, which is equal to zero, it will mark it as correct. I tried to set the value of the variable of the ETB 1 and then in the conditional action that I when the variable of the ETB is 0 perform different actions, but I get the same result.  I use 8 Captivate.  Any help would be appreciated!

    Well, I thought that out, but just in case someone already has this problem I'll explain what I did.  I did a tip for the slide action on enter and set the variables TEB 1 requiring the user to enter 0.  So if the user clicks on submit without entering values, the TEBs equal 0 would be marked wrong.

  • How to restrict the user to enter not same value in a table

    Greetings!

    I m asking a second time the upfront because I did not answer preivously, so please don't mind if it's a double.

    It was: I have created a table, as shown in the example.

    I want to validate the user name that you see in my example to restrict the user to enter the same value in the user name field before submitting page.

    for example when the user enters data as u see test in user name in the first row, when it goes to the second row and type same username as test "message will appear or restrict the user who has already typed or in use"...

    http://Apex.Oracle.com/pls/Apex/f?p=45296:1:22797340776918:

    It's all done on typing submit prior to registration.

    Please drivers

    Hello

    I m asking a second time the upfront because I did not answer preivously, so please don't mind if it's a double.

    It was: I have created a table, as shown in the example.

    I want to validate the user name that you see in my example to restrict the user to enter the same value in the user name field before submitting page.

    for example when the user enters data as u see test in user name in the first row, when it goes to the second row and type same username as test "message will appear or restrict the user who has already typed or in use"...

    http://Apex.Oracle.com/pls/Apex/f?p=45296:1:22797340776918:

    It's all done on typing submit prior to registration. >

    Stick the code below into the Page header > Javascript > run when loading the Page field.

    $('[input[name="f03"]').blur(function(){
      if ($('input[name="f03"][id!="'+$(this).attr('id')+'"]').val() == $(this).val()) {
         alert('Duplicate Entry.');
         var x = $(this).attr('id');
         setTimeout("(function(p){$('#'+p).focus();})('"+x+"')",100);
      }
    })
    

    Note:
    a.F03 is the 'name' of your column of username in the form of tables.
    b. This only valid values. If your tabular presentation has multiple pages then all of the rows are not currently displayed will be ignored.

    See you soon,.

  • Pair cant my apple wireless keyboard for my new tv4 apple... He will not be the Apple TV and not ask the pairing code enter... Anyone know what I need to do?

    Pair cant my apple wireless keyboard for my new tv4 apple... He will not be the Apple TV and not ask the pairing code enter... Anyone know what I need to do?

    The ATV4 does not work with any wireless keyboard. The only alternative to the built-in function 'keyboard' is the iOS app.

  • In Outlook 2003, I keep getting a popup asking the user ID and password.

    In Outlook 2003, I keep getting a popup asking the user ID and password.  This continues after I provide the information requested.  How can I stop this?

    When it happens, it is usually a small problem with my ISP (AT & T).

    When AT & T fixes their mail server, I left get these annoying popups.

    I suggest that you contact your ISP.

  • Received an email asking for user information and password because of the DGTFX virus

    Original title: DGTFX Virus

    I received an email to this address * address email is removed from the privacy * asking for user information and password because of the virus of the DGTFX if I'm not so-called miscrosoft will terminate my account.  Is it a scam? or legit?

    Thank you

    Eric Schnepf

    It's a scam.  Happy that you didn't fall for it.

    http://www.Hoax-Slayer.com/dgtfx-virus-phishing-scam.shtml

    http://www.Microsoft.com/security/online-privacy/phishing-scams.aspx

  • can I transfer my contacts from my hotmail account to my outlook express or I must enter one by one?

    can I transfer my contacts from my hotmail account to my outlook express or I must enter one by one?

    Hi antonycox,

    You can read the following article and see if it helps.

    How to export a Hotmail address book to a Microsoft Outlook Express address book

    If this is not enough, you can also publish your application to Windows Live Solution Center.

    Hotmail - Windows Live Solution Center Portal

  • Can I create a profile user account on one separate hard disk other than 'C' or can I move an active profile to another hard drive?

    Can I create a profile user account on one separate hard disk other than 'C' or can I move an active profile to another hard drive?

    No, you cannot create profile on something other than the system drive. You cannot move the entire profile, but you can move directories in sketch.

    http://www.edbott.com/weblog/?p=1371

    MS - MVP - Elephant Boy computers - don't panic!

  • How do you determine the steps to use when they need to change the info in the diaglog box "WINDOWS SECURITY" of win 7, which asks the user and the password?

    My background: I can only see this dialog box titled WINDOWS SECURITY when I want to access my log to router with my office router connection. The dialog box refers specifically to my router, and asking a user and a password.

    A long time ago that I asked to remember and, of course, I forgot it and the location that I wrote. Now I am unable to determine what I thought, would be a simple reset and the steps that allow me to perform a reset. After a series of search phrases on Bing, and in the community of the SP as well as Win 7 Pocket administrator index I can't find the steps because the dialog box, it seems with the title of the WINDOWS SECURITY is too general.

    I need to install a new router and need to change the user and password. I don't know if user and password are unique to the company of router or Microsoft Win 7. Nevertheless, I can reset thinking them they are unique to me and Microsoft because there is no query such as, "you forgot your password?', whereby get you a temporary.  These steps are already stationed in the community and I just can't get into the research phase right? (What is related to IE 11?) Thank you.

    > I need to install a new router and need to change the user and password.

    Do you want to connect to your old router?  If Yes, most routers have built-in switch you tripping with a paper clip or similar to force a reset to the factory settings.  You can then access the default connection.

    If it's the new router, it should be accessible with the factory default login. If you don't know please post that make the exact and the model of the router.

Maybe you are looking for

  • Satellite L500 - what is the third partition on the HARD drive?

    I see that I have three primary partitions already made on this new L500 ~.1.) 2GiB/dev/hda1 to Toshiba Recovery,.2.) 330 + giB (C :) for Vista and 3.) 12GiB/dev/hda3?. I need windows dualboot both valuation and partition for Linux and the storage in

  • Where XP does not store the file in browser's history?

    Hello everyone, ok so I don't know Vista and Windows 7 stores the browser history in the same place but as on XP? Windows 7 it stores here: C:\Users\[USER]\\AppData\Local\Microsoft\Windows\History Where XP does not store the browser history? Also wha

  • Screen flickering in browser Chrome B1 - A71

    Anyone with a B1 - A71 (or other tablets besides) affected by the flicker of screen is inside Chrome? The problem only happens when scrolling of pages and reading the inside Chrome YouTube videos. Thank you Chrome version: 31.0.1650.59; To Andoid: 4.

  • Help, please! Cannot access the web after connected to the VPN

    Hello I'm a newbie on Cisco products.  I configured a Cisco ASA 5505 with VPN firewall.  However, I can't access the web after I connected to the remote IPSec VPN.  I also cannot connect to the bands using the intellectual property.  But I can connec

  • OVERLOADS of procedures in a FORM library

    You can overload a procedure in a FORM library?I created a procedure in a library with 3 different versions with 3 different parameters, i.e.procxx (number 1)procxx ((par1 par2 varchar2, number)procxx (number, date of proc3 par1)When I try to add the