Script for printing using alternate layout in Word

I am relatively new to Applescript, but have a basic understanding of commands, etc. I am trying to write a script to print the active document in MSWord in draft quality. I often print large volumes of docs for quick reference but do not need high quality output. I am simply saving ink. How does Applescript access the printing preference settings? The Word script library obviously has no specific commands for the print dialog options, and I don't see any applescript commands to do it either. Since printing is handled by OS X, not by Word, I assume the commands will rest outside of the Word tell block?
Any help would be super!
Dual 2.0 G5 PPC   Mac OS X (10.4.8)   1GB DDR GeForce 6800 Ultra Mac Mini 1.4

It can't be done using only a PDF file - any link to a URL will simply open your web browser, and whatever handler that browser uses when presented with MP3 files will be triggered (download, play, etc.) - nothing in the PDF can override that handler and force a "save" operation.
Instead you'll need to configure your website to force downloads (using HTTP headers) and link to those URLs instead; which is a subject outside this forum.

Similar Messages

  • Script for downloading files from pdf placed on web, script for printing for exchange-

    Looking for java script command to set on button in pdf. We have mp3 and pdfs on our web site, example of URL: http://www.uzlicek.cz/download/Pohadky/O_holcicce_ktera_si_prala_byt_dospela.mp3
    By clicking on button/link in reader I would like to appear a dialog box with offer to Safe file as…
    Any suggestion? In case of using “link tool” the file starts downloading to cache and this is not the objective. In case of using “sound tool”, the file does not appear for saving.
    For exchange the script for Print the current page:
       var n = this.pageNum;
        var pp = this.getPrintParams();
        //pp.pageSubset = pp.subsets.all;
        //pp.printContent = pp.constants.printContent.doc;
        pp.firstPage = n;
        pp.lastPage = n;
        this.print(pp);
    Cheers Martin

    It can't be done using only a PDF file - any link to a URL will simply open your web browser, and whatever handler that browser uses when presented with MP3 files will be triggered (download, play, etc.) - nothing in the PDF can override that handler and force a "save" operation.
    Instead you'll need to configure your website to force downloads (using HTTP headers) and link to those URLs instead; which is a subject outside this forum.

  • Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera'

    Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera's DSC files?

    DNG files do not contain some metadata supplied by the camera, which can be used by the manufacturer's software. Thus, if you don't keep the original Raw photo, you will lose this information.
    If your 1000% sure you're never going to use the manufacturer's software, then this isn't a problem. But who can be sure what software you will be using 10 years from now?

  • Error with styles when using Alternate Layout

    I'm trying to use the new Alternate Layouts function in CS6 to create a template for both 8-1/2"x11" and A4 sized pages. While trying to create the alternate layout, I receive an error that says, "One or more styles were not mapped. Cannot create a mapped style when one of the source styles is based on another source style."
    I think this means that InDesign doesn't like that some of our styles are based on others - for example, Figure references are based on Body text, with bold-italic-centered changes. I have changed all the paragraph styles to be based on "[No Paragraph Style]" instead of being based on other styles, yet I still get the error. What should I do? Thanks.

    That's a great find Mike. I just ran into this problem myself and sure enough, removing the nested styles did the trick. That being said, I didn't get the error when creating the first Alternate Layout (even though the source layout contained nested styles). I didn't receive the error until creating the second Alternate Layout. I ended up removing the nested styles, creating the Alternate Layout, then putting them back in. Fortunately with this project, I don't have a ton of nested styles. If I did, it would be a huge pain. Anyone at Adobe able to comment on this issue? Known issue?

  • Run s a script for to use tmconfig in batch mode failed.

    This is the script for add a server using tmconfig utility:
    $ more add_server.sh
    export EDITOR="echo \"TA_SERVERNAME\t$1\nTA_SRVGRP\t$2\nTA_SRVID\t$3\n\" >>$4"
    tmconfig <<!
    4
    4
    y
    y
    q
    y
    ubb_new.`date +"%y%m%d"`
    This is the outpun when I run the script:
    $ add_server.sh nuevo1 srv 99 s1
    Section: 1) RESOURCES, 2) MACHINES, 3) GROUPS 4) SERVERS
    5)SERVICES 6) NETWORK 7) ROUTING q) QUIT 9) WSL
    10) NETGROUPS 11) NETMAPS 12) INTERFACES [1]:
    Operation: 1) FIRST 2) NEXT 3) RETRIEVE 4) ADD 5) UPDATE
    6) CLEAR BUFFER 7) QUIT [1]: Enter editor to add/modify fields [n]? Perform operation [y]? CMDTUX_CAT:1766: ERROR: tpcall() failed, TPESVCFAIL - application level service failure
    Return value TAEREQUIRED
    Buffer contents:
    TA_OPERATION 4
    TA_SECTION 3
    TA_OCCURS 1
    TA_STATE NEW
    TA_STATUS LIBTMIB_CAT:236: ERROR: SET operation did not specify required key field
    Section: 1) RESOURCES, 2) MACHINES, 3) GROUPS 4) SERVERS
    5)SERVICES 6) NETWORK 7) ROUTING q) QUIT 9) WSL
    10) NETGROUPS 11) NETMAPS 12) INTERFACES [4]: Unload TUXCONFIG file into backup UBB [y]? Backup filename [UBBCONFIG]? Configuration backed up in ubb_new.050304
    I hope that you can help me. Regards.
    Marcela.

    Marcela,
    Your script sets EDITOR to an echo command which appends to $4, which is s1
    in your invocation of addserver.sh.
    However, tmconfig invokes $EDITOR on file /tmp/Ta$$ , where $$ is the
    process ID of tmconfig. Therefore, your script
    appends to s1 but leaves the file actually used by tmconfig unchanged,
    resulting in an error since the name, group, and ID of the new server have
    been left unspecified.
    Try setting EDITOR=vi and adding the fields manually to add your server.
    If you will be adding new servers frequently and want to develop a script or
    program to do this, an ud32 script or a C program invoking the TM_MIB(5)
    interface are probably the easiest ways to do this.
    Ed
    <Marcela Godoy> wrote in message news:[email protected]..
    This is the script for add a server using tmconfig utility:
    $ more add_server.sh
    export EDITOR="echo \"TA_SERVERNAME\t$1\nTA_SRVGRP\t$2\nTA_SRVID\t$3\n\"
    $4"tmconfig <<!
    4
    4
    y
    y
    q
    y
    ubb_new.`date +"%y%m%d"`
    This is the outpun when I run the script:
    $ add_server.sh nuevo1 srv 99 s1
    Section: 1) RESOURCES, 2) MACHINES, 3) GROUPS 4) SERVERS
    5)SERVICES 6) NETWORK 7) ROUTING q) QUIT 9) WSL
    10) NETGROUPS 11) NETMAPS 12) INTERFACES [1]:
    Operation: 1) FIRST 2) NEXT 3) RETRIEVE 4) ADD 5) UPDATE
    6) CLEAR BUFFER 7) QUIT [1]: Enter editor to add/modify fields [n]?Perform operation [y]? CMDTUX_CAT:1766: ERROR: tpcall() failed, TPESVCFAIL -
    application level service failure
    Return value TAEREQUIRED
    Buffer contents:
    TA_OPERATION 4
    TA_SECTION 3
    TA_OCCURS 1
    TA_STATE NEW
    TA_STATUS LIBTMIB_CAT:236: ERROR: SET operation did not specify requiredkey field
    >
    Section: 1) RESOURCES, 2) MACHINES, 3) GROUPS 4) SERVERS
    5)SERVICES 6) NETWORK 7) ROUTING q) QUIT 9) WSL
    10) NETGROUPS 11) NETMAPS 12) INTERFACES [4]: Unload TUXCONFIG file intobackup UBB [y]? Backup filename [UBBCONFIG]? Configuration backed up in
    ubb_new.050304
    >
    >
    I hope that you can help me. Regards.
    Marcela.

  • EBS script for counting used licenses

    Hello,
    I'm looking for a script to execute on the database aimed at telling me how many licenses are actually used on my EBS.
    As part of an internal audit on licenses, I need to compare what we use in EBS with what we have bought.
    Concerning what we have bought, I have all the contracts.
    Concerning what we use, i'm looking for a method to determine the exact count.
    Ideally, I was wondering if a database script could exist, regarding that all users, employees and so on are stored in the EBS database.
    I was also wondering if a documentation exists.
    Many thanks.

    Hi,
    you can use this,
    REM:**********************************************************************************************
    REM: Script SCRIPT FOR User Informations
    REM: NOTE: PLEASE TEST THIS SCRIPT BEFORE USE.
    REM: Author will not be responsible for any damage that may be cause by this script.
    set feedback off
    set termout on
    set pagesize 56
    set linesize 800
    ttitle off
    spool D:\userinfo.wri
    set verify off
    set heading on
    Prompt Database Name:
    select 'Database Name (SID): ' || name "name" from v$database;
    prompt
    prompt
    prompt Database Version Informations:
    select * from v$version;
    select username,profile,default_tablespace,temporary_tablespace from dba_users;
    Prompt Database Character Set Informations:
    select * from nls_database_parameters;
    Prompt Database Segment Managment Informations:
    select TABLESPACE_NAME,BLOCK_SIZE,EXTENT_MANAGEMENT,SEGMENT_SPACE_MANAGEMENT from dba_tablespaces;
    Prompt Database Object Informations:
    select owner,object_type,count(1) from dba_objects Where owner not IN ('SYS','MDSYS','CTXSYS','HR','ORDSYS','OE','ODM_MTR','WMSYS','XDB','QS_WS', 'RMAN','SCOTT','QS_ADM','QS_CBADM',
    'ORDSYS','OUTLN','PM','QS_OS','QS_ES','ODM','OLAPSYS','WKSYS','SH','SYSTEM','ORDPLUGINS','QS','QS_CS') group by owner,object_type order by owner;
    Prompt File and Tablespace Informations:
    SELECT file_name,tablespace_name,autoextensible,maxbytes/1048576 FROM dba_data_files;
    spool off
    Hope it help.

  • Do you have a 1c logo for print use?

    Looking for a Works with Itunes logo for print use

    I'm not aware of a "works with iTunes" logo. I can't find one in any of the trademark or badging information Apple provides to developers, anyway. Can you post the URL to an example?
    Regards.

  • Apple script for print que???

    I was wondering if anyone knew of an Applescript or third-party software for the print que in OS 10.4 that will allow me to see what application the completed files were printed from.
    Thank,
    John
    733mhz Quicksilver upgraded to 1ghz processor, 40gig Maxtor HD   Mac OS X (10.3.8)  

    You may be able to adopt this script:
    on open dropped_items
       -- Write a message into the event log.
       log "  --- Starting on " & ((current date) as string) & " --- "
       -- set see to alias "Macintosh-HD:Users:mac:Desktop:app.html"
       -- set dropped_items to {see}
       set the_app to "Safari"
       repeat with dropped_item_ref in dropped_items
          --set UrlBase to "xzzx FILE://" & POSIX path of dropped_item_ref
          --display dialog UrlBase
          -- Activate
          activate application the_app
          -- Open the URL 
          tell application the_app
             open dropped_item_ref
             -- print dropped_item_ref
             tell application "System Events"
                tell process the_app
                   delay 3
                   -- click menu item "Print..." of menu "File" of menu bar 1
                   keystroke "p" using command down
                   delay 1
                   keystroke return
                   delay 10
                   keystroke "w" using command down
                end tell
             end tell
             --quit
          end tell
       end repeat
    end open

  • Script for printing changed pages only

    Does anyone know of a script that will allow the printing of only those pages that have had changes made to them since a previous save? I'm a typesetter doing work only on books and journals and sometimes it's a bit tedious to keep track of the individual pages one works on. thanks,

    Ok,
    Here is a raw code. All you need to do is edit the script to specify the printer preset you want to use. I don't have a printer my self to debug but I think it should work.
    Here is the idml to grab the object styles. Don't forget to apply on objects located onto the pasteboard. The script look for these objects and grab the page name next to them to finally print these pages.
    Hope it helps,
    Loic
    function main(){
              var doc,
              changedArray = [],
              changedStyle,
              unchangedStyle,
              i=0,
              max=0,
              found = [],
              pagerange = [];
              obj,
              vb,
              leftPage,
              leftPageBounds,
              rightPage,
              rightPageBounds,
              pagerange = "";
              if(!app.documents.length){ return; }
              var doc = app.activeDocument;
              changedStyle = doc.objectStyles.itemByName("changed");
              unchangedStyle = doc.objectStyles.itemByName("unchanged");
              if(!changedStyle.isValid ||  !changedStyle.isValid){
                        alert("Problem with object styles. Script requires both \"changed\" and \"unchanged\" styles.");
                        return;
              app.findObjectPreferences.appliedObjectStyles = changedStyle;
              found = doc.findObject();
              max = found.length;
              for(i=0; i<max; i++){
                        obj = found[i];
                        vb = obj.visibleBounds;
                        leftPage = obj.parent.pages[0];
                        leftPageBounds = leftPage.bounds;
                        rightPage = obj.parent.pages[-1];
                        rightPageBounds = rightPage.bounds;
                        if(vb[1]>rightPageBounds[1]){
                                  pagerange.push(rightPage.name);
                        else if(vb[1]<leftPageBounds[1]){
                                  pagerange.push(leftPage.name);
              app.printPreferences.activePrinterPreset = app.printerPresets.itemByName("my printer preset");
              var oldPrintPrefs = doc.printPreferences.pageRange;
              doc.printPreferences.pageRange = pagerange.join(",");
              alert("Gone printing");
              app.print();
              doc.printPreferences.pageRange = oldPrintPrefs;
    main();

  • How to find out the driver program and script for print preview for PO

    Hi All,
    We are getting some text output on the print preview of a purchase order.
    How can we determine the driver script and the corresponding print program for this.
    Can you please guide on this.
    Thanks in advance.
    Regards,
    Sanjeet

    Hi,
    check with  below table
    TNAPR   ---  Processing programs for output
    and NACE Transaction code
    NACE  --  out types
    Regards,
    Madhu

  • Script for printing

    I have written a small script which checks ink levels in my printer and writes them to a file for later checking. I would like it to automatically run when my computer shuts down, regardless of what desktop environment I am in. What would be the best way of doing this?
    Thanks

    Use /etc/rc.local.shutdown.

  • Script for printing options

    Is there any script that would make a PDF always print front/back so the user doesn't have to manually check that option everytime they go to print? What would be the best way to do this? Thanks in advance for your help.

    Try the setting the reversePages PrintParams property with the print method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.1010.html
    PrintParams: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.980.html
    print: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.511.html
    click the icon in the upper-left to see the documentation in a framed window.

  • How do I make a logo designed in Illustrator hi-res for print use?

    e

    OldBob1957 wrote:
    A PDF keeps vector objects as vector, and thus resolution independent. Only if you have raster effects (drop shadows, gradients, or the like) would you need to worry about things like Press Quality -- though if you will be using PDFs much at all, it is a good idea to get into the habit of using the Press Quality setting for final output.
    Yup... and the default Illustrator also keeps the resolution of the ai file. (Caveat... you'd probably have to have created the file at 300 dpi/ppi???)

  • Script for calculations using checkboxes in PDF form

    I have 7 checkboxes, at least one must be checked, but the user may select all. Each one has a value of 800, therefore selecting all seven would give a total of (800 + 800 + 800 + 800 + 800 + 800 + 800). Selecting only two: (800 + 800), etc.
    However, the last checkbox is a 50% discount for students.
    I'd like the total to have this formula:
    (CheckBox1 + CheckBox2 + CheckBox3 + CheckBox4 + CheckBox5 + CheckBox6 + CheckBox7) = x
    If CheckBox8 is selected, then x/2.
    I've done (CheckBox1 + CheckBox2 + CheckBox3 + CheckBox4 + CheckBox5 + CheckBox6 + CheckBox7) / CheckBox8
    but in this way, I only get a value if the CheckBox8 discount is selected. Not everyone will be a student.
    Excel, Access, no problem, but I'm new to javascript and pdf forms. Any suggestions?
    Isabel

    Two things about Acrobat JavaScirpt and forms you should be aware of:
    1. Check boxes and radio boxes have a string value of "Off" when there is no selection is made for the field or a field within an exclusionary group of fields, fields with the same name but different export values.
    2. One can not divide by zero and expect a reasonable answer. You will get a string returned with a value of "NaN' (Not a Number), "Infinity", or "-Infinity". Those values maybe number types but the numeric field type can not display them and reports a format error. You can check this by setting the field format to 'None'.

  • Standard form for printing production order

    hi experts,
                 i need the standard script for printing production order.

    Hi
    Check out this Forms
    PSFC_DOC_LINKS   Print production order
    PSFC_PRINT_LAY    Production order printing
    WE_FERT_VERS2    GR slip for production order
    Reward Points if it is Useful.
    Thanks,
    Manjunath MS

Maybe you are looking for

  • Client side event for h:outputText... and other JSF component

    Hello friends... I need client side (to use Java script ) event for change in <h:outputText /> or <h:inputText...>. I want to open a popup window when there is a change in there. I donot want to use onblur() for this. Is there any thing for achiev it

  • How do i get the FormDumper.java from JDAPI working?

    Hi, I am a novice in Java and Forms Api (C). I am interested in a solution that would reduce the time for us to make some sweeping changes across applications and hence became interested in this. By trial and error, I got a couple of examples of the

  • Hacking iPhoto, running multiple instances of iPhoto at the same time.

    Inspired by Locking Photo Album ... I'm looking for a way to open two iPhoto library folders simultaneously. 1. Copy iPhoto 2. edit /Applications/iPhoto.app/Contents/Info.plist CFBundleIdentifier com.apple.The Second iPhototo obtain a second preferen

  • System Preferences Changing Without User Input

    I have one user who has had random system preferences change without her input. She is a network user connecting to a Lion 10.7.5 Server via OD. Her desktop is Lion - 10.7.4 Example:  Today her setting for Security and Privacy to require a password o

  • Password in Apple Mail changing

    Using Yosemite and AppleMail on MacMini and MacBookPro. with iPhone 5S and iPad Air. Passwords are changing to an empty field when i go to send mail. Not understanding this behavior.