Storing Page Count into a Variable

Hi,
In an RTF template, how can I write an expression to store the total number of pages (<fo:page-number-citation ref-id='xdofo:lastpage-joinseq'>) into a variable.
TIA,
Jonathan

You cant have the value stored in a variable. This information will be available only when the page is rendered, and not at the translation stage.
You can brief your requirement here so that we can check if it can be achieved with alternates.

Similar Messages

  • Storing user input into a variable

    Hello,
    i dont know why but flash is being a pain!!
    what i am doing should work as i have done pretty much as it
    says from the official actionscript mx 2004 book.
    Basically i am using the following code:
    enter_btn.onRelease = function() {
    gotoAndPlay(2);
    forename = forename_txt.text;
    surname = surname_txt.text;
    gQuestionNum = 1;
    this script is written so that when i press the enter button
    the values entered into the forename_txt and surname_txt fields
    should be stored in their respective variables (forename and
    surname).
    however when i use the following code on the next frame:
    name_txt.text = forename + " " + surname;
    to display the forename variable and the surname variable
    into the name_txt field, it says UNDEFINED!!
    what am i doiong wrong??
    i know this is probably a simple thing to do but its normally
    the simple thing which makes you wanna chuck your computer out the
    window!!
    please help if you can,
    thank you and all replies will be much appreciated.
    thanks again
    lee

    >>i dont know why but flash is being a pain!!
    Because your code is wrong. You send the playhead to frame 2
    before the vars are defined!!! Keep reading

  • Page count  dynamically in adobe forms

    Hi,
    There is one requirement where they need to print number of pages based on data flow in internal table. to understand better the requirement here is one example as below:
    for ex; there is one internal table in one page which has 1000 records, the internal table is designed on body page (Design view), on the same page there is one footer which say the current page number based on internal table data. say for ex:  the internal table filled with 100 records in the first [page then it should print page count 1 then the remaining 900 records it fills the second page then it should print on the footer page count 2. similarly for last page  it should print page count 10.
    Note: 1  there is other master pages also but the counting of pages should be for dynamic data in the internal table.
    Note: 2 the actually counting should start with value 2 initialization . means first page count should be 2, 3, 4, ... 11.
    solution: do we need to write some code in the script. If yes please provide the code or is there any way to set the page count for that variable from that point onward with +1 page.
    Please advise. Your answer will be highly appreciated.
    Thanks,

    Hi,
    Could you please explain me where I need to write this piece of code in script editor on design view or in master page. I had already written a code on for that variable on master page layout:ready
    data.#pageSet[0].NEG_PROD_FLOW.LINES.Subform6.PAGES_TEXT.GV_PAGE_COUNT2::ready:layout - (FormCalc, client)
    form.NEG_PROD_FLOW.LINES.PAGES_TEXT
    this.rawValue =  xfa.layout.page(this);
    this.rawValue =  (xfa.layout.pageCount() - xfa.layout.pageSpan(form.NEG_PROD_FLOW.LINES.PAGES_TEXT));
    but i need to start page count initialization with value 2. the first page should display 2
    is that possible to do that.
    please advise.
    Thanks,

  • Page Counter Variable & Captivate 4

    Hello - I can't get a simple page counter variable to work that I snagged from Captain Captivate. When I click to preview, the project will not show. I’ve tried F4 and F12, it will not preview the project. When I click F3, it shows the variable text. I’ve downloaded his sample file, this will not preview either. When I delete the variable the previews work. Any ideas on how to solve this problem or is there another option for creating a simple page counter?
    Thanks!!

    Hello,
    You are talking about a slide number? There is a system variable cpInfoCurrentSlide that gives you that number. To have it on all the slides:
    insert a Text Caption on the first slide, in which you insert this system variable, you can add other text as well
    change the timing of this Text caption to 'for rest of project'
    preview: you will have the slide number on each slide.
    If you want to know more about variables, I posted something for starters. The link is in this blog post:
    Curious about variables in Captivate (4 & 5)?
    And if you want to know more, can recommend a Goober guide by the moderator of this CP-forum, Captiv8r:
    Variables and advanced actions
    Lilybiri

  • Count into variable not working in procedure

    I'm writing a simple procedure in a package. Based on Record count I'm inserting record into other table.
    count(fielname) alwways returns zero. But the same SQL statement works fine when I just execute sql statement out side of procedure in SQL window.
    supplierid, userid fields are varchar(20)
    L_CNTSUPP NUMBER;
    SELECT count(SUPPLIERID)
    INTO L_CNTSUPP
    FROM TBLSEQUENCE TS, TBLUSER TU
    WHERE ltrim(rtrim(TS.SUPPLIERID)) = ltrim(rtrim(TU.INFO_1))
    AND ltrim(rtrim(TU.USERID)) = ltrim(rtrim(L_USERID));
    DBMS_OUTPUT.put_line(L_CNTSUPP);
    Please advice.

    Hello,
    Try this:
    SELECT count(*)
    INTO L_CNTSUPP
    FROM TBLSEQUENCE TS, TBLUSER TU
    WHERE ltrim(TS.SUPPLIERID) = ltrim(TU.INFO_1)
    AND ltrim(TU.USERID) = ltrim(L_USERID);
    DBMS_OUTPUT.put_line(L_CNTSUPP);A few points: you do not need an RTRIM when using VARCHAR since it's automatically RTRIMmed, but you should be using VARCHAR2 in Oracle - VARCHAR is for Oracle's own internal use and may change without notice. You only need LTRIM if you've spaces to the left of the data.

  • Storing Column-Name into variable? Possible?

    Hello from germany
    I got stuck with following:
    How is it possible to store the name of a column into a variable or is it possible to put an index "on" a column?
    The reason for this: I need to fill and check a complete column!
    Thanks for Your help!
    Best regards
    Marlon

    Your question is not clear. Howver, this is what I guess you want to do.
    Example, Check that the Emplyee Number I enter is KING. Check and Print message accordingly.
    Here i user PL/SQL run in SQLPlus
    SET VERIFY OFF
    SET SERVEROUTPUT ON
    DECLARE
         EMP_NAME VARCHAR(30);
    BEGIN
         SELECT ENAME
         INTO EMP_NAME
         FROM EMP
         WHERE EMPNO = &EMP_NUMBER;
         IF EMP_NAME = 'KING'
         THEN
              DBMS_OUTPUT.PUT_LINE('The Emplyee Name is: '||EMP_Name);
         ELSIF EMP_NAME != 'KING'
         THEN
              DBMS_OUTPUT.PUT_LINE('The Emplyee is not KING but: '||EMP_Name);
         END IF;
    EXCEPTION
         WHEN NO_DATA_FOUND
         THEN
              DBMS_OUTPUT.PUT_LINE('The Employee Number Entered is Invalid');
    END;
    /

  • Adusting a dynamic page counter

    I'm having a real headache getting a page counter to work in a module. It is a long course - 120 slides - and it features a dynamic menu and a sidebar menu that allows navigation to different sections from anywhere. It also has a glossary, available from anywhere in the course, which has a Back button that goes to the last slide visited.
    I need to change the cpinfocurrentslide variable by -2, to account for two screens before the menu (one of which is the glossary). I've created a variable, display_currentslide, which is in a text caption timed for the rest of the project. I have an Enter action on the menu which has an expression display_currentslide = cpinfocurrentslide. The result is that it shows Slide 1 of 120 on every slide. I can see that the issue is that this action does not happen on every single screen - only on the menu. So one solution would be to add this as an action to every screen, on top of whatever other actions are already there. This is feasible but would take ages. I've also seen a method of adding one or subtracting one for the cpinfocurrentslide using the forward and back buttons, which would work fine for me, except that there is a glossary which you can jump to from any screen in the course. Is there any method of making it work that doesn't involve adding a new action to every single one of 120 screens?
    Many thanks in advance for any advice or tips! I'm using Captivate 8.1, fully updated.

    I suspect you are using 8.0.1.242, because there is no 8.1 available AFAIK.
    If you want to have the variable v_CurSlide (sorry for my translation, this is my labeling way) updated on each slide, you'll have to run an action on each slide of course. Since that action never changes you can attach it to all the slides in one work flow: select all the slides in the Filmstrip (CTRL-A on Win), and enter the action name in the Actions tab, On Enter.
    However I would recommend to use a shared action (better for file size), same work flow because you'll not need to turn anything into a parameter.
    Another tip: why not display the Glossary interaction for the rest of the project as well, and use a toggle button to turn it on/off. Lot less navigation which will speed up the experience for the user since you have a long course.

  • Capturing oracle error codes into a variable

    Hi
    Can someone show me how it is possible to save an Oracle defined error code into a variable? What I am trying to do is when a stored procedure fails an Oracle error is raised, such as ORA-xxxx, then pass this code into variable to be saved into a log.
    How do I achieve this?

    user633278 wrote:
    How do I achieve this?Function SQLCODE in PL/SQL exception handler returns error code. SQLERRM returns message:
    SQL> declare
      2      x number;
      3  begin
      4      x := 1/0;
      5    exception
      6      when others
      7        then
      8          dbms_output.put_line('Error code: ' || SQLCODE);
      9          dbms_output.put_line('Error message: ' || SQLERRM);
    10  end;
    11  /
    Error code: -1476
    Error message: ORA-01476: divisor is equal to zero
    PL/SQL procedure successfully completed.
    SQL> SY.

  • How to take data from HTML Template into BSP Variable?

    hi all,
                can we take the data from the input field of HTML Template and collect into BSP variable? i have the shown the HTML Template into BSP page by passing the url in <IFRAME> tag now i have to take the data form the into field of HTML Template and save it back to the BSP table onclicking the Save button of BSP Page. please help me out thanks in advance.
    Thanks & Regards,
    Amol

    Hi Amol,
    This is very simple....
    In the onInputProcessing event of the page use the following code to read data from the InputField into an ABAP variable...
    Then you can use it at will..!
    Code is :
    data : event       TYPE REF TO if_htmlb_data,
           but_event   TYPE REF TO cl_htmlb_event_button.
    event = cl_htmlb_manager=>get_event( request ).
    IF event->EVENT_NAME = 'button' and event->EVENT_TYPE = 'click'.
          but_event ?= event.
          CASE event->EVENT_ID.
            when 'your_button_id'.
              data : lw_inf type ref to cl_htmlb_inputfield.
                 lw_inf ?= cl_htmlb_manager=>get_data(
                                request = runtime->server->request
                                name    = 'inputField'
                                id      = 'your_inputField_id'  ).
              if lw_inf->value is not initial.
                lw_variable = lw_inf->value.
              endif.
         ENDCASE.
    ENDIF.

  • How I can transfer data from the database into a variable (or array)?

    I made my application according to the example (http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/). Everything works fine. I changed one function to query the database - add the two parameters and get the value of the table in String format. A test operation shows that all is ok. If I want to display this value in the text area, I simply drag and drop service to this element in the design mode
    (<s:TextArea x="153" y="435" id="nameText" text="{getDataMeanResult.lastResult[0].name}"  width="296" height="89"  />).
    It also works fine, just a warning and encouraged to use ArrayCollection.getItemAt().
    Now I want to send the value to a variable or array, but in both cases I get an error: TypeError: Error #1010: A term is undefined and has no properties..
    How can I pass a value from the database into a variable? Thank you.
    public var nameTemp:String;
    getDataMeanResult.token = authors.getDataMean(arrayOfNumber[0], dir_id);
    nameTemp = getDataMeanResult.lastResult[0].name;
    public var nameArray:Array = new Array();
    for (var i:uint=o; i<3; i++){
    getDataMeanResult.token = authors.getDataMean(arrayOfNumber[i], dir_id);
    nameArray[i] = getDataMeanResult.lastResult[0].name;
    And how i can use syntax highlighting in this forum?

    Astraport2012 wrote:
    I have to go back to the discussion. The above example works fine when i want to get a single value of the database. But i need to pass an array and get an array, because i want to get at once all the values for all pictures tooltips. I rewrote the proposed Matt PHP-script and it works. However, i can not display the resulting array.
    yep, it won't work for Arrays, you'll have to do something slightly more intelligent for them.
    easiest way would be to get your PHP to generate XML, then read that into something like an ArrayList on your HTTPService result event (depends what you're doing with it).
    for example, you could have the PHP generate XML such as:
    <pictures>
         <location>test1.png</location>
         <location>test2.png</location>
         <location>test3.png</location>
         <location>test4.png</location>
         <location>test5.png</location>
         <location>test6.png</location>
    </pictures>
    then you'll read that in as the ResultEvent, and perform something like this on it
    private var tempAC:ArrayList = new ArrayList
    protected function getStuff_resultHandler(event:ResultEvent):void
        for each(var item:Object in event.result.pictures)
           var temp:String = (item.@location).toString();
           tempAC.addItem(temp);
    in my example on cookies
    http://www.mattlefevre.com/viewExample.php?tut=flash4PHP&proj=Using%20Cookies
    you'll see an example of how to format an XML structure containing multiple values:
    if($_COOKIE["firstName"])
            print "<stored>true</stored>";
            print "<userInfo>
                    <firstName>".$_COOKIE["firstName"]."</firstName>
                    <lastName>".$_COOKIE["lastName"]."</lastName>
                    <userAge>".$_COOKIE["userAge"]."</userAge>
                    <gender>".$_COOKIE["gender"]."</gender>
                   </userInfo>";
        else
            print "<stored>false</stored>";
    which i handle like so
    if(event.result.stored == true)
                        entryPanel.title = "Welcome back " + event.result.userInfo.firstName + " " + event.result.userInfo.lastName;
                        firstName.text = event.result.userInfo.firstName;
                        lastName.text = event.result.userInfo.lastName;
                        userAge.value = event.result.userInfo.userAge;
                        userGender.selectedIndex = event.result.userInfo.gender;
    depends on what type of Array you're after
    from the sounds of it (with the mention of picture tooltips) you're trying to create a gallery with an image, and a tooltip.
    so i'd probably adopt something like
    <picture>
         <location>example1.png</location>
         <tooltip>tooltip for picture #1</tooltip>
    </picture>
    <picture>
         <location>example2.png</location>
         <tooltip>tooltip for picture #2</tooltip>
    </picture>
    <picture>
         <location>example3.png</location>
         <tooltip>tooltip for picture #3</tooltip>
    </picture>
    etc...
    or
    <picture location="example1.png" tooltip="tooltip for picture #1"/>
    <picture location="example2.png" tooltip="tooltip for picture #2"/>
    <picture location="example3.png" tooltip="tooltip for picture #3"/>
    etc...

  • Importing a text file into a variable

    I have a text file that I would like to import as a variable in javascript. I would like to do some editing to the text in the script before I place it into the page. I have the script splitting text into an array and the different parts need to go to different places... I have everything working for me except for importing the text from a file into a variable (right now I'm defining the variable from within the script).
    Any help would be appreciated!
    -Shane

    In Javascript you could use this:
    var f = File ('/d/books/mytextfile.txt');
    if (f.exists)
    f.open ('r', undefined, undefined);
    var textfile_contents = f.read();
    f.close ();
    Peter

  • How can I get a total page count of a PDF before placing every page in the PDF?

    Before the [long] spiel, I'm using javascript in InDesign CS3.
    I'd like to create a script that places a multiPage PDF in any number of different impositions. (saddle stitch, 4up signatures, 16up signatures etc.)
    I've easily created a script that iterates through a PDF and places it into a new document as (4,1|2,3), (8,5|6,7) etc, which works for printing in duplex, folding each page in half, and gluing the resulting spines to make a simple thick book (for PDFs with more than, say, 64 pages).
    However, the next step is to re-write the script to create a saddle stitch document (16,1|2,15), (14,3|4,13) ... (10,7|8,9). For this I need to know how many pages there are in the PDF before I start placing the PDF pages, and then making the new document [int((PDFpages+3)/4)] pages long.
    Is there a simple way to get the count of PDFpages without going through a loop and placing the next page from the PDF until the placed page number equals the first page number?
    This way seems wasteful:
    var totPDFPages = 1;
    app.pdfPlacePreferences.pageNumber = totPDFPages;
    myPDFPage = sheetFront.place(File(srcPDF), [0,0])[0];
    var pdfFirstPage = myPDFPage.pdfAttributes.pageNumber;
    while (doneCounting == false) {
    totPDFPages += 1;app.pdfPlacePreferences.pageNumber = totPDFPages;
    myPDFPage = sheetFront.place(File(srcPDF), [0,0])[0];
    if (myPDFPage.pdfAttributes.pageNumber == pdfFirstPage) {
    totPDFPages -=1;
    doneCounting = true;
    alert("PDF has " + totPDFPages + " pages!");exit();
    myPDFPage.remove();
    NB. Javascript above *hasn't* been run, but should look similar once debugged.
    The only thing I've though of to relieve the sheer duplication of placing the PDF twice (once for the count, and once for the imposition), is to create an array of impoPages[counter]=myPDFPage, and then shuffle the pages referenced by the array to the correct sheet and position.
    It'd be much easier to be able to assign pageCount = File(srcPDF).pageCount !!!
    Thanks for any help/tips or even a simple "What are you smoking, man!?"
    Cheers,
    Jezz

    this will get almost all pdf pages count.
    jxswm
    function getPDFPageCount(f){
      if(f.alias){f = f.resolve();}
      if(f == null){return -1;}
      if(f.hidden){f.hidden = false;}
      if(f.readonly){f.readonly = false;}
      f = new File(f.fsName);
      f.encoding = "Binary";
      if(!f.open("r","TEXT","R*ch")){return -1;}
      f.seek(0, 0); var str = f.read(); f.close();
      if(!str){return -1;}
      //f = new File(Folder.temp+"/123.TXT");
      //writeFile(f, str.toSource()); f.execute();
      var ix, _ix, lim, ps;
      ix = str.indexOf("/N ");
      if(ix == -1){
        var src = str.toSource();
        _ix = src.indexOf("<< /Type /Pages /Kids [");
        if(_ix == -1){
          ps = src.match(/<<\/Count (\d+)\/Type\/Pages\/Kids\[/);
          if(ps == null){
            ps = src.match(/obj <<\\n\/Type \/Pages\\n\/Count (\d+)\\n\/Kids \[/);
            if(ps == null){
              ps = src.match(/obj\\n<<\\n\/Type \/Pages\\n\/Kids \[.+\]\\n\/Count (\d+)\\n\//);
              if(ps == null){return -1;}
              lim = parseInt(ps[1]);
              if(isNaN(lim)){return -1;}
              return lim;
            lim = parseInt(ps[1]);
            if(isNaN(lim)){return -1;}
            return lim;
          lim = parseInt(ps[1]);
          if(isNaN(lim)){return -1;}
          return lim;
        ix = src.indexOf("] /Count ", _ix);
        if(ix == -1){return -1;}
        _ix = src.indexOf(">>", ix);
        if(_ix == -1){return -1;}
        lim = parseInt(src.substring(ix+9, _ix));
        if(isNaN(lim)){return -1;}
        return lim;
      _ix = str.indexOf("/T", ix);
      if(_ix == -1){
        ps = str.match(/<<\/Count (\d+)\/Type\/Pages\/Kids\[/);
        if(ps == null){return -1;}
        lim = parseInt(ps[1]);
        if(isNaN(lim)){return -1;}
        return lim;
      lim = parseInt(str.substring(ix+3, _ix));
      if(isNaN(lim)){return -1;}
      return lim;

  • A simple app to secure coldfusion pages - Running into an issue with Session

    Hello, I am testing out how to protect pages in coldfusion and have run into an issue when attempting to create a process by which users can log out.
    Essentially, I have three pages:
    Page A - The form that submits to Page B
    Page B - That checks the form.username and form.password against a database (works fine)
    Page C - Logout page (Which is where I am having an issue).
    Page C throws a "variable Session is undefined" error
    Here is the code on Page C:
    <cfset StructClear(Session)>
    <cflocation url="index.cfm">
    Here is the code on Page B:
    <cfif NOT IsDefined ("form.username")>
    <cflocation url="index.cfm" addtoken="No">
    </cfif>
    <cfquery name="test" datasource="cfdb">
    SELECT * FROM USERS
    WHERE USERNAME = '#FORM.username#'
    AND PASSWORD = '#FORM.password#'
    </cfquery>
    <!---<CFSET Session.LoggedIn = "1">
    <CFSET Session.FirstName = "#test.FirstName#">--->
    <CFIF test.RecordCount IS 0>
    <cflocation url="index.cfm" addtoken="No">
    <CFSET StructClear(Session)>
    <cfelse>
    <CFSET Session.LoggedIn = "1">
    <!---<cflocation url="test.cfm" addtoken="No">--->
    </cfif>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <p><a href="logout.cfm">Log Out</a></p>
    <p> </p>
    <p> </p>
    <p><br>
      This content is protected.
    </p>
    </body>
    </html>
    As you can see, nothing fancy
    Now, I thought that the Session variable could be accessed by any page within a given browser instance, but I am obviously wrong.
    What do I need to do for Page C (my logout page to be able to access the session variable).
    Any guidance is greatly appreciated!

    1.
    “Variable Session is undefined” error comes up when you try to manipulate a session variable which does not exist, as at that point in time. To take care of possible empty session structures, it is good practice to check first if your session is defined.
    So you will have something like:
    <cfif isDefined("session")>
    <cfset StructClear(Session) />
    <cfelse>
    <cflocation url="index.cfm">
    </cfif>
    2.
    To enable you access your session variables from any page in your application, you need to enable session management in your Application.cfm or Application.cfc.
    cfm   <cfapplication sessionmanagement="Yes" />
    cfc        <cfcomponent>
    <cfset THIS.SessionManagement = "Yes" />
    </cfcomponent>
    Reference…http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24 -7c48.html

  • Copy the result of Execute immediate result into a variable.

    Hi All,
    Is there any way to copy the result of execute immediate result into a variable.
    am doing following steps but am getting an error.
    varSQLstmt1:='select count(*) into'||vararch_ct||' from '||vararch_count;
    dbms_output.put_line(varSQLstmt1);
    execute immediate varSQLstmt1;
    But am getting sql statement as select count(*) into from SALES
    the variable(vararch_ct) is missing in select statement .
    please help me to solve this issue. Or is there any way to insert the count of records into any variable.
    Thanks
    Sree

    declare
    varSQLstmt1    varchar2(4000);
    v_count          number;
    begin
    varSQLstmt1:='select count(*) from '||vararch_count;
    dbms_output.put_line(varSQLstmt1);   
    execute immediate varSQLstmt1 into v_count;
    dbms_output.put_line('Coutn :: ' || v_count);
    end;

  • Pages 5.0 - Status bar current page & page count?

    How do I show the status bar showing current page and page count? I do not need to see the full thumbnail bar.
    In all prior versions of pages, I could look at the bottom of my window and see my current page and how many pages are in my document.  Now, I glance to the bottom, and I have no idea.  I cannot find any way to turn this on and turning on the thumbnails view does not show this to me at-a-glance because I have to scroll all the way down (through documents hundreds of pages long) to find out how many pages I currently have.
    Please, what am I missing here, how can I make this show up again?
    I mean a quick display here, not adding the page count and numbers to a documents footer.  Although, that would be one way for me to solve this issue, but I do not always want that.

    I wrote a short AppleScript solution that informs about the current document page as a pop-up dialog. This is for Pages v5+ only. I created and saved an Automator Application named CurrentPage to my Desktop. Providing that Pages is running, it will produce the dialog shown in subsequent Automator screen shot.
    Double-click /Applications/Automator and choose New Document, Application, and Choose. Follow the Utilities > Run AppleScript (not Shell Script as shown), and drag Run AppleScript over into the larger window and drop it. Select all of its contents and remove them -- this is just boilerplate.
    Copy and paste the following AppleScript into the now vacant Run AppleScript workflow window. Click the hammer, and File > Save... pick a name, and location to save the application where it is handy. Quit Automator.
    Code:
    -- P
    -- Produce formatted dialog of document name, current page, and page count
    -- Pages v5+ only. Works whether typing in document or scrolling pages.
    -- VikingOSX, June 2014, Apple Support Community - Pages for Mac.
    if not ApplicationIsRunning("Pages") then
      display dialog "Pages must be running to use this utility."
      return quit
    end if
    tell application "Pages"
      activate
      tell front document
      set diagTitle to "Current Document Page"
      set docName to (name as text)
      set thePage to current page
      set curPage to 0
      set pageCnt to page count
      set pnList to its page
      repeat with ndx from 1 to count of pnList
      if thePage is equal to item ndx of pnList then
      set curPage to ndx
      end if
      end repeat
      set vformat to "Document: " & tab & tab & docName & return ¬
      & "Current Page: " & tab & curPage & return ¬
      & "Total Pages: " & tab & tab & pageCnt
      end tell
    end tell
    display dialog (vformat as text) giving up after 15 with title diagTitle
    on ApplicationIsRunning(appName)
      tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
      return appNameIsRunning
    end ApplicationIsRunning

Maybe you are looking for

  • My hard drive crashed, tons of songs on my iphone 5 and can't add new ones from PC without completely erasing it, what can I do?

    My hard drive recently crashed and I cannot recover it. I have a new hard drive and have re-installed iTunes, I have authorised this PC already and I used to have my iphone with "manually manage music", now I can't add nor set "manually manage music"

  • Unable to copy table in same Database

    I m using jdbc:odbc bridge to connect to MS access database. i am trying to create a table by copying data from another table in same database. the code is Statement stmt = mycon.createStatement(); String query = "create table " + temp1 + " as select

  • Music on iMac how to sync over to new MacBook Pro 15"

    I want to sync over my music off my iMac to my MacBook Pro. I have a Belkin Firewire 800/400 9-pin to 6-pin cable. I used this cable to sync over info from my MacBook (3yrs old) to my iMac. * I don't remember how I did this procedure. Plus I only wan

  • Excuting OS Commands using Printer Driver

    Hello, everyone. I recall reading awhile ago about how one could execute OS commands as a printer driver, for post-processing of Concurrent Program output files, for example. Can anyone direct me to some documentation along those lines? Thanks, --Dav

  • IPhone 5 will not sync or back up to itunes

    My iPhone 5 wil not sync or back up to itunes on windows 7 64bit. I have uninstalled itunes, reinstalled, reset the phone, wiped the phone, taken to apple store (however, they did not look at my PC as they said they will only look at macs), tried all