Script to change WP Document margins

Almost all of the word processing documents I use utilize margin settings of .5 inches all the way around. The default settings are 1 inch. Can someone provide me with an applescript I can run to quickly reset the margins? It's a pain to do it manually each time. Or is there another way to do this?
Thanks
40Ford
imac G5   Mac OS X (10.4.9)  

New, blank documents with your settings

Similar Messages

  • Powershell script to change the a column value of all documents in a site.

    Hi,
    I need a powershell script to change the value of a column (a site column which has been added to all document libraries) in all documents in a site,
    For example: 
    -column 1 is a site column added to all libraries
    the value of column 1 of all documents under this site: http://intranet.doman/ex1 should be equal to V1
    the value of column 1 of all documents under this site: http://intranet.doman/ex2 should be equal to V2
    So, if I can write a powershell script to change the value of all documents in a site, I can modify it for different site that I have and run it for each of them individually,

    cls
    # Is dev version?
    $dev = $false
    # Configuration
    $termStore = "Managed Metadata Service"
    $group = "G1"
    $subjectMatterTermSetName = "Subject Matter"
    # Check if SharePoint Snapin is loaded
    if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {
         Add-PSSnapin Microsoft.SharePoint.PowerShell
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Taxonomy") | Out-Null
    function GetTermStore($site, $termStore, $group, $termSet) {    
        $session = New-Object Microsoft.SharePoint.Taxonomy.TaxonomySession($site)
        $termStore = $session.TermStores[$termStore]
        $group = $termStore.Groups[$group]
        $termSet = $group.TermSets[$termSet]
        return $termSet
    if($dev) {
        Write-Host "Running DEV version..."
        $webUrl = "http://Site1"   
        $libraryName = "L1"
        $subjectMatter = "C1"
    } else {
        $webUrl = Read-Host "Enter Site URL" 
        $libraryName = Read-Host "Enter Document Library name"
    $subjectMatter = Read-Host "Enter Subject Matter"
    try {
        $web = Get-SPWeb $webUrl
        $site = $web.Site
        $library = $web.Lists[$libraryName]
        $items = $library.GetItems()
        $subjectMatterTermSet = GetTermStore $site $termStore $group $subjectMatterTermSetName
        $subjectMatterTerm = $subjectMatterTermSet.GetTerms($subjectMatter,$true) | select -First 1
        foreach($item in $items) {
            if([string]::IsNullOrEmpty($item["Subject Matter"])) {     
                #Write-Host "Filename: $filename / Keywords: $keywords / Subject Matter: $subjectMatter / Document Type: $documentType"        
                Write-Host "Updating $($item["ows_FileLeafRef"])..."           
                # Set Subject Matter column
                $subjectMatterField = [Microsoft.SharePoint.Taxonomy.TaxonomyField]$item.Fields["Subject Matter"]
                $subjectMatterField.SetFieldValue($item,$subjectMatterTerm)
                # Update Item
                $item.SystemUpdate()
    catch
        $ErrorMessage = $_.Exception.Message
        Write-Host "Something went wrong. Error: $ErrorMessage" -ForegroundColor Red

  • Cannot change the print margins when printing out my spreadsheet.  Tried clicking on format and then Document but when I enter a number I always get " invalid number".

         I cannot change the margins when printing out my spreadsheet.  I clicked on the format then on document and got a entry box.  But everytime I try entering a number to change the left margin ( tried .5 ) I get an " invalid number " response.  I can print out the spreadsheet but always get a message telling me the margins may be too small and data may be clipped.  Data doesn't get clipped but left part of the spreadsheet is right at the left side of the paper.  Want to change the margin so I don't get that message.

    Naming the spreadsheet app would do wonders for getting an answer.

  • How can I change a document from booklet to single pages

    How can I change a document from booklet to single pages?

    Very cumbersome.
    How many pages?
    Make a copy first.
    In Acrobat use the Crop tool to crop half the width. (Pages > Crop Pages.)
    For 11x17 to 8.5 x11  crop all even pages 8.5 left, all odd pages 8.5 right.
    Do you have InDesign?
    Create a new document correct to finished page size.
    (Use Import Multi Page script to) Place all pages offset by the proper page amount.
    Export new pdf.

  • How do you change the page margins?

    Hi There,
    Since upgrading to Yosemite, I can't figure out how to change the page margins. If you look at the image below, I am trying to extend all of the margins so I can fit more text in. Thank you so much for your help!

    Hi,
    Thank you for your reply.
    I do not see where I click "toolbar" or "Document", etc. I even typed "adjust document" and "header/Footer margins" into the help box and I couldn't find it. Are you able to tell me how to do it starting from "File", "Edit", "Insert", "Format", etc? Or do I need to click on something with the new inspector. The option are "Style", "Layout" and "More". Thank you so much!

  • How to Change the Document Condition Values in PO print

    HI,
    I have a requirement to change the document condition values in PO printout. We are using the copied form of MEDRUCK.
    Please tell me how can i change the Document Condition Values at run time.
    Thanks....

    hi
    hence you have copied standard script you cant able to change the driver program for this you have to use itcsy structure.
    go to the page window and select the window which you have the amount field. open the text editor of the windoiw here write
    /:           PERFORM CONTACT IN PROGRAM ZAMOUNT_ZF110_IN_AVIS1_C
    /:           USING &REGUH-ZALDT&
    /:           CHANGING &DT&
    /:           ENDPERFORM
    now create a report program with name  ZAMOUNT_ZF110_IN_AVIS1_C.
    and follow as the example program is .
    *&      Form  CONTACT
          text
         -->IN_TAB     text
         -->OUT_TAB    text
    FORM contact TABLES in_tab STRUCTURE itcsy
                       out_tab STRUCTURE itcsy.
      DATA : v_telf1 TYPE telf1.
      DATA : v_telfx TYPE telfx.
      DATA : v_adrnr TYPE ad_addrnum.
      DATA : v_flagcomm6 TYPE ad_flgcm06.
      DATA : v_datum(10) TYPE c.
      DATA : v_sydatum TYPE sy-datum.
      DATA : v_lifnr TYPE lifnr .         " Santosh Rawat , 19th Feb
      DATA : v_email TYPE ad_smtpadr .   " Santosh Rawat , 19th Feb
      LOOP AT in_tab.
        IF in_tab-name = 'REGUH-LIFNR'.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' " Santosh Rawat , 19th Feb
            EXPORTING
              input  = in_tab-value
            IMPORTING
              output = v_lifnr.
          SELECT SINGLE telf1 telfx adrnr FROM lfa1
            INTO (v_telf1, v_telfx, v_adrnr)
            WHERE lifnr = v_lifnr.
          SELECT SINGLE smtp_addr FROM adr6    " Santosh Rawat ,19th Feb
         INTO v_email WHERE ADDRNUMBER = v_adrnr. " Santosh Rawat ,19th Feb
         SELECT SINGLE flagcomm6 FROM adrc INTO v_flagcomm6
           WHERE addrnumber = v_adrnr.
        ELSEIF
          in_tab-name = 'REGUH-ZALDT' OR in_tab-name = 'REGUP-BLDAT'   .
          MOVE in_tab-value TO v_datum.
          REPLACE ALL OCCURRENCES OF '.' IN v_datum WITH ' '.
          CONDENSE v_datum.
          MOVE v_datum TO v_sydatum.
    *CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'
    EXPORTING
       input         = V_DATUM
    IMPORTING
      OUTPUT        = V_DATUM
          CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
            EXPORTING
              date_internal            = v_sydatum
            IMPORTING
              date_external            = v_datum
            EXCEPTIONS
              date_internal_is_invalid = 1
              OTHERS                   = 2.
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
        ENDIF.
      ENDLOOP.
      LOOP AT out_tab.
        IF out_tab-name = 'TEL'.
          MOVE v_telf1 TO out_tab-value.
        ELSEIF out_tab-name = 'FAX'.
          MOVE v_telfx TO out_tab-value.
        ELSEIF out_tab-name = 'EMAIL'.
          MOVE v_email TO out_tab-value.        " Santosh Rawat , 19th Feb
        ELSEIF out_tab-name = 'DT'.
          MOVE v_datum TO out_tab-value.
        ENDIF.
        MODIFY out_tab FROM out_tab.
    *MODIFY TABLE OUT_TAB .
      ENDLOOP.
    ENDFORM.             }
    reply for any query.
    regards,
    venkat.

  • Change the default margin settings for the MS word!

    Hi All,
    BI Publisher version:latest 10.1.3.4
    DB:10.2.0.4
    Oracle Apps:12.0.6
    OS:AIX
    We are facing an issue of which description is as below:
    RTF output is being uploaded through "XML Publisher" Responsibility.
    3.1.9 Header and Footer Margin from Edge Not Preserved in RTF Output
    This issue applies to Versions 10.1.3.3, 10.1.3.3.1, 10.1.3.3.2, 10.1.3.3.3, 10.1.3.4, and 10.1.3.4.1.
    Microsoft Word provides a Page Setup option for specifying the margin for the headers and footers from the edge of the page. This option is available by choosing the File menu, then Page Setup, then the Margins tab, and the From edge box. This margin setting is not retained when the output format is RTF. The output is created with the default margin settings instead. The margin settings do work correctly for other output formats such as HTML, PDF, and Excel.
    So, the "default setting" mentioned here is around 1/2 inch for MS Word which is getting added in the output, even if the margin in template is zero.
    Expected output:
    So what we need to do is -
    1. Check the MS word installation on the application server
    2. Change this default margin setting as top and bottom 0 on the server in the MS word page setup. (I can give you steps to do this in word if required)
    We have tried setting this margin to 0 on client side and generating the output and it makes no difference, so it must be coming from the server.
    We need to know how could we modify the settings and need to know te source and Check the MS word installation on the application server?
    Could anyone please share such an issue faced before!
    Thanks for your time!
    Regards,

    Hi All,
    Moreover,
    Our understanding about the RTF output is this -
    When we generate an RTF report output from Oracle EBS, the word document that is generated is with the settings of MS word that is installed on application server.
    This understanding could be wrong as we have never faced such situation before! We have come to this conclusion because the default settings that we do on client machine do not work.
    And as per the documentation of BI publisher the RTF should always be generated with the default settings of MS word.
    So what you could help us with is this -
    1. See if the MS word application is installed on application server ( if you think this is not application server, but any other server then please check there!)
    2. Change the default margin settings for the MS word.
    Regards,

  • How to make a permanent change to AW margins

    I had to do a erase and re-install for leopard.
    I had changed the margins so that they were a permanent change but the re-install brought be back to the original default settings.
    I can not find any notes how I did it, and there is nothing under margins in a "missing manual' that mentions it.
    Can someone remind me of the way to make the change permanently,
    obviously I can do it each time using document but its annoying.
    greg

    Hi Greg,
    You wrote:
    +My template is: Appleworks WP Options.cwk (WP) as a header,+
    By the above, I assume you mean that when you open the 'template' in AppleWorks, the document's Title Bar says "AppleWorks WP Options.cwk (WP)". This would indicate that you saved the file as a document rather than a template. A template would open as "untitled (WP)".
    +I can not tell what the template enclosed box (starting points) says : Appleworks WP.+
    I don't know what you mean by "the template enclosed box (starting points)".
    I tried the get info Command + i , but the info window would not appear.
    I did it with a click for the new template and tried clicking info with a new page,
    Where were you when you did this? From your description above, you seem to be in AppleWorks, with a document open.
    Get Info is a menu item in the Finder's File menu. In the Finder, command-I is a keyboard shortcut for the File > Get info... menu item. That menu item is not available in any ot the AppleWorks modes.
    Command-I will produce a Get Info window only if you are in the Finder (the first three items in the Menu Bar will be  Finder File), and have selected a file's icon icon by clicking on it once. When you have selected a file you can go to the File Menu and choose Get Info..., or you can press command-I.
    +So obviously I need to convert it to .cws. How do I change from cwk to cws?+
    The easiest way is probably to delete the existing file, then recreate the template.
    Quit AppleWorks, go to the Finder, Locate and Delete the file.
    Launch AppleWorks, Open a new word processor document, Set the margins (and make any other settings that you want as default values in new word processor documents), then go File > Save as...
    In the Save as dialogue, click the Template radio button at the bottom right of the dialogue window.
    Change the document name from untitled.cws to AppleWorks WP Options.cws
    (Appleworks will have changed the .cwk suffix to .cws when you clicked the Template button. The application will also have navigated to the Templates folder, which is where this template must be saved to work correctly.)
    Check that;
    —the file name is correct ( AppleWorks WP Options.cws )
    —you are in the Templates folder (popup menu below the file name says Templates)
    —the Template radio button at the bottom of the dialogue window is selected.
    Then click Save.
    The dialogue will close, leaving you in the word processor document. The document's title bar sould still say "untitled (WP)". Go File > Close (or click the red Close button) to close the file. Click *Don't Save* in the alert that warns you that you have not saved the file.
    Your new default options are now set, and will apply to any new word processor document you create using any of the four standard procedures:
    1. go File > New > Word processing
    2. press command-N
    3. click the Word processing button in the button bar
    4. click the Word processing button in the Basic pane of Starting Points
    +and would that also allow me to use the get info window?+
    It will make no change in whether you can use the Get info window. See above.
    Regards,
    Barry

  • Script to Change swatch CMYK values

    Are there any scripts available to change CMYK values of swatches for files in CS3?
    I have hundreds, probably thousands of Illustrator EPS files that use swatches all drawn from a total palette of maybe 50 colours.
    Each colour is named and has a corresponding CMYK value.
    I want to update the CMYK values for all ~50 colours that appears across all these documents. Is there some way I can simply change the CMYK spec of the swatches used by each of these documents by not having to manually open and change the colours etc?
    Even a script would be good that could batch process the files?
    For example:
    File contains a swatch as a named colour like:
    Fire Red spec'd as 0, 96, 99, 0
    I want to automate changing the CMYK values for all files containing Fire Red to, say, 0, 98, 99, 0
    Any ideas? I have searched Google for a couple of days.
    Edit: the flavour here is Illustrator for CS3 - both Win and Mac.

    I understand EXACTLY what you mean as it's the same thing I need to do, and will probably need to do on future occasions.
    Did you get anywhere with this problem?
    I have designed a scheme for a textbook I am illustrating (this is what I do for a living and have been doing so for well over a decade using Illustrator).
    All colours used in every illustration are based on 7 CMYK Global swatches, usually 100% tints but also 50% 75% and others when required.
    Anyway I have done 100 illustrations already based on my template when I realize I'm going to have to darken the green by +10% cyan.
    What I need is a script to change the definition of my global 'green' swatch in every document from 100Y 30C to 100Y 40C.
    Actions won't do it.
    Any suggestions?

  • Script for changing InCopy assignment locations globally

    I have a book with multiple documents with hundreds of separate stories. I need a script to change the assignment locations globally within the ID document to a single folder. As it stands now, I can only change them one by one using their individual Assignment Options dialogue box in ID. Also, it would be nice to also be able to change the "Assigned to" field to a specific set of person(s).
    Someone had written a script a while back for ID2 that did just this but I can't seem to locate it. Not sure it would work with CS3.
    Anyone have any ideas?

    As Andbrowny asked, have you tried using OS X's Locations? See KB 106653, Using network locations in Mac OS X.
    If that doesn't give you the power that you need, checkout Location X.

  • How to change the document color mode(RGB to CMYK)?

    Kindly advice me how to change the document color mode(RGB to CMYK) via scripting in "illustrator cs3".
    Thanks.

    Somebody wrote and posted this a couple of years ago.
    // Duplicate the selection from the active document into a new document.
    // To invoke the JavaScript debugger, remove comment delimiters
    //$.level = 1; debugger;
    var newItem;
    var docSelected = app.activeDocument.selection;
    if ( docSelected.length > 0 ) {
    // Create a new document and move the selected items to it.
    var newDoc = app.documents.add();
    if ( docSelected.length > 0 ) {
    for ( i = 0; i < docSelected.length; i++ ) {
    docSelected[i].selected = false;
    newItem = docSelected[i].duplicate( newDoc,
    ElementPlacement.PLACEATEND );
    else {
    docSelected.selected = false;
    newItem = docSelected.parent.duplicate( newDoc,
    ElementPlacement.PLACEATEND );
    else {
    alert( "Please select one or more art objects" );
    It should give some ideas about how to proceed.

  • Is there any way to change the document size from scene to scene?

    I'm building a portfolio site, but I need the document size to be different from each scene.  I'd rather not create a separate swf/html file for each page since that would disrupt the transition between scenes (not to mention all the wok I went through to get the dropdown menus working).
    For instance, the "home" scene is structured for 1200x670 px, but the portfolio scene labeled "published" needs to be at 1200x1500px.
    Is there any way to change the document size from scene to scene?  OR; If, for instance, I made the universal document size 1200x1500 for the entire flash file, is there a script that would restrict the "home" scene to only show the first 670 pixels?

    not in flash alone.
    you may be able to do what you want using javascript in your html document and using the externalinterface class to communicate between your actionscript the embedding html javascript.

  • Having purchased and installed pages after finishing my 30 day trial I now can't save changes to documents, it keeps saying that my trial is over and I need a serial number?  Never got a serial number, any ideas how to rectify this?

    Hi, having purchased and installed pages after my 30 day trial had finished I am now unable to save any changes to documents I had created in the trial version.  It says I need a serial number, which I never got when I purchased the pages app.  Does anyone kno how to rectify this, I would be very grateful for any help as I'm currently writing up my thesis and am now unable

    Hi, I had the same problem and I found that you don't need a serial number anymore. Here is what I did:
    (1)I went to Applications fodder on my Mac. (You can navigate to the Application folder from 'New Finder Window.')
    (2) Deleted Pages (installed as part of the free  free trial version) from the Applications Folder. Also deleted 'IWorks' from the Applications folder.
    (3) Started AppStore.
    (4) Clicked on  Purchases.
    (5) Clicked on Pages.
    (6) Clicked Install.
    (4) repeated (5) and (6) for Numbers and Keynote

  • How can we change delivery document while doing shipment

    Hi all,
    How can we change delivery document in background while changing shipment document.My requirement is to change the netweight in delivery while doing shipment.Actually it gets blocked when we open the shipment.
    Thank You,
    Regards,

    Hi,
    if you have done the PGI(Post Goods Issue), you can't change the delivery.
    If you want to change the devlivery Qty, you should create the delivery with Partial Split (= X) and you can deliver the splitted qty with a new delivery.
    Regards,
    Baburaj

  • Is it possible to script language change in OSX Lion ?

    I recently purchased a Disney game (Cars 2) from the App Store, which advertises being available in 5 languages. It seems now that the game has no in-app options to change language, but selects the language based on OSX settings (but otherwise the app doesn't use ANY of the GUI elements from the OS).
    My Mac's are all set up in English, in the account on which my kid plays the game doesn't have administrator rights (for good reasons). He doesn't master the English language enough and would like to play the game in dutch. On the other hand, when using Safari and other apps, he is used to the English user interface.
    Is it possible to create a script that changes the Finder language to Dutch, then forces Finder Quit, then launches the App, and after quitting the App reverses the Finder Change ? (or if not in one step, maybe in a number of subscripts), so that I can let my kid enjoy his game in dutch without me having to be present each time to change the system settings ?
    Thanks in advance.
    Philip

    Tom, thanks, this works perfectly. In older days, I have been a programmer on Mac (long before even the PowerMac days), and back then I would have used ResEdit to do something similar as what you suggested. Since those days are long gone, I was not sure if it was possible to change the resources of an app without extensive coding software, but the trick you just showed me seems to be the current-day equivalent of ResEdit ...
    Anyways, you saved our day ... thanks alot
    Philip

Maybe you are looking for