Scripting in Pages??

I have a brand new Mac with the latest version of Pages, but I cannot record any scripts within the application. Any idea how I can do this?
Mini   Mac OS X (10.4.7)  

Pages is scriptable. However, it is not recordable, and that can be annoying enough.
To find some posts about scripting Pages, search the forums or google for "tell application pages".

Similar Messages

  • To add Cover page in SAP Script if pages are more than 10.

    Hello Experts,
    I want to print a Cover page first if and only if number of pages exceeds 10 in SAP Script.
    Cover Page should be the first page and then the remaiing pages.

    It's not possible to find the no of pages the script will generate, until it's printed. Again, you need the cover letter as the first page.
    There could be a solution to your requirement. Call the script and get OTF format without printing it to spool. You will get to know the no of pages in the main script . If it's more than 10, call the secondary script to get the OTF data of cover letter. Merge the OTF of main script to OTF of cover letter and print the OTF data to spool using FM PRINT_OTF.
    Check this link for similar code. In your case, the spool of the two sapscripts needs to be merged.
    Re: Smartform to Spool

  • SCRIPT: second page is not print but need spool number

    Hi Friends,
    I'm creating a script. It has only one page. if the line item is exceeds in main window then it automatically print the next page.
    now my requirement isgiven below
      I need to print the first page and the second page should not print. But i need seperate spool request for 2nd page. whenever the user wants second page at that time he use the 2nd page spool number to take the print.
    is there any solution or alternative method?
    Thanks in Advance.
    Vallamuthu.M

    Hmmm if i knew your exact requirement i would be able to propose something better i guess, since this seems a little weird to be honest.
    E.G. having a own output type for your page 2.
    Anyway, returning to what you asked. You opened your form using FM OPEN_FORM. and when you are ready you use CLOSE_FORM to close it again.
    You could make use of END_FORM followed by START_FORM when page 2 is to be printed.
    This will give you page 1 and page in seperate spools.
    you could as well close your form and open it again with ITCPO-TDNEWID = 'X' inmstead of using end_form and start_form.
    But still i highly doubt that complete scenario.

  • Bug in SQL Workshop, SQL Scripts, Results page [Apex 4.0.1.00.03]

    I have some scripts that I have created to insert various rows into a table called level5. Most rows execute properly and the output shows "1 row inserted" as I would expect.
    But then some others give bizarre output on the Results page. Here are a few examples (first 2 are what I would term "correct", the rest are "odd"):
    1 0.27 insert into level5 (name, description, active, approver_id, 1 row(s) inserted. 1
    2 0.02 insert into level5 (name, description, active, approver_id, 1 row(s) inserted. 1
    33 0.02 insert into level5 (name, description, active, approver_id, Statement processed. 1
    58 0.02 insert into level5 (name, description, active, approver_id, Statement processed. 1
    65 0.03 insert into level5 (name, description, active, approver_id, User created. 1
    633 0.05 insert into level5 (name, description, active, approver_id, Role created. 1
    924 0.02 insert into level5 (name, description, active, approver_id, Role created. 1
    The SQL across these various rows is identical except for some values in varchars.
    Here are the corresponding sql commands:
    1
    insert into level5 (name, description, active, approver_id, level4_id) values ('M_SECROLE', 'Security', '1', (select id from persons where pernr='376' and active='1'), (select id from level4 where name='SD1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    2
    insert into level5 (name, description, active, approver_id, level4_id) values ('M_ADMIN', 'ADMIN', '1', (select id from persons where pernr='376' and active='1'), (select id from level4 where name='SD1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    33
    insert into level5 (name, description, active, approver_id, level4_id) values ('COLL_CREAT_RM', 'Collaboration Create Room', '1', (select id from persons where pernr='327' and active='1'), (select id from level4 where name='SD1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    58
    insert into level5 (name, description, active, approver_id, level4_id) values ('360_FEEDBACK', '360 Feedback', '1', (select id from persons where pernr='327' and active='1'), (select id from level4 where name='SD1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    65
    insert into level5 (name, description, active, approver_id, level4_id) values ('AUTO_USER_ADM', 'Automated User Admin', '1', (select id from persons where pernr='702' and active='1'), (select id from level4 where name='DD1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    633
    insert into level5 (name, description, active, approver_id, level4_id) values ('PROD_SUPPORT_CRE_INV', 'IT SRM Prod Support Role Create Invoices', '1', (select id from persons where pernr='990' and active='1'), (select id from level4 where name='PC1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    924
    insert into level5 (name, description, active, approver_id, level4_id) values ('PROD_SUPPORT_CRE_INV', 'IT SRM Prod Support Role Create Invoices', '1', (select id from persons where pernr='327' and active='1'), (select id from level4 where name='QC1' and level3_id=(select id from level3 where name='xyz' and level2_id=(select id from level2 where name='clienta' and level1_id=(select id from level1 where name='Application')))));
    Basically it looks to me like the results text is somehow being affected by the text in my description colum in my SQL. This seems wrong to me, and a bug. Why don't they all just show the same "1 row inserted" text? Why do some say "statement processed"? And why the User and Role created -- that is just plain wrong!
    Would you agree this is a bug??
    This is on Application Express 4.0.1.00.03 in case that matters!

    Hi,
    Browser: Firefox 3.6.13 and IE 8.0
    Template: One Level Tabs - Right Sidebar (optional / table-based)
    Theme: 2. Builder Blue
    Here is an application I created on http://apex.oracle.com.
    http://apex.oracle.com/pls/apex/f?p=29067:1
    Workspace: abc
    User ID: [email protected]
    Password: ssddaa05
    Please look at this application and help me to get the SAL column in RED font when SAL>2000.
    Thanks
    Chandra.
    Edited by: Chandra on Jan 11, 2011 12:38 PM

  • Calculation Script on page 2 with data from page 1?

    I am missing something simple here.. I am wanting to write a calculation script using the sum of two numeric fields on page one divided by the sum of two numeric fields on page two. The only thing I can get to work is if I do a numeric field on page one and do the sum calculation there. Then if I move it down to page two it is just blank. What am I missing?

    Hi,
    You can achieve this, you just need to reference the fields properly.
    First, make sure that you have named both pages. Leaving pages/subforms (and objects) unnamed makes it more difficult to reference in script.
    There is a handy trick when you are in the Script Editor. Hover the mouse over another object and press/hold Control. The mouse will change into a 'V'. Still holding Control click the object, and LC Designer will insert the reference into the script. This is easy enough when the objects are close, so do a bit of practice. If the objects on are on different pages, then you need to scroll down to the object you want to reference, activate the Script Editor again and then click the object with Control held.
    Here is an example for referencing objects: http://www.assuredynamics.com/index.php/category/portfolio/referencing-objects/
    Hope that helps,
    Niall
    Assure Dynamics

  • Sap script form pages

    Hi,
    My client wants some text in the last page above footer.
    I have given
    if &page& = &sapscript-formpages&.
    include (some text)
    endif
    but in debug when page is 1
    formpages is 0.
    Any inputs in this regard would be appreciated.
    Thanks in advance.
    Syed

    Hi Syed ,
    The last page in script is shone as 0.
    so we need to che check with 0.
    try this code.
    if &page& = 0.
    include (some text)
    endif.
    OR
    if &sapscript-formpages& = 0.
    include (some text)
    endif.
    OR
    if &NEXTPAGE& = 0.
    include (some text)
    endif.
    either of this three will works.
    Regards,
    Ramesh.

  • QUERY: AppleScript script editor "page break" in Appleworks

    What is the keyword or code sequence required to set text delimiter in AppleScript 1.10.7 to "page break" for the purpose of removing ALL of them at one time in an Appleworks 6.2.9 document using a script?; something like:
    tell application "AppleWorks 6"
    activate
    set the_text to the text body of front document
    set user_tid to AppleScript's text item delimiters
    set user_tid to AppleScript's text item delimiters
    set AppleScript's text item delimiters to (**page break**)
    set temp_list to text items of the_text
    set AppleScript's text item delimiters to ("[PB removed]")
    set temp_string to temp_list as string
    set AppleScript's text item delimiters to user_tid
    set the text body of front document to temp_string
    end tell
    THIS IS SPECIFIC TO APPLEWORKS ONLY, please, since it appears to me that what keywords or code sequences are "recognized" via AppleScript is NOT "standardized" across all MacOSX programs, I do NOT acknowledge that I should be asking this in the Applescript forum.

    Hello Yvan,
    Well, what I was concerned is AppleScript 2.0 (OS X 10.5) might not provide conventional utxt-to-TEXT (Unicode text to plain text) coercion in passing text to AppleWorks 6 and so AW6 receives UTF-16 data and yet interprets them in system's primary script (e.g. MacRoman), which should yield wrong result... (Perhaps "A" wrongly becomes 0x0041 instead of 0x41, "•" becomes 0x2022 (which is interpreted as SPACE and QUOTATION MARK in MacRoman) instead of 0xA5, etc)
    As for replacing text in AW6 document using AppleScript and ignoring case, a complete test code would be like the following one. The point is to get text from text body of AW doc, coerce it to Unicode text, perform text items' dance on Unicode text, put resulting Unicode text back to text body of AW doc.
    If it returns {true, 49, 49, 49} under both OS X 10.4 and 10.5, it would be OK.
    All the best,
    H
    --TEST CODE
    --(0) prepare a sample document
    set t to "The lark's on the wing; The snail's on the thorn."
    tell application "AppleWorks 6"
    activate
    make new document at front with properties {document kind:text document}
    tell document 1
    set text body to t
    end tell
    end tell
    --(1) get text from front document
    tell application "AppleWorks 6"
    tell document 1
    set t1 to text body
    end tell
    end tell
    --(2) replace "T" by "•" ignoring case
    set u1 to t1 as Unicode text
    try
    set AppleScript's text item delimiters to {"T"}
    set uu to u1's text items
    set AppleScript's text item delimiters to {"•"}
    set u2 to uu as Unicode text
    set AppleScript's text item delimiters to {""}
    on error errs number errn
    set AppleScript's text item delimiters to {""}
    error errs number errn
    end try
    u1 = "The lark's on the wing; The snail's on the thorn."
    u2 = "•he lark's on •he wing; •he snail's on •he •horn."
    --(3) put text to front document
    tell application "AppleWorks 6"
    tell document 1
    set text body to u2
    end tell
    end tell
    --(4) check the validity of text of front document
    tell application "AppleWorks 6"
    tell document 1
    set t2 to text body
    end tell
    end tell
    return {t2 as Unicode text = u2, count t, count t1, count t2} -- should be {true, 49, 49, 49}
    --END OF TEST CODE

  • Listing Bookmark Script Align Page Numbers to Right

    Hello,
    I have a script which will list Bookmark Names and then the Page Number after the bookmark as follows:
    Bill Smith  Page#1
    Jeffrey Jones  Page#5
    Christopher James  Page#8
    What I would like the script to achieve is to list the bookmarks and then align the Page numbers to the right side of the pdf instead of jumbled together.
    Can anyone please advise if it is possible to do this in javascript?
    The existing code is as follows:
    /* List all Bookmarks */
    /* Recursively work through bookmark tree  */
    function PrintBookmarks(bm, nLevel)
        if (nLevel != 0) { // don't print the root
            bmReport.absIndent=bmTab*(nLevel-1);
    bm.execute();
                bmReport.writeText(" "+bm.name +" Page "+(bm.doc.pageNum +1));
        if (bm.children != null)
              for (var i = 0; i < bm.children.length; i++)
                PrintBookmarks(bm.children[i], nLevel + 1);                          
    bmTab = 20;
    bmReport = new Report();
    bmReport.size = 2;
    bmReport.writeText(this.title);
    bmReport.writeText(" ");
    bmReport.size = 1.5;
    bmReport.writeText("Listing of Bookmarks");
    bmReport.writeText(" ");
    bmReport.size = 1;
    PrintBookmarks(this.bookmarkRoot, 0);
    global.bmRep = bmReport;  // make global
    global.wrtDoc = app.setInterval(
        'try {'
        +'       reportDoc = global.bmRep.open("Listing of Bookmarks");'
        +'       console.println("Executed Report.open");'
        +'       app.clearInterval(global.wrtDoc);'
        +'       delete global.wrtDoc;'
        +'       console.println("Executed App.clearInterval");'
        +'       reportDoc.info.title = "Bookmark Listings";'
        +'       reportDoc.info.Author = "List Bookmark Sequence";'
        +'} catch (e) {console.println("Waiting...: " + e);}'
        , 100);
    Any help will be much appreciated

    Thank you very much for your help.
    I have modified the script to have the bookmarks and page numbers on separate lines, however the indent does not go further than the middle of the page on the seconde line for the page numbers, no matter how much the indent is modifed  (I am also using version 8 of Adobe).
    Can you please advise how to get the indent to increment past the middle of the page to the right side of the page?
    The script which has been modified is as follows:
    /* List all Bookmarks first then Page Numbers */
    /* Recursively work through bookmark tree  */
    function PrintBookmarks(bm, nLevel)
        if (nLevel != 0) { // don't print the root
           bmReport.absIndent=bmTab*(nLevel-1);
    bm.execute();
                bmReport.writeText(" "+bm.name);
    bmReport.absIndent=(580);
    bmReport.writeText(" Page "+(bm.doc.pageNum +1));
        if (bm.children != null)
              for (var i = 0; i < bm.children.length; i++)
                PrintBookmarks(bm.children[i], nLevel + 1);                          
    bmTab = 20;
    bmReport = new Report();
    bmReport.size = 2;
    bmReport.writeText(this.title);
    bmReport.writeText(" ");
    bmReport.size = 1.5;
    bmReport.writeText("Listing of Bookmarks");
    bmReport.writeText(" ");
    bmReport.size = 1;
    PrintBookmarks(this.bookmarkRoot, 0);
    global.bmRep = bmReport;  // make global
    global.wrtDoc = app.setInterval(
        'try {'
        +'       reportDoc = global.bmRep.open("Listing of Bookmarks");'
        +'       console.println("Executed Report.open");'
        +'       app.clearInterval(global.wrtDoc);'
        +'       delete global.wrtDoc;'
        +'       console.println("Executed App.clearInterval");'
        +'       reportDoc.info.title = "Bookmark Listings";'
        +'       reportDoc.info.Author = "List Bookmark Sequence";'
        +'} catch (e) {console.println("Waiting...: " + e);}'
        , 100);

  • Regarding SAP SCRIPTS - NEXT PAGE FUNCTIONALITY

    Hi all,
    Can anybody tell me how to get NEXT PAGE FUNCTIONALITY   in SAP SCRIPTS. Means if Data in 1st page does not fit it should go to next page and print.
    I had declared 2 PAGES already in my LAYOUT SET.
    How can i achieve above functionality.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    Hi Rich heilman,
    I had declared first page as PAGE1 & its Next Page attribute as PAGE2 which is also declared already.
    But still it is not showing second page when there is over flow of data.
    does we need to write following code any where in layout.
    IF &PAGE& EQ = 1
    NEXT-PAGE
    ENDIF
    please solve my issue.
    Thanks & Regards,
    Rayeez.

  • Urgent Help, Scripting duplicate page

    This is my XML structure:
    <courses>
    <course>
    <name></name>
    <title></title>
    <sectionname></sectionname>
    </course>
    </courses
    In my Indesign template, I have 1 page with a main placeholder for the course. I have another placeholder on the side of the page that I use for the section (vertical text).
    In my JS script, I count the number of XML records and duplicate the page (templateDoc.pages.item(i).duplicate(); etc). So if there is 25 XMl records, there needs to be 25 pages.
    The problem is that after duplicating the pages....the SectionName tag in the InDesign template is under the first course node and not the correct one. All of the xml records have a section name node but all of those have been moved into the first course node in the indesign template (under the structures). Everything else is correctly imported. I'm thinking it has to do something with SectionName tag being in a seperate placeholder from the main Course placeholder.
    Does anyone know how to fix this issue?

    Hi,
    I also tried using separate placeholders for course and sectionname tags and got the same result i.e sectionnames move under the first course tag. Using same placeholders for course tag and sectionname tag however solves the problem.The tags appear correctly in structure after duplication.
    -Pooja

  • How do I write in greek script in Pages?

    I want to write in greek script (symbol font) but pages doesn't show it. It is in font book. How do I get pages to let me write in the symbol font?

    tgrebe wrote:
    How do I get pages to let me write in the symbol font?
    Make sure you never use the old symbol font for Greek.  The data it produces is actually Latin underneath, and there is no guarantee anyone else will see Greek.  Instead use the Greek keyboard, and the right font to produce real Greek will be used automatically.

  • How to make my script ignore pages 1 and 2?

    Hi all. I'm a complete beginnger at all of this so thank you in advance for all you're help, I really appreciated it.
    I have a JavaScript that I've been working on, and with help from people on here it's working really well. I uses a combination of GREP expressions and checks the entire document and then applies pre-made Character Style that have been set up in the InDesign Templates. (By the way I'm using CS6).
    My latest problem is that I don't want this to affect page 1 or 2 as the templates are layed out in spreads so these are the front and back cover.
    Is there a way I can get the script to ignore page 1 and 2?
    If not, I thought another way round would be to only have the script run on highlighted text, but I'd prefere to just ignore pages 1 and 2.
    Any and all help would be greatly appreciated.
    Thanks again,
    Scorpio

    Hi Scorpio17523 and Kai,
    > As far as I know, it is not possible to search for specific pages?
    My guess is that you can, in fact, use Pages.itemByRange(2,-1)... in order to reach a valid plural specifier that holds a findGrep (or changeGrep) method—like TextFrame or Paragraph. This is a powerful way to run a GREP query in a single command.
    Say you want to apply some character style (MyCharStyle) to every word that begin with a 'A' or 'a', considering all textframes except those of page 1 and 2 (i.e. index 0 and 1). This can be done in a single pass without any loop, as shown below:
    // Your settings
    var GREP_PATTERN = '\\<[aA][\\l\\u]+';
    var CHAR_STYLE_NAME = 'MyCharStyle';
    // Variables
    var doc = app.activeDocument,
        cStyle = doc.characterStyles.itemByName(CHAR_STYLE_NAME),
        target = doc.pages.itemByRange(2,-1).textFrames.everyItem().paragraphs.everyItem(),
        nr;
    // Set GREP, and run!
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = GREP_PATTERN;
    app.changeGrepPreferences.appliedCharacterStyle = cStyle;
    nr = target.changeGrep().length;
    alert( nr + " expressions have been changed." );
    The important part is:
    target = doc.pages.itemByRange(2,-1).textFrames.everyItem().paragraphs.everyItem()
    This allows to filter page indices 0 and 1 inside the specifier. As a result, target is a 'plural' Paragraph object which represents every desired text and can then invoke its changeGrep() method.
    Note that we could as well invoke changeGrep() from a plural TextFrame—i.e.: ...textFrames.everyItem()—but the GREP command will lead to a runtime error if some textframe of the collection is empty. That issue does not occur if one extends the specifier to ...paragraphs.everyItem()—unless all the frames are empty!
    Hope that helps.
    @+
    Marc

  • Script 'next page' is not working in IE 10

    Hello!
    Have you tried to declining or accepting
    A user have big problems with javascript’ working in IE 10 but in Google Chrome everything works fine. When he comes to document library all scripts stop working: next page click, show ribbon.
    There are errors in development tools:
    Script3: the system cannot find the path specified core.js, line 1 character 6957
    Script5007: Unable to get property ‘IsAnimationEnabled’ of undefined or null reference inplview.js, line 1 character 29518
    I have turned on and turned off compatibility view, checked that site belongs ‘Trusted sites’, re-installed the IE. Nothing helps.
    Only one user has the problem.
    Please, advise me what should I check else!

    Hi Anna,
    Have you tested on other PC with this user account?
    It looks like a client side issue, please try the following:
    Reset your IE 10 to it's default settings.
    Use IE 10 32-bit version.
    Run IE 10 as administrator.
    Add SharePoint site URL to IE 10 Local intranet zone.
    Un-check protected mode and use low security level for Local intranet zone.
    Again add the SharePoint Site URL to compatibility view list.
    http://windows.microsoft.com/en-us/internet-explorer/reset-ie-settings
    http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view
    Thanks
    Daniel Yang
    TechNet Community Support

  • System Breaking Script on Page

    If I insert a WebApp onto a webpage with a slider I am using (Cute Slider) I see the following error:
    TypeError: C is null
    ...geSize1();var D=new getScrollPos();var B=navigator.userAgent;var A=getPageSizeNe...
    The Script in Question is:  http://njcdn.worldsecuresystems.com/CatalystScripts/Java_Box.js
    This error goes away when I remove the WebApp.  Why is this script being inserted into the page?  How do I solve this issue?
    Note: I realize the JavaBox script is minified and the above code doesn't really show a good example of the actual error.
    On pages with just a webapp and not this slider all works well.
    The page in question is a production page and I can't leave that page broken. When I have time in the next day or two I will create a test page showing the error unless someone can  help me before then.

    Update:
    I was able to solve this issue by placing my script after the Java_Box script.
    I am curious, what does this Java Box script do?

  • Script for Pages to Email

    can someone help me out here:
    is it possible (if yes, how?) to do an applescript that converts a Pages document into the text body of an email (apple mail).

    Figured it out.
    I guess something about the new php in 10.5.2 does not like the verification of an mx server at the domain of the users email
    commented the following and script works fine now, it worked until I changed from 10.4.11 to 10.5.2.
    I guess that this command is no longer valid.
    function validateemail($email)
    list($userName, $mailDomain) = split("@", $email);
    return checkdnsrr($mailDomain, "MX");
    if (validateemail($email))
    */

  • Script on page causing flash player to run slow

    I am trying to use webmaker( magix) and as I get to the load
    page I get this message... script on this page is making flash
    player run slow and may cause computer to be unresponsive do you
    want to abort after 4 days of trying could anyone tell me what the
    problem could be please

    I don't understand why I would use onEnterFrame(). The entire
    program only needs one frame to exist on, but maybe I don't
    understand how Flash needs to manage these things. I am a C++/Cocoa
    programmer rewriting a program that my boss made years ago in
    Visual BASIC. What made it work for him was to call DoEvents every
    600 itterations, which pauses the execution so that the system can
    catch up with it's own stuff. Are you saying that onEnterFrame will
    do this too? How will this work if the calculation only starts when
    a button is pressed. Does the entire calculation routine need to
    take place on a different frame?
    Could you explain these things?

Maybe you are looking for

  • ICal iPhone Sync Issue... Bug?

    I have many repeating events in my calendar. I often have to change the time of one of the events in the string. I seem to have major problems when I do this either in iCal on my Mac or in the iPhone. When I sync I end up with deleted events, duplica

  • I have downloaded my latest flash player and it still doesn't work, why?

    I have downloaded my latest flash player and it still doesn't work, why?

  • Problem with iPhoto '11 and OS X firewall

    I have had a problem recently where iPhoto '11 keeps asking to allow incoming connections every time I launch the app, even though I have told it "allow" and the firewall is set to automatically allow signed apps. In the past, iPhoto was automaticall

  • Oracle HR 11.5.7 -Select DateTracked Info of Employees for Specific Period

    Oracle HR 11.5.7 -Select DateTracked Info of Employees for Specific Period (From/To) Hi, We have Oracle Human Resources 11.5.7 and I would like to know which is the best way to use when need to query data for employees valid within a specific period

  • My latest Project Siena App is now in the store

    I decided to build yet another Project Siena App the other day when I was semi snowed in. My NWS-NOAA Weather Prediction Mini Center Windows 8 app lets you quickly view the National Forecast Chart for three days, shows the Quantitative Precipitation