Need help in scripting

Hello,
Is it possible to check whether the browser is enabled for Java Script in JSP?.
If yes, then pls give me how to check with some example.
Regards
Anand

Only with some tricks
On your opening page use an hidden input field, fill this with a certain value with Javascript and check that value when your submitting from that opening page.
If it aint set then Javascrip is disabled.

Similar Messages

  • Need Help with scripting for Automator/AppleScript.

    Hi everybody,
    I am building a small app for my mac, What I need is a script that can rename a file that I drop on it.
    and example being:
    example.jpg
    (when I drop it on the app, I want the app to change the filename of the document to "Image.jpg"
    I have tried this with Automator, but it requires that I specify the file to be changed, what I need is something that will change the name of any file I drag onto it.
    I am using it for application specific files.
    Kind regards,
    Pete.
    iBook G4; 60GB Hard Drive, 512MB RAM, Airport Extreme    

    Open the Script Editor in the
    /Applications/AppleScript/ folder and enter the
    following:
    on open(the_file)
    tell application "Finder"
    set name of the_file to "Image"
    end tell
    end open
    Save this script as an application.
    (11347)
    this script compiled correctly; however when run it returned the following error "Can't set name of (the_file) to "Image.jpg"
    I am also given the option of editing the script or just quitting.
    thanks for your help

  • Need Help in scripts relating to subscripts

    I have encountered a HUGE problem in flash and I desperately
    need urgent help from flash experts out there so please hear me
    out. Here it goes >> I am currently working on ‘fill in
    the blanks’ questions and answer for my chemistry project and
    the thing is , I need to ENABLE other people who are going to do
    the questions I created to type ‘subscripts’ for
    example ‘3 2’. Now I have seen similar questions from
    other flash documents is also requires entering of
    ‘subscripts’ and they used some script in the flash
    document, WHICH is the user( person who is answering the questions)
    can type in normal fonts as well as subscripts by HOLDING down ALT
    key and typing the number, and the subscript would appear in the
    selected INPUT BOX. i have attached an image below for better
    understanding of my problem.
    http://img239.imageshack.us/my.php?image=problemyd5.jpg
    apart from that, i am also looking for a script that i can insert
    into my 'check' button at the bottom of the page to check the
    answers. To be specific, the script must be able to check the
    answers WHICH also includes SUBSCRIPTS for example '
    HNO[SIZE="2"]3[/SIZE] or H[SIZE="2"]2[/SIZE]O ' as I fail to obtain
    the first script i mentioned which is the script that enables one
    to type in normal fonts AND subscripts by holding ALT key or
    something similar to that, i also fail to come up with a proper
    script for my 'check' button to check my answers. I hope readers of
    this passage are able to understand what i am trying to say here as
    well as help me solve my dilemma that i am facing. IN a nutshell, i
    am need 2 types of scripts now .....which are
    1) script that enables one to type in subscript by holding
    down the 'alt' key and typing the letter at the same time 2)and the
    second script which when embedded to my 'check' button, when
    CLICKED will be able to check the answers which includes
    SUBSCRIPTS.
    if you need any further information to have a better
    understanding, do tell and i will provide more pictures or even
    flash documents.

    No I am just using SET DATE MASK command to make it appear as required but that is changing my value at the other window also so I dont want this date format anywhere else other than footer.
    Thanks
    Sudharshan

  • Need Help in scripts relating ot subscripts

    I have encountered a HUGE problem in flash and I desperately
    need urgent help from flash experts out there so please hear me
    out. Here it goes >> I am currently working on ‘fill in
    the blanks’ questions and answer for my chemistry project and
    the thing is , I need to ENABLE other people who are going to do
    the questions I created to type ‘subscripts’ for
    example ‘3 2’. Now I have seen similar questions from
    other flash documents is also requires entering of
    ‘subscripts’ and they used some script in the flash
    document, WHICH is the user( person who is answering the questions)
    can type in normal fonts as well as subscripts by HOLDING down ALT
    key and typing the number, and the subscript would appear in the
    selected INPUT BOX. i have attached an image below for better
    understanding of my problem.
    http://img239.imageshack.us/my.php?image=problemyd5.jpg
    apart from that, i am also looking for a script that i can insert
    into my 'check' button at the bottom of the page to check the
    answers. To be specific, the script must be able to check the
    answers WHICH also includes SUBSCRIPTS for example '
    HNO[SIZE="2"]3[/SIZE] or H[SIZE="2"]2[/SIZE]O ' as I fail to obtain
    the first script i mentioned which is the script that enables one
    to type in normal fonts AND subscripts by holding ALT key or
    something similar to that, i also fail to come up with a proper
    script for my 'check' button to check my answers. I hope readers of
    this passage are able to understand what i am trying to say here as
    well as help me solve my dilemma that i am facing. IN a nutshell, i
    am need 2 types of scripts now .....which are
    1) script that enables one to type in subscript by holding
    down the 'alt' key and typing the letter at the same time 2)and the
    second script which when embedded to my 'check' button, when
    CLICKED will be able to check the answers which includes
    SUBSCRIPTS.
    if you need any further information to have a better
    understanding, do tell and i will provide more pictures or even
    flash documents.

    No I am just using SET DATE MASK command to make it appear as required but that is changing my value at the other window also so I dont want this date format anywhere else other than footer.
    Thanks
    Sudharshan

  • Need help writing script for Digital DAQ

    Hello,
    I am trying to write an aquisition program for digital input coming from a hall sensor.  I will be passing a magnet over a hall sensor on a motor and want to record the number of rotations.  I have pasted together a script based on various websites, but it isn't functioning the way I want.  I would like to be able to collect data points indefinately, or fixed, and then print out the resulting count.  I have attepted to use the ctypes wrapper in Python.  The NI functions remain unchanged though, so if you don't know Python it shouldn't be a problem to read.  I am using a NI PCI-6503. 
    NI PCI-6503
    NI PCI-6503
    NI PCI-6503
    The code:
    # C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Acq-Int Clk\Acq-IntClk.c
    import ctypes
    import numpy
    nidaq = ctypes.windll.nicaiu # load the DLL
    # Setup some typedefs and constants
    # to correspond with values in
    # C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.h
    # the typedefs
    int32 = ctypes.c_long
    uInt32 = ctypes.c_ulong
    uInt64 = ctypes.c_ulonglong
    float64 = ctypes.c_double
    TaskHandle = uInt32
    # the constants
    DAQmx_Val_ChanForAllLines = int32(0)
    def CHK(err):
    """a simple error checking routine"""
         if err < 0:
              buf_size = 200
              buf = ctypes.create_string_buffer('\000' * buf_size)
              nidaq.DAQmxGetErrorString(err,ctypes.byref(buf),buf_size)
              raise RuntimeError('nidaq call failed with error %d: %s'%(err,repr(buf.value)))
    # initialize variables
    taskHandle = TaskHandle(0)
    max_num_samples = 1000
    # array to gather points
    data = numpy.zeros((max_num_samples,),dtype=numpy.float64)
    # now, on with the program
    CHK(nidaq.DAQmxCreateTask("",ctypes.byref(taskHandle)))
    CHK(nidaq.DAQmxCreateDIChan(taskHandle,'Dev1/port1/line1',"", DAQmx_Val_ChanForAllLines))
    CHK(nidaq.DAQmxStartTask(taskHandle))
    read = int32()
    CHK(nidaq.DAQmxReadDigitalU32(taskHandle,int32(-1),float64(1),DAQmx_Val_GroupByChannel,data.ctypes.data,max_num_samples,ctypes.byref(read),None))
    print "Acquired %d points"%(read.value)
    if taskHandle.value != 0:
         nidaq.DAQmxStopTask(taskHandle)
         nidaq.DAQmxClearTask(taskHandle)
    print "End of program, press Enter key to quit"
    raw_input()
    This script returns "Acquired 1 points" immediately, regardless of how many times the hall sensor has been switched.  
    I apologize for the sloppy code, but I understand very little of the underlying principles of these DAQ functions, despite reading their documentation.  Seeing as how the code does not return an error, I am hoping there is just a minor tweak or two that will be farily obvious to someone with more experience.  
    Thanks

    Hey Daniel,
    Most of this script is from http://www.scipy.org/Cookbook/Data_Acquisition_with_NIDAQmx. 
    I needed to run the ReadDigitalU32 function in Python loop because my DAQ device did not support timed aquistion and I don't have LabView.  
    import numpy
    import time
    import ctypes
    nidaq = ctypes.windll.nicaiu # load the DLL
    # Setup some typedefs and constants
    # to correspond with values in
    # C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.h
    # the typedefs
    int32 = ctypes.c_long
    uInt32 = ctypes.c_ulong
    uInt64 = ctypes.c_ulonglong
    float64 = ctypes.c_double
    TaskHandle = uInt32
    # the constants
    DAQmx_Val_Cfg_Default = int32(-1)
    DAQmx_Val_Volts = 10348
    DAQmx_Val_Rising = 10280
    DAQmx_Val_FiniteSamps = 10178
    DAQmx_Val_GroupByChannel = 0
    DAQmx_Val_ChanForAllLines = int32(0)
    # initialize variables
    taskHandle = TaskHandle(0)
    max_num_samples = 10000
    data = numpy.zeros((max_num_samples,),dtype=numpy.float64)
    read = uInt32()
    bufferSize = uInt32(10000)
    def CHK(err):
    """a simple error checking routine"""
         if err < 0:
              buf_size = 200
              buf = ctypes.create_string_buffer('\000' * buf_size)
              nidaq.DAQmxGetErrorString(err,ctypes.byref(buf),buf_size)
              raise RuntimeError('nidaq call failed with error %d: %s'%(err,repr(buf.value)))
    # Start up DAQ
    CHK(nidaq.DAQmxCreateTask("",ctypes.byref(taskHandle)))
    CHK(nidaq.DAQmxCreateDIChan(taskHandle,"Dev?/port?/line?","", DAQmx_Val_ChanForAllLines))
    CHK(nidaq.DAQmxStartTask(taskHandle))
    #initialize lists and time 1 
    t1 = time.time()
    times = []
    points = []
    while True:
         try:
              CHK(nidaq.DAQmxReadDigitalU32(taskHandle,int32(-1),float64(1),
              DAQmx_Val_GroupByChannel,data.ctypes.data,uInt32(2*bufferSize.value)
             ,ctypes.byref(read), None))
              t2 = time.time()
             #data[0] is the position in the numpy array 'data' that holds the value aquired
             #from your device
             points.append(data[0])
             times.append(t2 - t1) 
             t1 = time.time()
             #Choose time interval between data aquisition
             time.sleep(.02)
         except KeyboardInterrupt:
              break
    #process the lists of points and time intervals as you so choose
    Thanks for the help!
    Paul

  • Need help with scripting Jumps

    Hi - hope someone can help me. I'm in over my head. I have a long (4 hrs.) commercial video track separated by dozens of markers (placed earlier in FCP). All my menu buttons work fine, but I want to include a button which serves as an "In-Store" demo loop featuring about 30-45 minutes of highlights (meaning favorite clips) looped endlessly for in-store sales. I can't seem to get the right combination going. New user of DVDSP but not of Mac. I managed to get it to jump to a marker, but so far, every attempt results in the program not recognizing the end of a segment. Struggling with the manual and need an expert to simplify things.

    Hi Hal -
    Just perfect. Thanks very much, Hal. I'd entirely skipped the "Stories" sections of my tutorials and manual automatically assuming (from prior experiences with Flash, SuperCard, etc.,) that scripting would be the solution. (Plus I'm rushing to complete the thing.) The best part is that it this extremely easy to do. If I need to shorten a clip I can just add a separate marker in DVDSP with no apparent down side. Stories are a sweet feature, and I'm sure I'll be using them over and over with each new production.
    So, you've just scored the "Expert" ranking in my book and I'm wondering you'd like to make it a daily double... Here's the next and hopefully last sticking point in my little project: I set up multiple angles in several clips in FCP, which don't seem to display in DVDSP. They might, I just can't tell from the sim. And yes, I'm aware that importing separate tracks and re-compositing them in DVDSP is a way to make angles happen, but I already did all this once, with great care, and I'm wondering how to get the Final Cut angles to change in the simulator in DVDSP. Any experience in these areas?
    Thanks again for the "stories" advice. Right on the money.

  • Need help with script

    There is request to dump every day’s data from one table into text file. I need to write shell script and sql script for that
    There are two tables (INSPECTION_RESULTS and NJAS) under NJSHDOWN schema. The table NJAS is child table of INSPECTION_RESULTS. The key is RES_SYS_NO. The script should get the MIN and MAX RES_SYS_NO from INSPECTION_RESULTS table for yesterday’s date. Then use these RES_SYS_NOs to fetch data from NJAS table. I then need to create comma delimited file for following columns. Also, to add the logic in shell script to check for oracle error (ORA-). If there is error, it should send email to DBAs group(first test it with your email address).
    Following columns are needed from NJAS table.
    NJA_RES_SYS_NO
    NJA_TEST_REC_NO
    NJA_LIC_ST_ID
    NJA_ETS_ID
    NJA_SW_VER
    NJA_TECH_ID
    NJA_VIN
    NJA_LIC_NO
    NJA_LIC_JUR
    NJA_LIC_SRC
    NJA_MODEL_YR
    NJA_MAKE
    NJA_MODEL
    NJA_VHCL_TYPE
    NJA_BODY_STYLE
    NJA_CERT_CLASS
    NJA_GVWR
    Okay- here is the script that I have so far but now, I am stuck. I cannot figure out how to get my script to finish output to comma delimited file and to check for oracle errors. Can anyone help me out here? Thanks!
    Initial script:
    SELECT NJA_RES_SYS_NO, NJA_RES_SYS_NO, NJA_TEST_REC_NO,
    NJA_LIC_ST_ID,
    NJA_ETS_ID,
    NJA_SW_VER,
    NJA_TECH_ID,
    NJA_VIN,
    NJA_LIC_NO,
    NJA_LIC_JUR,
    NJA_LIC_SRC,
    NJA_MODEL_YR,
    NJA_MAKE,
    NJA_MODEL,
    NJA_VHCL_TYPE,
    NJA_BODY_STYLE,
    NJA_CERT_CLASS,
    NJA_GVWR,
    NJA_ASM_ETW,
    NJA_ETW_SRC,
    NJA_NO_OF_CYL,
    NJA_ENG_SIZE,
    NJA_TRANS_TYPE,
    NJA_DUAL_EXH,
    NJA_FUEL_CD,
    NJA_VID_SYS_NO,
    NJA_VRT_REC_NO,
    NJA_ARMSTDS_REC_NO,
    NJA_RSN_F_N_TESTABLE,
    NJA_DYNO_TESTABLE,
    NJA_CURR_ODO_RDNG,
    NJA_PREV_ODO_RDNG,
    NJA_PREV_TEST_DT,
    NJA_TEST_TYPE,
    NJA_TEST_START_DT,
    NJA_TEST_END_TIME,
    NJA_EMISS_TEST_TYPE,
    NJA_TEST_SEQ_NO,
    NJA_LOW_MILE_EXEMP,
    NJA_TIRE_DRY,
    NJA_REL_HUMID,
    NJA_AMB_TEMP,
    NJA_BAR_PRESS,
    NJA_HCF,
    NJA_GAS_CAP_ADAP_AVL,
    NJA_GAS_CAP_REPL,
    NJA_OVERALL_GAS_CAP_RES
    FROM NJAS
    WHERE NJA_RES_SYS_NO IN (SELECT MIN(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS WHERE NJA_RES_SYS_NO IN
    (SELECT MAX(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS WHERE SYSDATE=SYSDATE-1)
    Thanks!
    Scott

    Thanks here is thus far what I have, focusing on the sql script part which is the trickiest:
    -- writedate.sql script for njas
    SELECT NJA_RES_SYS_NO||','||NJA_TEST_REC_NO||','||NJA_LIC_ST_ID||','||NJA_ETS_ID||','||NJA_SW_VER||','||NJA_TECH_ID||','||NJA_VIN||','||NJA_LIC_NO||','
    ||NJA_LIC_JUR||','||NJA_LIC_SRC||','||NJA_MODEL_YR||','||NJA_MAKE||','||NJA_MODEL||','||NJA_VHCL_TYPE||','||NJA_BODY_STYLE||','||NJA_CERT_CLASS||','||
    NJA_GVWR||','||NJA_ASM_ETW||','||NJA_ETW_SRC||','||NJA_NO_OF_CYL||','||NJA_ENG_SIZE||','||NJA_TRANS_TYPE||','||NJA_DUAL_EXH||','||NJA_FUEL_CD||','
    || NJA_VID_SYS_NO||','|| NJA_VRT_REC_NO||','|| NJA_ARMSTDS_REC_NO||','|| NJA_RSN_F_N_TESTABLE||','|| NJA_DYNO_TESTABLE||','||
    NJA_CURR_ODO_RDNG||','|| NJA_PREV_ODO_RDNG||','|| NJA_PREV_TEST_DT||','|| NJA_TEST_TYPE||','||
    NJA_TEST_START_DT||','|| NJA_TEST_END_TIME||','|| NJA_EMISS_TEST_TYPE||','|| NJA_TEST_SEQ_NO||','
    ||NJA_LOW_MILE_EXEMP||','||NJA_TIRE_DRY||','|| NJA_REL_HUMID||','|| NJA_AMB_TEMP||','||NJA_BAR_PRESS||','|| NJA_HCF||','||
    NJA_GAS_CAP_ADAP_AVL||','|| NJA_GAS_CAP_REPL||','|| NJA_OVERALL_GAS_CAP_RES
    FROM NJAS
    WHERE NJA_RES_SYS_NO IN (SELECT MIN(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS WHERE NJA_RES_SYS_NO IN
    (SELECT MAX(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS, (SELECT SYSDATE-1 FROM DUAL))
    =====================
    Output thus far:
    ======================
    NJA_RES_SYS_NO||','||NJA_TEST_REC_NO||','||NJA_LIC_ST_ID||','||NJA_ETS_ID||','||
    4,,04-MAR-03,R,27-MAR-03,27-MAR-03,O,,N,,,,,,,,Z
    10871630,5274,CIF000025,CL002901,4.13,INL004025,1B7GL22X7WS569744,VK765K,NJ,B,19
    98,DODGE,DAKOTA,T,3,TIER0,5200,3750,M,06,3.9,A,N,GASO,1446865,14663,3019,,Y,4654
    5,,21-MAR-03,I,21-MAR-03,21-MAR-03,O,,N,,,,,,N,N,P
    How do I strip the comments from the output file? Also not sure if my subquery is performing the output correctly. Thanks.
    Scott

  • Need Help With Script Skipping Word Before Variable

    I borrowed and modified a skip I found here: http://forums.adobe.com/message/4808804 with code borrowed from elsewhere.
    I noticed that it seems to run fine, but it skips any word that appears right before a variable. The point of the script is to find any text using an italic override or bold override, and replace the override with the appropriate character format from the catalog.
    Can someone tell me why the code below skips words before a variable? I am sure it is a simple thing, but I am teaching myself Extendscript, and only recently started the attempt/
    Thanks,
    Marc
    var doc = app.ActiveDoc;
    removeOverrides (doc)
    function removeOverrides (pDoc)
        var vDocStart = pDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
        var vBoldFmt=pDoc.GetNamedCharFmt ('bold')
        var vItalicFmt=pDoc.GetNamedCharFmt ('italic')
        initFA_errno ();
        var vTextLoc = new TextLoc(vDocStart,0);
        var vFindParams=findOverrideParams (pDoc);
        while (FA_errno==Constants.FE_Success)
            var vTextRange=pDoc.Find(vTextLoc,vFindParams);
            if (vTextRange.beg.obj.ObjectValid())
                var vTextItems=pDoc.GetTextForRange (vTextRange, Constants.FTI_CharPropsChange)
                if (vTextItems.length==!0 )
                    $.writeln(vTextItems.String)
                    if (vTextItems[0].idata==Constants.FTF_WEIGHT)
                       pDoc.SetTextProps (vTextRange, vBoldFmt.GetProps())
                    if (vTextItems[0].idata==Constants.FTF_ANGLE)
                       pDoc.SetTextProps (vTextRange, vItalicFmt.GetProps())
                    }// else (Log (vLogFileName, '\nERROR: No items were found in the text format array but format override was found: '+pDoc.Name))
            vTextLoc = vTextRange.end
            vDocStart=vDocStart.NextPgfInFlow;
    function findOverrideParams (pDoc)
        var vFindParams = AllocatePropVals(1);
        vFindParams[0].propIdent.num = Constants.FS_FindObject;
        vFindParams[0].propVal.valType = Constants.FT_Integer;
        vFindParams[0].propVal.ival = Constants.FV_FindCharacterFormatOverride;
       return vFindParams;
      function initFA_errno()
             app.GetNamedMenu("!MakerMainMenu"); //If this fails, you've got bigger problems
             return;

    It looks like home assignment. Home assignment are not very welcome here. I can help you only a little. It's very simple application, but if you dont know basics in OO, you are in trouble.
    Create these three files, even empty with all points you need to accomplish in them as comments.
    Think about gui you need. If you do not know how to make menus and other fancy gui you can do only with one main panel with a few buttons and JOptionPanes appearing for every input.
    Buttons for each task:
    1. get available rooms; press and see JOptionPane telling what rooms are empty (information message)
    2. book: JOptionPane asking how many guests, you input, it checks for availability, if available rooms are not enough (or beds) another OP tells that it's impossible, if enough - offer to input room number, you input, check if the room is booked, then offer to input name, then offer quit.
    3. unbook.
    4.get report
    Once you design how it looks, every step becomes very simple. All methods you need to implement are simple array manipulations. Make report last, because it's just collection of printouts from methods you've already done.
    In book, you need to look for definitions of constructor, passing arguments to methods, returning results from methods, creating object with "new" operator, simple event handling, JOptionPane documentation and examples, which are in every decent textbook.
    Do not panic, it's really simple but rather tiresome application, if you do it by yourself you learn almost everything necessary to start programming in java.

  • Need help Form Scripts

    I am trying to create a page that would have the client
    request a username and login that would be predetermined by site
    owner. (he wants to use two specific words only that he created).
    The client would have to email him to ask for these words before
    being able to his gallery page. I created the form in dreamweaver
    but do not know how to find script to actually put a his username
    and passwords into it. I also don't know how to set up the "submit"
    button to go to the page that is only able to access with the
    password. I don't know how to activate this to actually work and do
    the functions that I want it to do. Any help???

    Hello,
    If the login and password is going to be the same for
    everyone, just two
    words, you don't need a database.
    You could just have the host password protect the directory
    for you.
    When the user clicks a link to a page in that directory, a
    login dialog box
    pops up.
    Call your Host's tech support, check out their FAQ online or
    look at your
    account and try to find Control Panel or an icon that say's
    "Password
    Protect Directory".
    -OR-
    You can also just use some server side script, no database
    needed.. You just
    need to find out what server side language your hosting plan
    supports. If
    you go this way, just post again here with the server side
    language you need
    to use.
    Take care,
    Tim
    "ljdiscount" <[email protected]> wrote in
    message
    news:fmbgs0$pne$[email protected]..
    >I am trying to create a page that would have the client
    request a username
    >and
    > login that would be predetermined by site owner. (he
    wants to use two
    > specific
    > words only that he created). The client would have to
    email him to ask
    > for
    > these words before being able to his gallery page. I
    created the form in
    > dreamweaver but do not know how to find script to
    actually put a his
    > username
    > and passwords into it. I also don't know how to set up
    the "submit"
    > button to
    > go to the page that is only able to access with the
    password. I don't
    > know how
    > to activate this to actually work and do the functions
    that I want it to
    > do.
    > Any help???
    >

  • Need help with script to save iPhoto RSS pix to album

    Hi all. I'm a very green Applescripter needing some pointers.
    Goal: Create a script to "save" pictures from subscribed RSS feeds in iphoto (they get automatically deleted when they fall off the RSS feed).
    I can "add" or "duplicate" the images from the subscribed album to my "archive" album but I can't figure out how to tell if I've already copied an image or not. Is there some way to say something like:
    if RssPhoto exists in ArchiveAlbum then
    don't copy
    else
    do copy
    end if
    I tried doing a file name comparison but iphoto adds a incremental number to the filename so it ends up failing the comparison.
    Thanks for any help.

    'I tried doing a file name comparison ...' - please show your code, and respective RSS url(s).

  • Need Help with script For Bulk Users Name & Description Updation

    Hi Guys,
    I have below requirement :
    We are having one windows 2008 stand alone server with 200+ local users (No Active Directory Account).
    1. Requirement is to update each account's "Full name" and "Description field" with same text. Which means , Full name and Description field will be same with same text. No other changes are required. )Attached the screenshot)
    Can you guys pls help me out with any scripting (vbs , powershell , DOS .etc etc) method to accomplish this task quickly as manual process is very troublesome and take long time.
    Any help will be highly appreciated,
    Thanks,
    Suvajit Basu

    Hi,
    I dont have any script but seeking for a help.
    Thanks,
    Suvajit Basu
    In that case you should read this first:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Prewritten scripts can be found in the repository (Brent has already suggested one for you):
    https://gallery.technet.microsoft.com/scriptcenter
    If you can't find what you need and you can't write your own, you can request a script here:
    https://gallery.technet.microsoft.com/scriptcenter/site/requests
    Let us know if you have any specific questions.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Need Help with script: CS4 Flash Buttons

    I created a 3 button bar using Flash CS4. It will link to three different HTML pages in a website. This is one of the three scripts I have on the first frame of the main timeline, the code is for one of the buttons, the other two are really the same with differing button numbers. This code does now open the page up in a NEW BROWSER window, but I would like the page to open in the existing window and not in a new one. The 3 buttons also have down states identified by a frame label of “hold”, I would like the script to set the hold frame or down state to be displayed when the proper page is loaded in the browser .  Will someone please suggest to me what I need to add to this script to achieve this, your time and effort will be appreciated.
    stop();
    button1_btn.addEventListener(MouseEvent.CLICK, illus);
    function illus(e:MouseEvent):void {
        var targetURL:URLRequest=new URLRequest("illustrator.html");
        navigateToURL(targetURL);

    Thank you Todd... How about the code to display the Down stage when displayed,
    got any thoughts on this.
    Thanks'
    Bill

  • Need Help in Scripting Turning Off JPEG Processing in ACR

    Back in 2005 (Win PS CS) I wrote a javascript script which allows me to batch add captions, headlines, author, etc to JPEG image files.  When CS3 came along I found I needed to turn off ACRs JPEG processing before I ran the script and on again after the script ran.  I now need to do the same thing for PS CS4 and soon CS5.  I have tried to create two (one off - another for on) actions to do that but they don't appear to work.  Can this be done by an action?  If it can done by an action can it be scripted?
    I want to thank Michael L. Hale for the great code below which worked in PS CS3:
    // Oct 3, 2007 this code from from Michael L Hale - Adobe Forums - Photoshop Scripting
    // This code allows one to determine and/or set the state of jpeg file handling in ACR
    // (i.e. get current user setting for edit->pref->file handling->file compatibility->prefer Adobe Camera Raw for JPEG files.
    // Usage: cameraRawJPEG(bool)
    //   JpegState = cameraRawJPEG();  // true if open jpegs in ACR is on, else false
    //    cameraRawJPEG(false);  // turns OFF "open jpegs in ACR"
    //    cameraRawJPEG(true);  // turns ON "open jpegs in ACR"
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID( "Prpr" ), charIDToTypeID( "FlSP" ) );
        ref.putEnumerated( charIDToTypeID( "capp" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        if(bool != undefined && bool.constructor == Boolean){
            var desc = new ActionDescriptor();
            desc.putReference( charIDToTypeID( "null" ), ref );
            var desc1 = new ActionDescriptor();
            desc1.putBoolean( stringIDToTypeID( "cameraRawJPEG" ), bool );
            desc.putObject( charIDToTypeID( "T   " ), charIDToTypeID( "FlSv" ), desc1 );
            executeAction( charIDToTypeID( "setd" ), desc, DialogModes.NO );
        return executeActionGet(ref).getObjectValue(charIDToTypeID( "FlSP" )).getBoolean(stringIDToTypeID( "cameraRawJPEG" ));
    Using the scriptlistener I was able to get the code below, but it doesn't work. I think for the same reason that regular actions Edit --> Preferences -->Camera Raw -->Jpeg & Tiff Handling -->Disable JPEG support  doesn't work:
    // ===ACR JPEG Off ====================================================
    function ACR_JPEG_Off() {
    var idDlt = charIDToTypeID( "Dlt " );
        var desc3 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref2 = new ActionReference();
            var idActn = charIDToTypeID( "Actn" );
            ref2.putName( idActn, "jpeg-off" );
            var idASet = charIDToTypeID( "ASet" );
            ref2.putName( idASet, "Default Actions" );
        desc3.putReference( idnull, ref2 );
      executeAction( idDlt, desc3, DialogModes.NO );
      return;

    Thanks Michael!  I hoped you'd respond. The CS4 ACR JPEG support interface has changed from CS3, so that may be why you code doesn't work.
    I don't think I copied the log file incorrectly, but I can try again.  Can you please please explain your original script - I can't quite get it.
    I also tried just using an action - Edit-->Preferences-->Camera Raw-->JPEG & Tiff Handling -->Disable JPEG support but that doesn't work.  I wonder if I need to set both the JPRG and Tiff settings to make it work???
    Thanks,
    Steve

  • Need help with script - either shell or applescript

    ok, so what i want to do is make some sort of script, either applescript or shell script, that will do the following:
    take out from a command in the terminal
    put that output into a text file already on my computer.
    the only thing is that i need to put the output in the file kinda weird: i need to take it and put each character of output on a new line, but not create new lines
    example:
    take output of command 'uptime' (up 32 days, 23:09)
    place in file 'myFile'
    output:
    key u
    key p
    key space
    key 3
    key 2
    key space
    key d
    anyone have any idea on how to do this?
    thanks in advance

    OK, here is the new one, it will go through the existing text, replacing the text between the specified stopping and starting lines with the shell script text:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- get the file to write to
    property MyFile : missing value -- the file to write to (alias)
    if MyFile is missing value then set MyFile to (choose file with prompt "select a file to write to:" default location (path to desktop) without invisibles)
    -- get the data
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ","}
    set MyText to the first text item of (do shell script "uptime") -- just get the uptime part
    set AppleScript's text item delimiters to ""
    set {MyText, AppleScript's text item delimiters} to {the text items of MyText, TempTID} -- get the characters
    -- add text to each character of the data
    repeat with AnItem from 1 to (count MyText)
    if item AnItem of MyText is " " then
    set item AnItem of MyText to "key space" -- expand the space character
    else
    set item AnItem of MyText to "key " & item AnItem of MyText
    end if
    end repeat
    -- show the result
    choose from list MyText with prompt "the following results will be written:" with empty selection allowed
    if result is false then return -- exit
    -- make the new file
    set OldFile to paragraphs of (read MyFile) -- read the old file
    set NewFIle to {} -- this will be the contents of the new file
    set ReadOrNot to true
    repeat with SomeLine in OldFile -- step through each line
    set SomeLine to the contents of SomeLine
    if SomeLine is equal to "key n" then -- stop copying lines
    -- set the end of NewFIle to SomeLine -- include the stop line
    set ReadOrNot to false
    set NewFIle to NewFIle & MyText -- add the data text
    else if SomeLine is equal to "key Down Arrow" then -- start copying lines again
    -- set the end of NewFIle to SomeLine -- include the start line
    set ReadOrNot to true
    else if ReadOrNot then -- add lines only if we are copying
    set the end of NewFIle to SomeLine
    end if
    end repeat
    -- write the new results to the file
    try
    set TheOpenFIle to (open for access MyFile with write permission)
    set eof TheOpenFIle to 0 -- write over the existing contents
    repeat with SomeLine in NewFIle
    write SomeLine & return to TheOpenFIle
    end repeat
    close access TheOpenFIle
    on error ErrorMessage number ErrorNumber -- oops
    log space & (ErrorNumber as text) & ":" & tab & ErrorMessage
    try
    close access TheOpenFIle
    end try
    end try
    </pre>
    I didn't know if you wanted to include the stop and start lines, so just uncomment the appropriate statement(s) if you want to include them. I left the stop line comparison as "key n", change it to your number (or some unique text string if you only want one specific replacement).

  • Need help finding script

    I have read through the following ADF Data Binding Primer and ADF Struts overview: http://www.oracle.com/technology/products/jdev/collateral/papers/10g/ADFBindingPrimer/index.html#bindingexample
    It seems to be a great article. I would like to try working through it and am unable to locate the SCOTT schema scripts the article is referring to: "You'll need to create a connection named scott in the Connection Navigator under the "Databases" heading. It should point to the familiar SCOTT/TIGER schema on some database you have access to."
    Would someone please point me in the right direction?

    My DBA stated: "Scott/tiger is only created if you use oracle’s “database assistant” to create the database – which I never ever use. Hence this schema is not present."
    So, is there a script somewhere I can get to have him put it out there.

  • Need help creating script for specific instance

    I am having trouble coming up with a working script for this part of the pricing form I am editing. I am trying to get the calculation fields to the right to change and populate in the respective field based on the selection in the Material Type dropdown. Would it be less of a headache if I made another text field to calculate the LE versions separately instead of trying to merge them into one field? I have attached screenshots below to give you an example of what I'm working with. Any help with this is greatly appreciated!
    Script I'm tinkering with at the moment:
    //Dropdown37 = Quantity Field
    //Type of Door IB = Material Type dropdown
    var x = this.getField("Type of Door IB").value;
    if ( x = 1468 ) event.value = x * this.getField("Dropdown37").value;
    if (x = 1202) event.value = x * this.getField("Dropdown37").value;
    else event.value = 0;

    The comparison operator in JS is "==", so change this line:
    if ( x = 1468 )
    To this:
    if ( x == 1468 )
    (as well as the other if-statement).

Maybe you are looking for