I need a script that only allows numerics to be keyed in

I need a script that only allows numerics to be keyed in.

Thank you so very much.  You kindness is appreciated.
K Wiley
On Thu, Oct 17, 2013 at 3:46 AM, Gilad D (try67)

Similar Messages

  • I need a script that will find the computer a user last logged into.

    I am still learning scripting, I need a script that will allow me to pull in usernames from a csv file. Find what computer they last logged into and output that to an csv file.
    I have looked all over and can't find exactly what I need.
     I found the following script but I need  to add the resuitsize unlimited but can not figure out where to put it we have a large environment. Also I need to be able to grab username from a csv file. Any assistance you can provide is appreciated.
    ##  Find out what computers a user is logged into on your domain by running the script
    ##  and entering in the requested logon id for the user.
    ##  This script requires the free Quest ActiveRoles Management Shell for Active Directory
    ##  snapin  http://www.quest.com/powershell/activeroles-server.aspx
    Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction SilentlyContinue
    $ErrorActionPreference = "SilentlyContinue"
    # Retrieve Username to search for, error checks to make sure the username
    # is not blank and that it exists in Active Directory
    Function Get-Username {
    $Global:Username = Read-Host "Enter username you want to search for"
    if ($Username -eq $null){
    Write-Host "Username cannot be blank, please re-enter username!!!!!"
    Get-Username}
    $UserCheck = Get-QADUser -SamAccountName $Username
    if ($UserCheck -eq $null){
    Write-Host "Invalid username, please verify this is the logon id for the account"
    Get-Username}
    get-username resultsize unlimited
    $computers = Get-QADComputer | where {$_.accountisdisabled -eq $false}
    foreach ($comp in $computers)
    $Computer = $comp.Name
    $ping = new-object System.Net.NetworkInformation.Ping
      $Reply = $null
      $Reply = $ping.send($Computer)
      if($Reply.status -like 'Success'){
    #Get explorer.exe processes
    $proc = gwmi win32_process -computer $Computer -Filter "Name = 'explorer.exe'"
    #Search collection of processes for username
    ForEach ($p in $proc) {
    $temp = ($p.GetOwner()).User
    if ($temp -eq $Username){
    write-host "$Username is logged on $Computer"

    If you are querying by user "resultset size" will be of no use.
    You also have functions that are never used and the body code doe snot look for users.
    Here is what you scrip looks like if printed well.  It is just a jumble of pasted together and unrelated items.
    ## Find out what computers a user is logged into on your domain by running the script
    ## and entering in the requested logon id for the user.
    ## This script requires the free Quest ActiveRoles Management Shell for Active Directory
    ## snapin http://www.quest.com/powershell/activeroles-server.aspx
    Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction SilentlyContinue
    $ErrorActionPreference = "SilentlyContinue"
    # Retrieve Username to search for, error checks to make sure the username
    # is not blank and that it exists in Active Directory
    Function Get-Username {
    $Global:Username = Read-Host "Enter username you want to search for"
    if ($Username -eq $null) {
    Write-Host "Username cannot be blank, please re-enter username!!!!!"
    Get-Username
    $UserCheck = Get-QADUser -SamAccountName $Username
    if ($UserCheck -eq $null) {
    Write-Host "Invalid username, please verify this is the logon id for the account"
    Get-Username
    get-username resultsize unlimited
    $computers = Get-QADComputer | where { $_.accountisdisabled -eq $false }
    foreach ($comp in $computers) {
    $Computer = $comp.Name
    $ping = new-object System.Net.NetworkInformation.Ping
    $Reply = $null
    $Reply = $ping.send($Computer)
    if ($Reply.status -like 'Success') {
    #Get explorer.exe processes
    $proc = gwmi win32_process -computer $Computer -Filter "Name = 'explorer.exe'"
    #Search collection of processes for username
    ForEach ($p in $proc) {
    $temp = ($p.GetOwner()).User
    if ($temp -eq $Username) {
    write-host "$Username is logged on $Computer"
    I suggest finding the original code then use the learning link at the top of this page to help you understand how it works in Powershell.
    ¯\_(ツ)_/¯

  • Is there a script that would allow unique disc names on double albums? (I don't want to put them in the album title or comments.)

    I have iTunes 11.2.2, and I've recently made use of iTunes' "disc x of y" feature, instead of entering the disc number in the album title like I used to. I made this change because putting disc numbers in the album-title field makes the two discs appear as two separate albums, with the artwork appearing twice, which I didn't want. The downside of using the "disc x of y" feature, however, is that for double albums where the two discs have unique titles, rather than the default "disc one" and "disc two" -- say, for example, the Red Hot Chili Peppers' album Stadium Arcadium, where the discs are called "Jupiter" and "Mars" --  there is no way to label the disks with their unique titles and still keep them within one album entry. I don't want to put these titles in as a comment or anything like that either. What I'm really wondering is whether it is possible to write a script that would allow me to change where it reads "disc 1" to a unique title, at least within the album section of iTunes.

    Certain tags are limited as to format.  I am pretty sure the disc number field only allows numeric entries.  You can send feedback to Apple suggesting changes in iTunes but since this is a somewhat unusual feature I doubt it will be high priority.
    http://www.apple.com/feedback/itunesapp.html

  • I need a script that copies the filename into the file

    I need a script that copies the filename into 4th column of each line in the text doc file.
    I have over 2000 different file names each containing 6 columns and ~50-100 rows.
    I can do this manually using this script:
    awk '{print $1"\t"$2"t\"$3"\t <name> \t"$6}'
    But I would like an automation command or script. Is there any command that I can use instead of <name> that will copy the filename into the column?
    Thanks
    Monica

    Oops, I forgot the redirect to a file. It's not a good idea to edit files in place. A script could fail and you're left with at least one file ruined. It's better to create new files then delete the old files.
    for file in *; do
        while read col1 col2 col3 col4 col5 col6; do              
            printf "%s\t%s\t%s\t%s\t%s\n" $col1 $col2 $col3 $file $col6
        done < $file > n$file
    done
    You could narrow the files listed such as
    for file in *.tsv
    and redirect the new files to another directory. Such as
    done < $file > /absolute/path/to/directory/$file

  • Does anyone know if it is possible receiving a signature on the quickbooks mobile or if there is an app that i need to dowmload that will allow it i also have go payment it will accept a signature i just need a signature on an invoice so i can email

    does anyone know if it is possible receiving a signature on the quickbooks mobile or if there is an app that i need to dowmload that will allow it i also have go payment it will accept a signature i just need a signature on an invoice so i can email

    No one here would be privi to Apple's plans on the matter. Submit your feedback to Apple requesting such a feature:
    http://www.apple.com/feedback
    In the interim, there is a reminder program for pretty much every need and taste in the App Store.

  • Help with script to only allow one radio button

    i have made a simple script that checks to see if a radio
    button is selected or not, if more then one is picked it turns the
    hilite of the others off. The problem is i have 28 radio buttons
    over 7 scenes i want to allow one button to be on from each scene
    but the way my code works now is it turns off every button apart
    from the last one choosen. Is there a way to do this has one
    behaviour or do i need to have a altered version on each scene?

    There are many ways to do this - one way or the other you
    need to group the buttons
    1) Based on your example you could simply use the member
    names for grouping - instead of just comparing the name of the
    clicked member, compare whether or not char[2] of the name is the
    same as the clicked member. If so, deselect.
    2) You have the me parameter in your code, which suggests you
    are writing a behaviour which is attached to each radio on the
    stage. You could use sendAllSprites from the clicked member to tell
    other members to deselect. This way it will only affect any other
    radios on stage at the time and you don't need to hard code.
    Something like (pseudo-code)
    on mouseUp me
    clickedName = sprite(me.spriteNum).member.name
    sendAllSprites(#radioclicked, me, clickedName )
    end
    on radioclickedme, clickedName
    if sprite(me.spriteNum).member.name = clickedName then
    sprite(me.spriteNum).member.hilite = 1
    else
    sprite(me.spriteNum).member.hilite = 0
    end if
    end
    hth
    johnAq

  • Need a script that will put photo on white background

    I am currently using CS3 Photoshop on a MacPro Intel
    I have about 31,000 photos that I need to take the background out of. Most of the photos were not shot against white, black or green screens. These are mostly images of plumbing products. The majority of these images do have clipping paths. I am currently having to manually select the path, make selection, select inverse, cut the selection, save, close. I have tried to create a script to do this, but haven’t been successful in doing so yet. I have been able to create basic scripts in the past without issues, but this one has me stumped. Any help or direction would be greatly appreciated.

    As long as the files do have clipping paths this should get you started. It applies the clipping path as a vector mask. All you should have to add is the save and close part. If you need help with that let me know what format you want to save and the save options.
    // apply clipping path as vector mask
    var clipPathIndex = clippingPathIndex();
    if( clipPathIndex != -1 ){
         activeDocument.layers[ activeDocument.layers.length -1 ].name = 'Converted Background';// rename bottom layer incase isBackground
         activeDocument.pathItems[ clipPathIndex ].select();
         createVectorMask();
         activeDocument.pathItems[ clipPathIndex ].deselect();
         // or
         //activeDocument.pathItems[ clipPathIndex ].remove();
    // Function: clippingPathIndex
    // Description: Gets the index of the activeDocument's clipping path
    // Usage: clippingPathIndex()
    // Input: None
    // Return: Index as Integer. -1 if there is no clipping path
    function clippingPathIndex(){
         var ref = new ActionReference();
              ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
         var desc = executeActionGet( ref );
         var clippingPath =  desc.getObjectValue(charIDToTypeID("Clpg"));
         return  clippingPath.getInteger(charIDToTypeID("ClpI" ));
    // Function:  createVectorMask
    // Description: Make vector mask from active path
    // Usage: createVectorMask();
    // Input: None
    // Return: -1 if failed
    function createVectorMask() {
      try{
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putClass( charIDToTypeID('Path') );
        desc.putReference( charIDToTypeID('null'), ref );
            var mask = new ActionReference();
            mask.putEnumerated( charIDToTypeID('Path'), charIDToTypeID('Path'), stringIDToTypeID('vectorMask') );
        desc.putReference( charIDToTypeID('At  '), mask );
            var path = new ActionReference();
            path.putEnumerated( charIDToTypeID('Path'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc.putReference( charIDToTypeID('Usng'), path );
        executeAction( charIDToTypeID('Mk  '), desc, DialogModes.NO );
      }catch(e){ return -1; }

  • I need a script that can delete duplicate songs within iTunesMedia but not shown on iTunes GUI

    I copied entire music in itunes library A and paste it in itunes library B. I subsequently experimented with import playlist and import .XML files of itunes library A to itunes library B. I notice songs in music folder have been duplicated i.e. the gigabyte of music folder greated than gigabyte shown on itunes GUI.
    Wow, I never knew importing .XML file (through import playlist) will import the songs, the metadata, the artwork and the entire playlist which i never created in the first place (I dont know what else had been imported).
    Anyway, the songs are not duplicated on the iTunes GUI. They are duplicated within iTunesMedia\Music... folders. Can someone provide me a Script to delete these approx. 100GB duplicates. The DeDuper Script I have can only delete duplicate songs displayed on iTunes GUI.
    Thanks for your help as usual.

    The script is only intended to work on things that iTunes would treat as "Exact Duplicates" and it only works on files that are connected to the iTunes library. Before starting all files in your media folders should be added to the iTunes library.
    In the context of the earlier thread, type 1 or logical duplicates are multiple entries to the same file and type 2 or physical duplicates are multiple copies of the same file. Type 2 dupes will have identical tag information (at least they will unless you edit one of them) and the same file size so will thus display as "Exact Duplicates" if present.
    The script avoids the more complex problem of trying to detect and selectively remove what I called type 3 duplicates, that is alternate recordings or rips of the same tune, principally because that is a much harder problem to automate, but also because "best track to keep" from a set of potential candiates will be a subjective matter.
    The current version of the DeDuper script is 1.0.1.2 dated 2nd December 2011. I've just downloaded and run it on a test library. I had 35 tracks that I first duplicated by copying the Music folder into Automatically Add to iTunes. I then renamed Music as Music1, selected each file in turn so that iTunes would "know" the files were missing, renamed the folder back to Music and then dragged & dropped the folder into the library. This created a library of 140 tracks, 35 originals, 35 physical dupes and 70 logical dupes . The script ran as designed and reduced the library back down to 35 tracks with the 35 physical dupes being sent to the recycle bin.
    tt2

  • I need a script that can save images in whatever directory they reside in

    I am working on a project where I have over 1500 directories that have multiple .TIF images in each one. I am looking for a solution where I can run a script (which may or may not call on actions) that allows me to save each .TIF as a .PSD and again as a .PNG (with specific optimization settings) in the same directory as the original .TIF. The main idea here is I need to be able to run the script and walk away. So I'm looking for a one press option for each directory.
    I can create an action that saves the files in the proper format but when I record the action it saves the file in "folder 1". When I run this action again on "folder 2" it saves the images in "folder 1."  I could certainly make adjustments in the "Batch" dialog box by choosing the over ride "save as" function but the goal is to not have to do that 1500 times.
    So, my question is, is there a single script out there that can save images next to the original .TIFFS regardless of what directory the reside in? I'm no scripting guru, but perhaps the code uses something with a "this" command to specify the folder to save images to? Is this even possible? If so, are there web sites I can buy this from? Is there a scripting community that can provide these services?
    Any help to point me in the right direction is much appreciated.
    Mike

    You could try my Picture Processor ...
    http://www.ps-scripts.com/bb/viewtopic.php?f=10&t=3409&sid=3925f7039423a428ed082feba2c0aee 9
    Use the second download.

  • Multiselect that only allows single selection

    Good afternoon,
    I have two multiselect lists on a page. I need to modify the second list so that <ctrl> and <shift> clicking is disabled, and only one item can be selected at a time. Can this be done?
    I understand it would function better as a select dropdown list, but my customer prefers the look of the multiselect.
    Thanks,
    Aaron

    Try this (this assumes your multi-select is called P21_MS)
    http://apex.oracle.com/pls/otn/f?p=20569:21
    HTML Header:
    <script type="text/javascript">
    function check(){
      var list=$x('P21_MS');
      var count = 0;
        for (i=0; i<list.options.length; i++) {
          if (list.options.selected) {
    count++;
    if (count > 1){
    //clear box
    for (i=0; i<list.options.length; i++) {
    list.options[i].selected = false;
    alert('You may only select 1 option');
    </script>
    HTML Form Element Options for P21_MS:
    onchange="check();"Keep in mind that Javascript can be disabled, so if there is a business rule attached to not selecting more than 1, include a regular Apex validation that does the same check.

  • Can I activate a 5S on a network that only "allows" up to an iPhone 5?

    Hello, I am looking to start service with FreedomPop using a phone. They currently only sell the iPhone 5, but say the 4 and 4s are okay to bring to the network. They even told me the 5S and 5C were not allowed due to some software concern...
    Can someone please let me know how they would be able to differentiate between phones they don't have on their person? If I were to tell them I have an iPhone 5 then give them the MEID/IMEI for a 5S, would they be able to tell? They use Sprint's networks and don't use a SIM card that I am aware of (which is the only significant difference I see between the 5 and 5s/5c - switch from micro to nano SIM). The 5s/5c is a much more capable device and compatible with Sprint's networks, so where does the issue come from, if there truly is one? Thank you ahead of time for your help.

    All iPhones, with the exception of the iPhone 4 CDMA, use and require a SIM card.
    They will be able to tell the model of phone when it connects to their network.  If they say the 5S is not supported, it's not supported.
    Only FreedomPop can ellaborate on why the device(s) are not compatible with their network.

  • How does one handle Stock agencies that only allow 64 characters for keyword lists

    since LR4 puts the keywords in alphabetical order the keywords would be truncated and my most popular keywords would not make it to agencies search engines. Anybody know of a way to put the most powerfull keywords up the front. Or do I need to edit keywords specifically for this agency thus doubling my work.

    The Enet-485 contains several levels of buffers which impact how flow control works. When you write data from the PC the data buffer is transmitted to the Enet-485 where it is stored to be transmitted out of the desired port. In addition to deep software buffers, the Enet-485 also has a deep (128 byte) hardware FIFO that lays just above the physical (RS-485) layer.
    This FIFO is "RTS/CTS" sensitive and can react (ie: "turn off") very quickly in response to RTS/CTS handshaking. However the software flow control (XON/XOFF) is handled by the Enet-485 firmware. Thus if the TX FIFO has more then 5 bytes and an XOFF is received, it is not possible to turn off the serial stream until the FIFO is empty, which causes a data overrun.
    The reason why wait
    ing between bytes works (but is slow) is that at any time an XOFF character is received, the FIFO will contain less than 5 bytes and thus not overflow.
    However, if you know the size of the receive buffer, then is it possible to send data in lagre (40k) chunks with a slight pause between to allow for the XOFF to be received and processed? You can guesstimate the timing based on the baudrate, buffer size, and network delay (typically ~100ms but can be more).

  • Need WP implies that Oracle allow/certify 3rd party MML agent installation on Exadata

    Hi,
    I need WP that implies Oracle allow/certify 3rd party MML agent installation on Exadata.. I know its allowed but where is the paper mentioning this
    BR,
    Ammar

    Hi Joe,
    I configured a monitoring/dba landscape for two SAP Portals and one SAP BusinessObjects system on a SAP landscape by using DBACOCKPIT, at a customer site. These systems are running on AIX, Windows 2003/2008 servers and attached to the central monitoring system with standalone SAP gateway installations.
    One another reason to not use OS based commands or 3rd party tools is security. We are stopping and disabling most of the services on OS where SAP system is running on, because of the security reasons. I faced more security gaps on rsh/ssh and the other tools than standalone SAP Gateway installations. As you can figure out that rsh/ssh is getting more attack than standalone SAP Gateway, because of well known by the IT world.
    As a summary of it, this depends to point of view and policy of the IT organization. I applied both ssh and standalone SAP Gateway solutions at my customers, but I choose standalone SAP Gateway installation among of them.
    Best regards,
    Orkun Gedik

  • How is 2x2Gb "divided" on a system that only allows 3Gb?

    I currently have 1Gb + 2Gb installed in my Macbook. Because of some good fortune, I have access to a 2x2Gb set. Since the 1+2 setup does not take advantage of the DDR2, I figured I'd go for the 2-3% boost (small, I know) from paired chips. My question concerns how the Macbook will allocate the two chips. Will it work in a 2x1.5Gb "mode" or use "1+2"? If the latter, it's not worth installing since the pairing would be no different from a speed perspective (I assume) than my current physical setup.

    Kappy wrote:
    I thought I was pretty clear.
    Your answer sounded like you were saying the system would use all 4Gb, which is why I felt the need to clarify. My understanding is that the pre-Santa Rosa chips do not use the last 1Gb at all. They use 3Gb total (1Gb for system, 2 for programs). I haven't read anything that says it's even a matter of the typical limitation of the 32-bit OS but is, instead, an Apple hardware setting (i.e. PC's use 3.3Gb whereas pre-Santa Rosa's only use 3Gb). I may have this completely wrong and it's identical to the PC 32-bit "problem." If so, my original question becomes moot since I already know that answer.
    In case you didn't notice 2x1.5 GB and 1+2 GBs both equal 3 GBs.
    That does not mean they are the same. I'm very aware of the Math. Mismatched chips don't get the benefit of dual-channel.
    There is no "2x1.5 GB mode."
    Hence my use of quotation marks: to show that I was aware of this but still needed to describe the situation. Nevertheless, the mapping is important since mapping out 1Gb on one chip could have an adverse impact on performance compared to mapping out 512 Mb on each.
    If you are asking does installing a matched pair provide the benefit of dual-channel interleaving, then the answer is 'Yes."
    Yes, that's what I was asking. I guess I too thought I was clear. Even if the increase of 2x2 is 2-3% over 1+2, for the $10 I'm paying to do it, it's worth the money.
    Message was edited by: Xian Rinpoche
    Message was edited by: Xian Rinpoche

  • Can I use Acrobat 11to download pdf that only allows me to read, enter data, and print?

    I need to complete gov. forms available online as pdf.  I can review, enter data and print, but I cannot save to my computer or anywhere else.  I need to be able to save so I can return to the form and enter information as I access it.  Can this be done if I purchase Acrobat 11 and, if so, can I get the Standard edition?  I currently only have Reader.

    Yes, if you upgrade to at least Acrobat Standard you will be able to save. Since you can't save with Reader (assuming 11), the forms are probably XFA forms (created with LiveCycle Designer), which must be Reader-enabled in order to be saved with Reader. Reader 11 can save non-enabled AcroForms (forms created with Acrobat), but not non-enabled XFA forms. If you have a Reader version prior to 11, try using Reader 11 to see if it will save.
    If you can provide a link to one of the forms, I can tell you for sure what the minimum requirement for saving is.

Maybe you are looking for