Progress Bar/Slide Counter

I know you can add a progress bar to the skin, but is there
any way to insert an actual slide counter in a Captivate project or
skin?

Hi,
If you are using Captivate 4, you can acheive this using
Variables.
1. Insert a text caption and set it to appear for rest of
project
2. Insert variables cpInfoCurrentSlide and rdinfoSlideCount
into the text caption.
thanks
ravi

Similar Messages

  • How to create a progress bar showing status on timeout of TCP Read function

    Is there any way of creating a progress bar showing the status of a 'TCP Read timeout' time ... ?
    I'm sending a data request to an intranet server via TCP Write, and then using TCP Read with a 2 min. timeout to receive the requested data. During this time i want to show the actual progress of the timeout in a progress bar.
    Can this be done?
    And do i have to implement some kind of multitasking to make it happen?
    TIA

    Soulstorm wrote:
    > Is there any way of creating a progress bar showing the status of a
    > 'TCP Read timeout' time ... ?
    >
    > I'm sending a data request to an intranet server via TCP Write, and
    > then using TCP Read with a 2 min. timeout to receive the requested
    > data. During this time i want to show the actual progress of the
    > timeout in a progress bar.
    > Can this be done?
    > And do i have to implement some kind of multitasking to make it
    > happen?
    It can be done and you need to do some multitasking yes, but that is
    quite easy in LabVIEW. A separate loop or subVI with loop will be
    responsible for the progress bar. Set its scale to 0 and the number of
    seconds of your timeout. In parallel to the TCP Read let this loop or VI
    execute reading the time every few
    seconds and calculating the
    difference to its start time, passing this value to the progress bar
    slider. Have an extra boolean global which aborts the loop and set this
    boolean to FALSE before starting the loop/VI and TCP Read and setting it
    to TRUE on return of the TCP Read.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Music sound gets low while earphones are plugged in.  To fix it I have to slide the music progress bar.

    When listening to music with any pair of headphones or earphones plugged in, all of a sudden the volume will get really low for no reason.  Example: say the volume is at 15.  All of a sudden the volume will drop to like a 4, but the volume slider is still positioned at 15.  To fix it, I have to open the music app or control panel, and slide the song progress bar around and then the volume returns to normal.
    This is not an issue with the headphones.  I tried twisting and jiggling the jack and there were no changes.  Not even static.  The issue happens with the aux cable in my car as well.  It's also not an issue with the songs.  These are the same songs I was playing yesterday and they are all perfectly fine.
    Right now this is happening on my iPhone 5s with the most recent iOS8 update.  I've also had the update for awhile and this has only started less than a day ago.

    It sounds like dirt in the headphone jack. I would use a vacuum cleaner to "suck" out any dirt that might be in there. You might also want to look carefully and see if anything in lodged in there.

  • I listen to podcast alot on my ipod recently something changed and I am no longer able to slide the progress bar forward to jump ahead. the bar has disappeared and I dont know how to get it back

    I use my Ipod touch to listen to podcast alot. Recently my screen changed somehow and I can no longer jump ahead thu the podcast by sliding the progress bar. The bar has disappeared

    No problem.  Glad to have helped!
    B-rock

  • Internet recovery gets stuck on the spinning globe with the progress bar below.

    Hello Everybody!
    I'm trying to fix the iMac (27-inch, Mid 2010) of my friend. He said it doesn't boot anymore and just gets stuck on the grey screen with the Apple logo and the spinning wheel below. So my first step was to go into the Startup Manager by pressing the Option key after the chime. There I was presented with the Macintosh HD and the Recovery HD. After selecting the Recovery HD to access the Disk Utilities I got stuck on the grey screen with the Apple logo and the spinning wheel again. So I guess the data on the drive is corrupted and might have to be replaced. But before I do that, I wanted to give the Internet Recovery a try. I connected the iMac to the internet using an ethernet cable and pressed Command + Option + R after the chime and the spinning globe appeared with the info: "starting recovery process from network. This may take a while". After a short time the sentences are replaced by a progress bar and a timer that is counting up. The progress bar then moved for a tiny little bit and then nothing happens anymore but the timer keeps counting up. I waited for quiet some time before I gave up. I did not get any errors so I can't provide any other useful information. Can anyone give my some advice? I read in other posts that the ISPs of specific countries block ports which are needed for the internet recovery. I'm in Thailand right now. Does anyone know if that might cause the problem?
    Thank you for all your help!

    Neither we nor Apple support jailbroken iDevices.

  • How to determine a sql query size to display a progress bar

    I would like to show a progress of an sql query within a jsp page.
    Background:
    I have a reporting web application, where over 500 contacts can run reports based on different criteria such as date range....
    I current display a message stating 'executng query please wait', however the users (hate users) do not seem to wait, thereofore they decide to run the query all over again which affected my reportign sever query size (eventually this crashes, stopping all reports)
    Problem:
    The progress bar is not a problem, how would I determine the size of the query at runtime therefore adding the time onto my progress bar.

    Yes it's doable (we do it) but it sure ain't easy.
    We've got about 23,500,000 features (and counting) in a geodata database. Precise spatial selection algorithms are expensive. Really expensive.
    We cannot impose arbitrary limits on search criteria. If the client requires the whole database we are contractually obligated to provide it...
    For online searches We use statistics to approximate the number of features which a given query is likely to return... more or less the same way that the query optimiser behind any half decent (not mysql (5 alteast)) database management system does.
    We have a batch job which records how many features are linked to each distinct value of each search criteria... we just do the calculations (presuming a normal (flat) distribution) and...
    ... if the answer is more than a 100,000 we inform the user that the request must be "batched", and give them a form to fill out confirming there contact details. We run the extract overnight and send the user an email containing a link which allows them to download the result the next morning.
    ... if the answer is more than a million features we inform the user that the request must batched over the weekend... same deal as above, except we do it over the weekend to (a) discourage this; and (b) the official version ensure we have enough time to run the extract without impinging upon the maintenance window.
    ... if the answer is more than 5 million we display our brilliant "subscribe to our DVD service to get the latest version of the whole shebang every three months (or so), so you can kill your own blooody server with these ridiculous searches" form.
    Edited by: corlettk on Dec 5, 2007 11:12 AM

  • Progress Bar is not working in Labview 6i

    Hi all,
    i implemented one vi with  Progress bar using labiview 6i. i created property node for the progress bar to set the range as 550 using scale >Range>maximum. progress bar is updating well until the value of 220. later the progress bar is starting from begining. What is the maximum range we can define for the Progress bar.? please see the attached picture . Am i missing anything from the figure?
    thanks,
    kalpana 
    Attachments:
    Progress Bar.png ‏60 KB

    Hi kalpu,
    as your "slide" is of datatype U8 it will not display values greater than 255…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Creating progress bar in oracle forms 6i

    Hii
    I have a push-button (pb_submit)
    when when_button_pressed trigger fired...I have a database main procedure to be called.
    inside that procedure i am calling 25 procedures.
    and all 25 Procedures will be executed sequencially.
    I want to use a Progress bar...
    so that user will get to know hw much % completed
    if main procedure(total 25 procedures inside) is completed successfully then progress bar should show 100%
    like wise if 1 procedure completed then 4 %
                 if 2 procedure completed then 8 %
    total 25 procedure completed then 100%
    how to implement this logic.
    and if in between 1 procedure failed then progress bar should stop at that incident.
    and it should start from dat instant only if again that failed procedure run successfully.
    should i post my codes here.ok...here is the codes written in the button(when_button_pressed trigger)
    DECLARE
      l_Last_Record      NUMBER  := 0  ;
      l_Prg_Process_Id    NUMBER     ;
      l_Prg_Process_Id_1  NUMBER     ;
      l_Prg_Id       VARCHAR2(15)  ;
      l_Alert_Result    VARCHAR2(1)   ;
      l_Validation_Msg   VARCHAR2(500) ;
      l_Path        VARCHAR2(240) ;
      File_Name       VARCHAR2(250) ;
      l_file_exists     BOOLEAN       ;
      l_file_len        NUMBER     ;
      l_blocksize       BINARY_INTEGER;
      o_Status       VARCHAR2(1)  ;
      o_User_Selection_Ca1 VARCHAR2(1)  ;
      o_User_Selection_Ca2 VARCHAR2(1)  ;
      o_User_Selection_Ca3 VARCHAR2(1)  ;
      CURSOR C_Validation IS
      SELECT Cpv_Validation_Type     ,
             Cpv_Validation_Input    ,
             Cpv_Validation_Action  ,
             Cpv_Validation_Active_Flag
      FROM   Config_Process_Validation
      WHERE  Cpv_Program_Id = l_Prg_Id
      AND   Nvl(Cpv_Validation_Active_Flag, 'N') = 'Y'
      ORDER BY Cpv_Validation_Sequence;
    BEGIN
    SELECT RV_HIGH_VALUE
    INTO   l_Path
    FROM   CG_REF_CODES
    WHERE  Rv_Domain    = 'DERV_DATA_FILES'
    AND   Rv_Low_Value = 'DRV_FILES';
    Go_Block('Process');
      Last_Record;
      l_Last_Record := :System.Cursor_Record; 
      First_Record;
      FOR i IN 1 .. l_Last_Record
      LOOP
      Go_Record(i);
      l_Prg_Id := :Prog_Id;
      IF NVL(:Process.Cb_Select,'N') = 'Y' THEN
       :Query.Current_Status := 'Current Process: ' || :Process.Prog_Desc;
       Synchronize;
       --Validate if program is already in running mode or already completed
       SELECT NVL(MAX(DECODE(Prg_Status, 'R', 999999999, 'C', Prg_Process_Id)), 0)
       INTO   l_Prg_Process_Id
       FROM   Program_Status,
           Parameter_Master
       WHERE  Prg_Dt      = Pam_Curr_Dt
       AND    Prg_Cmp_Id  = l_Prg_Id
       AND    Prg_Exm_Id  IN ('ALL', :Query.Exchange)
       AND    Prg_Status  IN ('R', 'C');
       IF l_Prg_Process_Id = 999999999 THEN
         P_Show_Alert(l_Prg_Id||' Process is already running.','A',l_Alert_Result);
        --RAISE Form_Trigger_Failure;
       ELSIF l_Prg_Process_Id > 0 AND :Execution_Flag <> 'M' THEN
        P_Show_Alert(l_Prg_Id||' Process already run. It can not run twice. ','A',l_Alert_Result);
        RAISE Form_Trigger_Failure;
       END IF;
       --Validate mandataory process, process specific validation and message
       FOR i IN C_Validation
       LOOP
        IF i.Cpv_Validation_Type = 'MANDATORY' AND i.Cpv_Validation_Active_Flag = 'Y' THEN
           SELECT Count(1)
           INTO   l_Prg_Process_Id_1
           FROM   Program_Status,
               Parameter_Master
         WHERE  Prg_Dt      = Pam_Curr_Dt
         AND    Prg_Cmp_Id  = i.Cpv_Validation_Input
         AND    Prg_Exm_Id  IN ('ALL', :Query.Exchange)
         AND    Prg_Status  = 'C'
         AND    Prg_Process_Id IN (SELECT MAX(Prg_Process_Id)
                      FROM   Program_Status,
                          Parameter_Master
                      WHERE  Prg_Dt      = Pam_Curr_Dt
                      AND    Prg_Cmp_Id  = i.Cpv_Validation_Input
                      AND    Prg_Exm_Id  IN ('ALL',:Query.Exchange)
                      AND    Prg_Status  = 'C');
         IF l_Prg_Process_Id_1 = 0 THEN
          P_Show_Alert(i.Cpv_Validation_Input||' Mandatory Process NOT completed successfully.','A',l_Alert_Result);
          RAISE Form_Trigger_Failure;
         END IF;
        ELSIF i.Cpv_Validation_Type = 'MESSAGE' THEN
         P_Show_Alert(i.Cpv_Validation_Input, i.Cpv_Validation_Action, l_Alert_Result);
         IF l_Alert_Result = 'N' THEN
          RAISE Form_Trigger_Failure;
         END IF;
        ELSE   
         --- OTHER PROCESS SPECIFIC VALIDATION
         l_Validation_Msg := Null;
         Pkg_Process_Automation.P_Pre_Process_Validation(l_Prg_Id,
                                 :Query.Exchange,
                                 :Query.Segment,
                                 i.Cpv_Validation_Type,
                                 l_Validation_Msg);
         IF l_Validation_Msg IS NOT NULL THEN
          P_Show_Alert(l_Validation_Msg,i.Cpv_Validation_Action,l_Alert_Result);
          IF l_Alert_Result = 'N' THEN
           RAISE Form_Trigger_Failure;
          END IF;
         END IF;  
        END IF; 
       END LOOP;
       --Validating whether file exists or not
       IF :Process.File_Input_Format IS NOT NULL THEN
        Pkg_Process_Automation.P_Gen_File_Name(:Process.File_Input_Format,
                            :Query.Exchange,
                            :Query.Segment,
                            File_Name);
        Utl_File.FGetAttr(
         location    => l_Path,
         filename    => File_Name,
         fexists     => l_file_exists,
         file_length => l_file_len,
         block_size  => l_blocksize);
        IF NOT l_File_Exists THEN
         --MESSAGE('The file does not exist.');
         P_Show_Alert('The file does not exist.','A',l_Alert_Result);
         RAISE Form_Trigger_Failure;
        END IF;
       END IF;
       Set_Application_Property(Cursor_Style, 'BUSY');
       SET_ITEM_INSTANCE_PROPERTY('Process.Status', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'VA_YELLOW');
       :Process.Status := 'R';
       Synchronize;
       IF l_Prg_Id = 'DTMBCORP' THEN
        P_Show_Alert('Do you want to do Final Settlement Corporate Action ?(Y/N)','I',l_Alert_Result);
        o_User_Selection_Ca1 := l_Alert_Result;
        P_Show_Alert('Enable Round-To-Tick ? (Y/N)','I',l_Alert_Result);
        o_User_Selection_Ca2 := l_Alert_Result;
        --P_Show_Alert('Do you want to Rollback ? (Y/N)','I',l_Alert_Result);
        --o_User_Selection_Ca3 := l_Alert_Result;
       END IF;
       ----   Calling of Main Procedure
       Pkg_Process_Automation.P_Run_Process(l_Prg_Id,
                          :Query.Exchange,
                          :Query.Segment,
                          :Query.Entity_Id,
                          File_Name,
                          o_User_Selection_Ca1,
                          o_User_Selection_Ca2,
                          o_User_Selection_Ca3,
                          o_Status);
       IF l_Prg_Id = 'DTMBCORP' THEN
        P_Show_Alert('Do you want to Rollback (Y/N)','I',l_Alert_Result);
        o_User_Selection_Ca3 := l_Alert_Result;
        Pkg_Process_Automation.P_Run_Process(l_Prg_Id,
                            :Query.Exchange,
                            :Query.Segment,
                            :Query.Entity_Id,
                            File_Name,
                            o_User_Selection_Ca1,
                            o_User_Selection_Ca2,
                            o_User_Selection_Ca3,
                            o_Status);
       END IF;                 
       Set_Application_Property(Cursor_Style, 'DEFAULT');                  
       Message(o_Status);
       Message(o_Status);
       IF o_Status = 'Y' THEN
        :Process.Status := 'C';
        SET_ITEM_INSTANCE_PROPERTY('Process.Status', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'VA_GREEN');
       ELSE
        :Process.Status := 'E';
        SET_ITEM_INSTANCE_PROPERTY('Process.Status', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'VA_RED');
       END IF;
       SELECT Prg_Log_File
       INTO   :Process.Log_File
       FROM   Program_Status ,
              Parameter_Master
         WHERE  Prg_cmp_id = l_Prg_Id
         AND    Prg_dt     = Pam_Curr_Dt
          AND   (Prg_Cmp_Id,Prg_Strt_Time)  IN (SELECT   Prg_Cmp_Id,max(Prg_Strt_Time) 
                                   FROM   Program_Status b,
                                                        Parameter_Master
                                                 WHERE  Prg_Cmp_Id =  l_Prg_Id
                                   AND    Prg_Dt     =  Pam_Curr_Dt
                                                  GROUP BY Prg_Cmp_Id);
       Synchronize;
       Set_Application_Property(Cursor_Style, 'DEFAULT');   
      END IF;
    END LOOP;
    :Query.Current_Status := '';
    Synchronize;
    EXCEPTION
      WHEN OTHERS THEN
      :Query.Current_Status := 'Error found';
      Set_Application_Property(Cursor_Style, 'DEFAULT');
      MESSAGE(sqlerrm );
      --MESSAGE(sqlerrm );
      Synchronize;
    END;
    inside p_run_process there are other 25 database procedures.
    help me !!!

    Create a procedure as like,
    PROCEDURE show_progress(x number) IS
    y number;
    BEGIN
      set_item_property('PART_DISP',VISIBLE,PROPERTY_TRUE);
      set_item_property('PART_DISP',WIDTH,x);
      set_item_property('PART_DISP',VISIBLE,PROPERTY_TRUE);
    END;
    PART_DISP is a display_item.
    After completion of each procedures call the above procedure like,
    cntr:=cntr+1;
    show_progress(round(cntr/25*287,0));
    synchronize;
    where cntr is a counter it will be incremented 1 to 25, the constant value 287 is the maximum width of PART_DISP (you can change for your need).
    The local variable cntr's initial value is 0 and maximum value is 25.    
    cntr                   part_disp          % of progress
    1
    11.48
    4
    2
    22.96
    8
    3
    34.44
    12
    4
    45.92
    16
    5
    57.4
    20
    6
    68.88
    24
    7
    80.36
    28
    8
    91.84
    32
    9
    103.32
    36
    11
    126.28
    44
    12
    137.76
    48
    13
    149.24
    52
    14
    160.72
    56
    15
    172.2
    60
    16
    183.68
    64
    17
    195.16
    68
    18
    206.64
    72
    19
    218.12
    76
    20
    229.6
    80
    21
    241.08
    84
    22
    252.56
    88
    23
    264.04
    92
    24
    275.52
    96
    25
    287
    100
    Hope this will help.

  • IMac starts, shuts down - gray screen w/ progress bar

    I have a 2007 iMac and it is now shutting down every time I try and restart it.  I see a gray screen with the apple logo, the spinning wheel and the progress bar upon every restart.  The progress bar never finishes and it shuts down.
    I have restarted with command-option-P-R - same result
    I have restarted with command-S - same result
    I have restarted with command-C - it kept spitting the disc out then it would shut down again
    I have restarted with command-V and it said something about incorrect block counts.  It also at the very end, just before shutting down again said "Disk Full Error" and "killing all processes done".  I had to snap a picture with my phone to see what it actually said since it happened so fast.  I knew the hard drive was almost full and was actually backing up to and external hard drive just before this issue began.
    Is there anyway for me to force the computer to stay on long enough for me to remove some items and free up space?  Like an override somehow?
    Thanks so much in advance for the help!
    Shayna

    What Mac OS X are you running?
    Have you tried this article: http://support.apple.com/kb/TS2570

  • Global Variable in Progress Bar

    I have an existing labview code that is comprised of a main vi, which is the user GUI, and several (approx 70) sub vi's. I am trying to add a progress bar to the front screen (User GUI) that will immediately increment after it hits certain sections of code. I am doing this using a global variable to store the value of the current progress, and then attempting to write to the progress bar on the main screen after each incrementation. Is there a way to link the value of the main progress bar to the global variable so that it updates as soon as the value is incremented? The problem I am facing is that when I update the global variable in a subvi, the progress bar takes the value of the subvi after it is completed, skipping all the numbers in between. I realize this is because I am not correctly writing to the progress bar, but I am unsure how to do so. If this isn't a good method, does anyone have any suggestions?  
    For Example:
    Main Vi           SubVi1        SubVi2
    (1-4)                (5-8)             (8-12)
    Progress Bar: 1 2 3 4 8 12
    (I did try the Progress Bar Library NI provides, but I need a progress bar on the Front Panel, not a pop up, so I can debug while the code runs)
    Thanks- Adam
    Solved!
    Go to Solution.

    I'd go with a Action Engine to update the progress bar VIA vi server referance.  Here's an example using a AE I have for just this type of progress bar.
    If you haven't read Ben action engine nugget, it should be required, you can find it here
    By constructing a "resource module" (a special AE that holds a referance to the resource to act on)  after initializint the AE you can call any "method" on the resorce from any location in the application instance.  These babys really let you do some interesting things to the GUI from wherever the real actions is taking place.
    Jeff
    Attachments:
    Ex AE Slider.vi ‏15 KB
    Progress.vi ‏26 KB
    Progress Meth.ctl ‏11 KB

  • [SOLVED] Almost there just need a global progress bar

    Heya,
    There's no man page for bar so I have looked at the code a bit. I am trying to have a progress bar to copy a folder with many files including symbolic links (unfortunately pycp does not support them yet). With the -s parameter, I can specify the approximate size of what I am copying but it works only if it is a single file.
    I have also tried pv, pipemeter, orphan advcp, ecp, scp and I am now desperate.
    Would someone be kind enough to help me ?
    [tamikana@archlinux ~]$ cat /usr/bin/bar
    #! /bin/sh
    # bar
    # 'cat' with ASCII progress bar
    # (c) Henrik Theiling
    BAR_VERSION=1.4
    # Synopsis:
    # 'bar' works just like 'cat', but shows a progress bar in ASCII art on stderr.
    # The script's main function is meant to be usable in any Bourne shell to be
    # suitable for install scripts without the need for any additional tool.
    # Shell Script Usage: bar [options] [files]
    # Options:
    # -h displays help
    # Examples:
    # Normal pipe:
    # : bar mypack.tar.bz2 | tar xjpf -
    # Individual pipe for each file:
    # : bar -c 'tar xjpf -' mypack1.tar.bz2 mypack2.tar.bz2
    # Individual pipe, using ${bar_file} variable:
    # : bar -c 'echo ${bar_file}: ; gzip -dc | tar tvf -' \
    # : -e .tar.gz \
    # : file1 file2 file3 file4 file5 \
    # : > package-list.txt
    # Programs and shell commands:
    # Required (otherwise this fails):
    # if, then, else, fi, expr, test, cat, eval, exec
    # shell functions
    # test:
    # a = b
    # a -lt b
    # a -gt b
    # a -le b
    # -f a
    # -n a
    # -z a
    # expr:
    # a + b
    # a - b
    # a '*' b
    # a / b
    # a : b
    # Optional (otherwise this does not show the bar):
    # grep, dd, echo, ls, sed, cut
    # ls:
    # must output the file size at fifth position.
    # The command line interface also uses:
    # awk
    ####>-SCHNIPP-<########################################################
    bar_cat()
    # Use this shell function in your own install scripts.
    # Options:
    # Width of the bar (in ten characters). The default is 76 characters.
    test -z "${BAR_WIDTH}" && test -n "${COLUMNS}" && BAR_WIDTH=${COLUMNS}
    # Check syntax:
    ( expr "${BAR_WIDTH}" + 0 >/dev/null 2>&1 ) || BAR_WIDTH=0
    BAR_WIDTH=`expr ${BAR_WIDTH} + 0` || BAR_WIDTH=0
    test "x${BAR_WIDTH}" = x0 && BAR_WIDTH=76
    # Maximal block size to use for dd.
    test -n "${BAR_BS}" || BAR_BS=1048567
    # BEGIN PERC
    # Whether to show a percentage.
    test -n "${BAR_PERC}" || BAR_PERC=1
    # END PERC
    # BEGIN ETA
    # Whether to show estimated time of arrival (ETA).
    test -n "${BAR_ETA}" || BAR_ETA=1
    # END ETA
    # Width of the trace display:
    # BEGIN TRACE
    test -n "${BAR_TRACE_WIDTH}" || BAR_TRACE_WIDTH=10
    # END TRACE
    # The command to execute for every given file. Each file
    # is piped into this command individually. By default, the
    # files are simply dumped to stdout.
    test -n "${BAR_CMD}" || BAR_CMD=cat
    # The characters to be used in the bar
    test -n "${BAR_L}" || BAR_L='['
    test -n "${BAR_R}" || BAR_R=']'
    test -n "${BAR_C0}" || BAR_C0='.'
    test -n "${BAR_C1}" || BAR_C1='='
    # Additional extension to add to each file:
    #BAR_EXT=${BAR_EXT-}
    # Whether to clear bar after termination. Otherwise keep the full bar.
    #BAR_CLEAR=${BAR_CLEAR-0}
    # Unless switched off by user, use the bar by default:
    test -n "${BAR_OK}" || BAR_OK=1
    BAR_WIDTH=`expr ${BAR_WIDTH} - 3`
    bar_trace=''
    # BEGIN TRACE
    if test "x${BAR_TRACE}" = x1
    then
    BAR_WIDTH=`expr ${BAR_WIDTH} - ${BAR_TRACE_WIDTH}`
    bar_lauf=${BAR_TRACE_WIDTH}
    bar_t_space=''
    bar_t_dot=''
    while test "${bar_lauf}" -gt 1
    do
    bar_t_space="${bar_t_space} "
    bar_t_dot="${bar_t_dot}."
    bar_lauf=`expr ${bar_lauf} - 1`
    done
    bar_trace="${bar_t_space} "
    fi
    # END TRACE
    bar_eta=''
    BAR_GET_TIME='echo'
    # BEGIN ETA
    ( expr 1 + ${SECONDS} >/dev/null 2>&1 ) || BAR_ETA=0
    if test "x${BAR_ETA}" = x1
    then
    BAR_GET_TIME='( echo ${SECONDS} )'
    BAR_WIDTH=`expr ${BAR_WIDTH} - 6`
    bar_eta='--:-- '
    fi
    # END ETA
    bar_perc=''
    # BEGIN PERC
    if test "x${BAR_PERC}" = x1
    then
    BAR_WIDTH=`expr ${BAR_WIDTH} - 5`
    bar_perc=' 0% '
    fi
    # END PERC
    BAR_GET_SIZE='( ls -l "${BAR_DIR}${bar_file}${BAR_EXT}" | sed "s@ *@ @g" | cut -d " " -f 5 ) 2>/dev/null'
    # portable?
    # check features:
    ( ( echo a ) >/dev/null 2>&1 ) || BAR_OK=0
    ( ( echo a | dd bs=2 count=2 ) >/dev/null 2>&1 ) || BAR_OK=0
    ( ( echo a | grep a ) >/dev/null 2>&1 ) || BAR_OK=0
    ( ( echo a | sed 's@ *@ @g' ) >/dev/null 2>&1 ) || BAR_OK=0
    ( ( echo a | cut -d ' ' -f 1 ) >/dev/null 2>&1 ) || BAR_OK=0
    # check ranges:
    test "${BAR_WIDTH}" -ge 4 || BAR_OK=0
    BAR_ECHO='echo'
    BAR_E_C1=''
    BAR_E_C2=''
    BAR_E_NL='echo'
    # Does echo accept -n without signalling an error?
    if echo -n abc >/dev/null 2>&1
    then
    BAR_E_C1='-n'
    fi
    # Check how to print a line without newline:
    if ( ( ${BAR_ECHO} "${BAR_E_C1}" abc ; echo 1,2,3 ) | grep n ) >/dev/null 2>&1
    then
    # Try echo \c:
    if ( ( ${BAR_ECHO} 'xyz\c' ; echo 1,2,3 ) | grep c ) >/dev/null 2>&1
    then
    # Try printf:
    if ( ( printf 'ab%s' c ; echo 1,2,3 ) | grep abc ) >/dev/null 2>&1
    then
    BAR_ECHO='printf'
    BAR_E_C1='%s'
    else
    BAR_ECHO=':'
    BAR_E_C1=''
    BAR_E_NL=':'
    BAR_OK=0
    fi
    else
    BAR_E_C1=''
    BAR_E_C2='\c'
    fi
    fi
    # prepare initial bar:
    bar_shown=0
    if test "${BAR_OK}" = 1
    then
    bar_lauf=0
    bar_graph=''
    while test `expr ${bar_lauf} + 5` -le "${BAR_WIDTH}"
    do
    bar_graph="${bar_graph}${BAR_C0}${BAR_C0}${BAR_C0}${BAR_C0}${BAR_C0}"
    bar_lauf=`expr ${bar_lauf} + 5`
    done
    while test "${bar_lauf}" -lt "${BAR_WIDTH}"
    do
    bar_graph="${bar_graph}${BAR_C0}"
    bar_lauf=`expr ${bar_lauf} + 1`
    done
    ${BAR_E_C2}" 1>&2_eta}${bar_perc}${BAR_L}${bar_graph}${BAR_R}
    bar_shown=1
    fi
    # for shifting large numbers so that expr can handle them:
    # Assume we can compute up to 2147483647, thus 9 arbitrary digits.
    # We must be able to do + of two numbers of 9 digits length. Ok.
    # BEGIN LARGE
    ( ( test 1999999998 = `expr 999999999 + 999999999` ) >/dev/null 2>&1 ) || BAR_OK=0
    bar_large_num="........."
    bar_div=""
    # END LARGE
    bar_numsuff=""
    # find size:
    bar_size=0
    if test -n "${BAR_SIZE}"
    then
    bar_size=${BAR_SIZE}
    # BEGIN LARGE
    while expr "${bar_size}" : "${bar_large_num}" >/dev/null 2>&1
    do
    bar_div="${bar_div}."
    bar_numsuff="${bar_numsuff}0"
    bar_size=`expr "${bar_size}" : '\(.*\).$'`
    done
    # END LARGE
    BAR_GET_SIZE="echo '${BAR_SIZE}'"
    else
    for bar_file
    do
    bar_size1=0
    if test -f "${BAR_DIR}${bar_file}${BAR_EXT}"
    then
    bar_size1=`eval "${BAR_GET_SIZE}"`
    # BEGIN LARGE
    # divide and upround by pattern matching:
    if test -n "${bar_div}"
    then
    bar_size1=`expr "${bar_size1}" : '\(.*\)'${bar_div}'$'` || bar_size1=0
    fi
    # adjust if still too large:
    while expr "${bar_size1}" : "${bar_large_num}" >/dev/null 2>&1
    do
    bar_div="${bar_div}."
    bar_numsuff="${bar_numsuff}0"
    bar_size1=`expr "${bar_size1}" : '\(.*\).$'`
    bar_size=`expr "${bar_size}" : '\(.*\).$'` || bar_size=0
    done
    # upround if necessary:
    if test -n "${bar_div}"
    then
    bar_size1=`expr "${bar_size1}" + 1`
    fi
    # END LARGE
    # add to total size:
    bar_size=`expr ${bar_size} + ${bar_size1}`
    # BEGIN LARGE
    # adjust if still too large:
    while expr "${bar_size}" : "${bar_large_num}" >/dev/null 2>&1
    do
    bar_div="${bar_div}."
    bar_numsuff="${bar_numsuff}0"
    bar_size=`expr "${bar_size}" : '\(.*\).$'`
    done
    # END LARGE
    else
    BAR_OK=0
    fi
    done
    fi
    bar_quad=`expr ${BAR_WIDTH} '*' ${BAR_WIDTH}`
    test "${bar_size}" -gt "${bar_quad}" || BAR_OK=0
    if test "${BAR_OK}" = 0
    then
    # For some reason, we cannot display the bar. Thus plain operation:
    for bar_file
    do
    if test "${bar_file}" = "/dev/stdin"
    then
    eval "${BAR_CMD}"
    else
    eval "${BAR_CMD}" < "${BAR_DIR}${bar_file}${BAR_EXT}"
    fi
    done
    else
    # Compute wanted bytes per step:
    bar_want_bps=`expr ${bar_size} + ${BAR_WIDTH}`
    bar_want_bps=`expr ${bar_want_bps} - 1`
    bar_want_bps=`expr ${bar_want_bps} / ${BAR_WIDTH}`
    # Compute block count per step to keep within maximum block size:
    bar_count=1
    if test "${bar_want_bps}" -gt "${BAR_BS}"
    then
    bar_count=`expr ${bar_want_bps} + ${BAR_BS}`
    bar_count=`expr ${bar_count} - 1`
    bar_count=`expr ${bar_count} / ${BAR_BS}`
    fi
    # Compute block size for given count:
    bar_wc=`expr ${BAR_WIDTH} '*' ${bar_count}`
    bar_bs=`expr ${bar_size} + ${bar_wc}`
    bar_bs=`expr ${bar_bs} - 1`
    bar_bs=`expr ${bar_bs} / ${bar_wc}`
    # Compute bs * count, the bytes per step:
    bar_bps=`expr ${bar_bs} '*' ${bar_count}`
    # Compute bytes per hundredth:
    bar_bph=`expr ${bar_size} + 99`
    bar_bph=`expr ${bar_bph} / 100`
    # Run loop:
    bar_pos=0
    bar_graph="${BAR_L}"
    bar_cur_char=0
    bar_t0=`eval "${BAR_GET_TIME}" 2>/dev/null` || bar_t0=0
    for bar_file
    do
    # BEGIN TRACE
    if test "x${BAR_TRACE}" = x1
    then
    bar_trace=`expr "${bar_file}" : '.*/\([^/][^/]*\)$'` || bar_trace="${bar_file}"
    bar_trace=`expr "${bar_trace}${bar_t_space}" : '\('${bar_t_dot}'\)'`
    bar_trace="${bar_trace} "
    fi
    # END TRACE
    # Initial character position in bar for file:
    bar_char=`expr ${bar_pos} / ${bar_want_bps}` || bar_char=0
    while test "${bar_char}" -gt `expr ${bar_cur_char} + 4`
    do
    bar_graph="${bar_graph}${BAR_C1}${BAR_C1}${BAR_C1}${BAR_C1}${BAR_C1}"
    bar_cur_char=`expr ${bar_cur_char} + 5`
    done
    while test "${bar_char}" -gt "${bar_cur_char}"
    do
    bar_graph="${bar_graph}${BAR_C1}"
    bar_cur_char=`expr ${bar_cur_char} + 1`
    done
    # Get file size. This must work now (we checked with test -f before).
    bar_size1=`eval "${BAR_GET_SIZE}" 2>/dev/null` || bar_size1=0
    # BEGIN LARGE
    # Divide and upround by pattern matching:
    if test -n "${bar_div}"
    then
    bar_size1=`expr "${bar_size1}" : '\(.*\)'${bar_div}'$'` || bar_size1=0
    bar_size1=`expr "${bar_size1}" + 1`
    fi
    # END LARGE
    # loop:
    bar_total=0
    exec 6>&1
    exec 5<"${BAR_DIR}${bar_file}${BAR_EXT}"
    while test "${bar_total}" -lt "${bar_size1}"
    do
    dd bs="${bar_bs}" count="${bar_count}${bar_numsuff}" <&5 >&6 2>/dev/null
    bar_total=`expr ${bar_total} + ${bar_bps}`
    if test "${bar_total}" -gt "${bar_size1}"
    then
    bar_total="${bar_size1}"
    fi
    bar_pos1=`expr ${bar_pos} + ${bar_total}`
    bar_proz=`expr ${bar_pos1} / ${bar_bph}` || bar_proz=0
    # BEGIN PERC
    if test "x${BAR_PERC}" = x1
    then
    bar_perc=" ${bar_proz}% "
    bar_perc=`expr "${bar_perc}" : '.*\(.....\)$'`
    fi
    # END PERC
    # BEGIN ETA
    if test "x${BAR_ETA}" = x1
    then
    bar_diff=`eval "${BAR_GET_TIME}" 2>/dev/null` || bar_diff=0
    bar_diff=`expr ${bar_diff} - ${bar_t0} 2>/dev/null` || bar_diff=0
    bar_100p=`expr 100 - ${bar_proz}` || bar_100p=0
    bar_diff=`expr ${bar_diff} '*' ${bar_100p}` || bar_diff=0
    bar_diff=`expr ${bar_diff} + ${bar_proz}` || bar_diff=0
    bar_diff=`expr ${bar_diff} - 1` || bar_diff=0
    bar_diff=`expr ${bar_diff} / ${bar_proz} 2>/dev/null` || bar_diff=0
    if test "${bar_diff}" -gt 0
    then
    bar_t_unit=":"
    if test "${bar_diff}" -gt 2700
    then
    bar_t_uni="h"
    bar_diff=`expr ${bar_diff} / 60`
    fi
    bar_diff_h=`expr ${bar_diff} / 60` || bar_diff_h=0
    if test "${bar_diff_h}" -gt 99
    then
    bar_eta=" ${bar_diff_h}${bar_t_unit} "
    else
    bar_diff_hi=`expr ${bar_diff_h} '*' 60` || bar_diff_hi=0
    bar_diff=`expr ${bar_diff} - ${bar_diff_hi}` || bar_diff=0
    bar_diff=`expr "00${bar_diff}" : '.*\(..\)$'`
    bar_eta=" ${bar_diff_h}${bar_t_unit}${bar_diff} "
    fi
    bar_eta=`expr "${bar_eta}" : '.*\(......\)$'`
    fi
    fi
    # END ETA
    bar_char=`expr ${bar_pos1} / ${bar_want_bps}` || bar_char=0
    while test "${bar_char}" -gt "${bar_cur_char}"
    do
    bar_graph="${bar_graph}${BAR_C1}"
    ${bar_trace}${bar_eta}${bar_perc}${bar_graph}${BAR_E_C2}" 1>&2
    bar_cur_char=`expr ${bar_cur_char} + 1`
    done
    done
    ) | eval "${BAR_CMD}"
    bar_pos=`expr ${bar_pos} + ${bar_size1}`
    done
    # ${BAR_ECHO} "${BAR_E_C1}" "${BAR_R}${BAR_E_C2}" 1>&2
    fi
    if test "${bar_shown}" = 1
    then
    # BEGIN TRACE
    test "x${BAR_TRACE}" = x1 && bar_trace="${bar_t_space} "
    # END TRACE
    # BEGIN ETA
    test "x${BAR_ETA}" = x1 && bar_eta=' '
    # END ETA
    if test "x${BAR_CLEAR}" = x1
    then
    # BEGIN PERC
    test "x${BAR_PERC}" = x1 && bar_perc=' '
    # END PERC
    bar_lauf=0
    bar_graph=''
    while test `expr ${bar_lauf} + 5` -le "${BAR_WIDTH}"
    do
    bar_graph="${bar_graph} "
    bar_lauf=`expr ${bar_lauf} + 5`
    done
    while test "${bar_lauf}" -lt "${BAR_WIDTH}"
    do
    bar_graph="${bar_graph} "
    bar_lauf=`expr ${bar_lauf} + 1`
    done
    ${BAR_E_C2}" 1>&2_eta}${bar_perc} ${bar_graph}
    else
    # BEGIN PERC
    test "x${BAR_PERC}" = x1 && bar_perc='100% '
    # END PERC
    bar_lauf=0
    bar_graph=''
    while test `expr ${bar_lauf} + 5` -le "${BAR_WIDTH}"
    do
    bar_graph="${bar_graph}${BAR_C1}${BAR_C1}${BAR_C1}${BAR_C1}${BAR_C1}"
    bar_lauf=`expr ${bar_lauf} + 5`
    done
    while test "${bar_lauf}" -lt "${BAR_WIDTH}"
    do
    bar_graph="${bar_graph}${BAR_C1}"
    bar_lauf=`expr ${bar_lauf} + 1`
    done
    ${bar_trace}${bar_eta}${bar_perc}${BAR_L}${bar_graph}${BAR_R}${BAR_E_C2}" 1>&2
    ${BAR_E_NL} 1>&2
    fi
    fi
    ####>-SCHNAPP-<########################################################
    BAR_AWK_0=''
    # Command line interface:
    while test -n "$1"
    do
    case "$1" in
    -o|-c|-w|-0|-1|-e|-d|-b|-s|-\[\]|-\[|-\]|-T)
    if test -z "$2"
    then
    echo "$0: Error: A non-empty argument was expected after $1" 1>&2
    fi
    BAR_ARG="$1"
    BAR_OPT="$2"
    shift
    shift
    -o*|-c*|-w*|-0*|-1*|-e*|-d*|-b*|-T*)
    BAR_ARG=`expr "$1" : '\(-.\)'`
    BAR_OPT=`expr "$1" : '-.\(.*\)$'`
    shift
    -h|-n|-p|-D|-D-|-q|-V|-t|-E|-L)
    BAR_ARG="$1"
    BAR_OPT=""
    shift
    --) shift
    break
    -*) echo "$0: Error: Unrecognized option: $1" 1>&2
    exit 1
    break
    esac
    case "${BAR_ARG}" in
    -h) echo 'Usage: bar [-n] [-p] [-q] [-o FILE] [-c CMD] [-s SIZE] [-b SIZE]'
    echo ' [-w WIDTH] [-0/1/[/] CHAR] [-d DIR] [-e EXT] [Files]'
    echo ' bar -V'
    echo ' bar -D'
    echo ' bar -D-'
    echo 'Options:'
    echo ' -h displays help'
    echo ' -o FILE sets output file'
    echo ' -c CMD sets individual execution command'
    echo ' -e EXT append an extension to each file'
    echo ' -d DIR prepend this prefix to each file (a directory must end in /)'
    echo ' -s SIZE expected number of bytes. Use for pipes. This is a hint'
    echo ' only that must be greater or equal to the amount actually'
    echo ' processed. Further, this only works for single files.'
    echo ' -b SIZE maximal block size (bytes) (default: 1048567)'
    echo ' -w WIDTH width in characters (default: terminal width-3 or 76)'
    echo ' -0 CHAR character for empty bar (default: .)'
    echo ' -1 CHAR character for full bar (default: =)'
    echo ' -[ CHAR first character of bar (default: [)'
    echo ' -] CHAR last character of bar (default: ])'
    echo ' -n clears bar after termination'
    echo ' -t traces (=displays) which file is processed'
    echo ' -T WIDTH no of characters reserved for the file display of -t'
    echo ' -p hides percentage'
    echo ' -E hides estimated time display'
    echo ' -q hides the whole bar, be quiet'
    echo ' -D tries to dump the bar_cat() shell function, then exit.'
    echo ' Here, -t, -p, -E remove the corresponding feature completely.'
    echo ' Further, -L removes large file support from the code.'
    echo ' -D- same as -D, but dumps the function body only'
    echo ' -V displays version number'
    echo ' -- end of options: only file names follow'
    exit 0
    -n) BAR_CLEAR=1
    -L) BAR_LARGE=0
    BAR_AWK_0="${BAR_AWK_0} /END *LARGE/ {x=1} ;"
    BAR_AWK_0="${BAR_AWK_0} /BEGIN *LARGE/ {x=0} ;"
    -t) BAR_TRACE=1
    BAR_AWK_0="${BAR_AWK_0} /END *TRACE/ {x=1} ;"
    BAR_AWK_0="${BAR_AWK_0} /BEGIN *TRACE/ {x=0} ;"
    -T) BAR_TRACE_WIDTH="${BAR_OPT}"
    -q) BAR_OK=0
    -p) BAR_PERC=0
    BAR_AWK_0="${BAR_AWK_0} /END *PERC/ {x=1} ;"
    BAR_AWK_0="${BAR_AWK_0} /BEGIN *PERC/ {x=0} ;"
    -E) BAR_ETA=0
    BAR_AWK_0="${BAR_AWK_0} /END *ETA/ {x=1} ;"
    BAR_AWK_0="${BAR_AWK_0} /BEGIN *ETA/ {x=0} ;"
    -V) echo "bar v${BAR_VERSION}"
    exit 0
    -D) echo "BAR_VERSION=${BAR_VERSION}"
    awk "${BAR_AWK_0}"'{sub(/ *#.*$/,"")} ; /^bar_cat/ {x=1} ; {sub(/^ */,"")} ; /./ {if(x)print} ; /^}/ {x=0}' "$0"
    exit 0
    -D-) echo "BAR_VERSION=${BAR_VERSION}"
    awk "${BAR_AWK_0}"'{sub(/ *#.*$/,"")} ; /^}/ {x=0} ; {sub(/^ */,"")} ; /./ {if(x)print} ; /^{/ {x=1}' "$0"
    exit 0
    -o) exec 1>"${BAR_OPT}"
    -c) BAR_CMD="${BAR_OPT}"
    -b) BAR_BS="${BAR_OPT}"
    if BAR_RAW=`expr "${BAR_BS}" : '\(.*\)k$'`
    then
    BAR_BS=`expr ${BAR_RAW} '*' 1024`
    elif BAR_RAW=`expr "${BAR_BS}" : '\(.*\)M$'`
    then
    BAR_BS=`expr ${BAR_RAW} '*' 1048567`
    fi
    -s) BAR_SIZE="${BAR_OPT}"
    if BAR_RAW=`expr "${BAR_SIZE}" : '\(.*\)k$'`
    then
    BAR_SIZE=`expr ${BAR_RAW} '*' 1024`
    elif BAR_RAW=`expr "${BAR_SIZE}" : '\(.*\)M$'`
    then
    BAR_SIZE=`expr ${BAR_RAW} '*' 1048567`
    fi
    if test "$#" -gt 1
    then
    echo "Error: -s cannot be specified for multiple input files." 1>&2
    exit 1
    fi
    -e) BAR_EXT="${BAR_OPT}"
    -d) BAR_DIR="${BAR_OPT}"
    -0) BAR_C0="${BAR_OPT}"
    -1) BAR_C1="${BAR_OPT}"
    -\[) BAR_L="${BAR_OPT}"
    -\]) BAR_R="${BAR_OPT}"
    BAR_L="${BAR_OPT}"
    BAR_R="${BAR_OPT}"
    -w) BAR_WIDTH="${BAR_OPT}"
    esac
    done
    # Invoke main function:
    if test "$#" = 0
    then
    bar_cat /dev/stdin
    else
    bar_cat "$@"
    fi
    EDIT: solved https://bbs.archlinux.org/viewtopic.php … 85#p498885
    It seems like I have not tried every potential packages after all
    Last edited by tamikana (2011-10-30 16:04:46)

    This might help http://www.dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php#one
    Also, if you use DW CS5 click on Live Code and Live View. Then when clicking on the menu items in Live View, watch the changes in classes that occur. This mifgt give you a clue of what to do.
    Cheers,
    Gramps

  • Anyway to smooth out a progress bar?

    I'm using a Timer with an event to update data on a page.  I'm also using a progress bar to indicate the next update (every 30 seconds).  Currently I'm using a manual progress bar with setProgress() to increase the value by 1 (max value 30) every second to match the 30 second Timer.  This works fine from a functionality standpoint, but I don't like how the intervals on the progress bar jump in chunks to the next value instead of smoothly progressing to the next value.  Basically the progress bar shows 30 "jumps" instead of smoothly filling in.  I have been looking through documentation as best as I can to find any type of transition or smoothing renderer, but no luck.
    I'm using Flash Builder 4 if that helps with suggestions.
    thanks

    Thanks, your comment just cleared up my thinking a bit.  My timer was set to Timer(1000, 30), making it 30 counts.  I adjusted it to Timer(100, 300), making it 300 jumps, which is much less noticeable for the progress bar's size.

  • Progress Bar/Fast Start

    I exported a hyperlink only movie out of Keynote 3. I then inserted into my webpage. If a person clicks on the first hyperlink to go to the next slide it only goes a few frames and then freezes. There is not enough information buffered to move it along.
    What I would like is to have some kind of download progress bar that shows up below the QuickTime so people know to wait. However, I don't want to lose the hyperlinks.
    You can see it at: www.youbelong.net > journal information > instructions
    Any help would be greatly appreciated.

    Hey Granny, I love your apples.
    You could try opening your movie in QuickTime Player (Pro) and then going to the Window menu, Show Movie Properties.
    Click on the Video track to select it and then click on the "Other Settings" button in the gray area below. Check the boxes for "Preload this track" and "Cache (hint)". Repeat for the Sprite track (not sure that that's necessary though) and then save the movie...

  • I have an iphone 4 and I have just upgraded to iOS 5. I have lost my progress bar and song repeat function, how can I get them back?

    I have an iphone 4 and I have just upgraded to iOS 5. Unlike some people, I have not really had any problems but I am really annoyed with the new music feature. I have lost my progress bar abd song repeat function. Does anyone know how I can get them back?

    Glad to hear it all works for you.
    For future reference, if your iPhone misbehaves, always try a Reset. It's painless and often solves the problem.
       Press and hold both the Sleep/Wake button and the Home button for at least ten seconds, until the Apple logo appears (ignore the Slide to Power Off option that shows up first).
    Enjoy.

  • How can add a progress bar into script?

    Hi,
    I got a script for gen pdf
    I want put a progress bar, and make it working
    but I don't know where I can put the progress bar
    and how
    //=====================================================================
    var doc = app.documents; 
    app.findTextPreferences = null; 
    app.findTextPreferences.underline = true; 
    for(var i=0;i<doc.length;i++) 
            var found = doc[i].findText(); 
            var _pages = []; 
            for(var j=0;j<found.length;j++) 
                    var txfms = found[j].texts[0].parentTextFrames; 
                    for(var k=0;k<txfms.length;k++) 
                            _pages.push(txfms[k].parentPage.name); 
            for(var j=0;j<_pages.length;j++) 
                    if(_pages[j] === _pages[j-1]) 
                            _pages.splice(j,1); 
            if(_pages.length != 0) 
                    app.pdfExportPreferences.pageRange = _pages.toString(); 
                    doc[i].exportFile(ExportFormat.PDF_TYPE, new File(doc[i].fullName.toString().replace(/\.indd$/i,".pdf")), false); 
            _pages = []; 
    //=================================================================== Can I put progress bar in here?
               var counter = new Window("palette");
               counter.prompt = counter.add("statictext",[0,0,80,20]);
               counter.show();
               var cells = app.activeDocument.allCellStyles;
               for(var i = cells.length-1; i > 0; i--){
               counter.prompt.text = String(i);
               cells[i].verticalJustification = VerticalJustification.bottomAlign;
               counter.close();
    //===================================================================
    app.findTextPreferences = null;
    alert("Done.");
    thanks
    Harvey

    Hi Harvey,
    Try this,
    var doc = app.documents;
    app.findTextPreferences = null;
    app.findTextPreferences.underline = true;
    for(var i=0;i<doc.length;i++)
            var found = doc[i].findText();
            var _pages = [];
            for(var j=0;j<found.length;j++)
                    var txfms = found[j].texts[0].parentTextFrames;
                    for(var k=0;k<txfms.length;k++)
                            _pages.push(txfms[k].parentPage.name);
            for(var j=0;j<_pages.length;j++)
                    if(_pages[j] === _pages[j-1])
                            _pages.splice(j,1);
            if(_pages.length != 0)
                    app.pdfExportPreferences.pageRange = _pages.toString();
                    doc[i].exportFile(ExportFormat.PDF_TYPE, new File(doc[i].fullName.toString().replace(/\.indd$/i,".pdf")), false);
            _pages = [];
        var counter = new Window("palette");
        counter.prompt = counter.add("statictext",[0,0,80,20]);
        counter.show();
        var cells = app.activeDocument.allCellStyles;
        var w = new Window('palette');
        w.pbar = w.add('progressbar', undefined, 0, cells.length);
        w.pbar.preferredSize.width = 300;
        w.show();
        w.pbar.value = 0;
        for(var i = cells.length-1; i > 0; i--)
            w.pbar.value += 1;
            counter.prompt.text = String(i);
            cells[i].verticalJustification = VerticalJustification.bottomAlign;
        counter.close();
    app.findTextPreferences = null;
    alert("Done.");
    Regards,
    Chinna

Maybe you are looking for

  • Windows XP support/upgrade??? S.O.S...

    Any help much appreciated! Thank you... 1) If I continue to use Windows XP on my older PC mainly for word processing and pix storage etc, will I still run into problems? 2) If I can no longer use Windows XP due to the end of its support, why am I onl

  • Epson 2450 Scanner no longer available as an import into Photoshop

    Hello, I am having a problem with my Epson 2450 scanner importing into Photoshop. Last week with thoughts of upgrading, I purchased an Epson V700. I installed the scanner but found it not to my liking and returned it. Yesterday I downloaded and ran t

  • Is there a way to retrieve a deleted file in adobe bridge?

    Hey- So, for my photography class we upload pictures to a server and then edit them in bridge. I was going through and saving the ones I wanted to keep to my hard drive but I think I accidentally deleted a folder of photos I didn't mean to. The "undo

  • Calendar Sync is Hanging

    Hello, I got my PC re-imaged from the wonderful IT people at work and I re-installed the latest verion of Itunes. I am running Windows XP and Outlook 2007. When I go to synch my phone, Itunes recognizes it and backs it up but then hangs when it goes

  • Jpeg attachment vs. actual picutre?

    how can I make a jpeg file appear as an attachment vs. the actual picture?