OPatch Automation for GI

we are having 11.2.0.2 RAC Database on 3 node cluster. OS : RHEL 5.6
when OPatch auto is used to apply patch do we need to stop all the instances on the node and the cluster or auto command will automatically stop and start all the processes running from ORACLE_HOME

opatch auto will take care, please refer:
http://docs.oracle.com/cd/B16240_01/doc/em.102/e15294/options.htm
auto Command
Ordinarily, a Clusterware patch requires several manual steps before and after you apply the patch, such as:
Stopping all dependent databases
Stopping Clusterware resources
Running pre-patch scripts
Shutting down Clusterware
Running post-patch scripts
Starting Clusterware and dependent databases
The opatch auto command automates all of these tasks for patching the CRS home and all other applicable RDBMS homes.

Similar Messages

  • Using Automator for Social Media

    Hi,
    I would like to use Automator to schedule social media posts (links/articles) on a daily basis on 4 different platforms. Is this possible?
    If you have tried or are using this method, or would like to please get back to me.
    Would be a great way to avoid external software permissions and do it all privately and all for FREE.
    With reports and metrics. This may require some Apple Script. I am trying to do what Hootsuite does.
    I can probably execute 50%, but would need an Apple developer's expertise to seal it all.
    Thank you for your time and effort.
    Kind regards,
    Brigitte.

    you don't need automator for this. go to finder preferences->general and check the box to show connected servers on the desktop. then just connect to the remote computers and then drag the mounted volumes from the desktop to your login items in system preferences->accounts->login items. then when you log in the remote computers will be automatically mounted. you can also use a cloud storage solution like Mobileme or DropBox and store the password database file in a central online location.

  • Maxl Automation for sequential calc scripts - just stops without giving any error

    Hi,
    I was running an automation for calculations using MaxL. by scheduling the Steps.bat in the task scheduler of windows.
    _________ Steps.bat ___________
    StartMaxl Steps.mxl
    _________ Steps.mxl ___________
    Login .....
    Sppol on to log.log
    Execute calculation 'DB'.'DB'.StepA1;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA2;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA3;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA4;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA5;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA6;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA7;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA8;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepB1;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepB2;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepB3;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepB4;           Iferror 'StopError';
    define label 'StopError';
    exit;
    Not when I check the log file on execution it shows ...
    ___________________ Log.log _______________________
    MAXL> execute calculation 'DB'.'DB'.'StepA1';
    OK/INFO - 1012579 - Total Calc Elapsed Time for [StepA1.csc] : [173.87] seconds.
    OK/INFO - 1013274 - Calculation executed.
    MAXL> execute calculation 'DB'.'DB'.'StepA8';
    OK/INFO - 1012579 - Total Calc Elapsed Time for [StepA8.csc] : [2000.00] seconds.
    OK/INFO - 1013274 - Calculation executed.
    MAXL> execute calculation 'DB'.'DB'.'StepB1';
    OK/INFO - 1012579 - Total Calc Elapsed Time for [StepB1.csc] : [1200.00] seconds.
    OK/INFO - 1013274 - Calculation executed.
    MAXL> execute calculation 'DB'.'DB'.'StepB2';
    If you see the last line - it just halts - doesn't show any error or any other message. And the task in the windows task scheduler keeps showing the task as running - without any error there as well.
    Any ideas on why it is just going to a limbo (no sessions also appear on EAS console)
    Ankur

    Yes the script can be manually executed. Also if I again put a mxl file starting from the step where it last stopped - it continues execution normally. (i.e. executes StepB2 as well and continues executing)
    And today's execution result - I kept monitoring the server, it ran for 3hrs and then halts after around 80% of the steps with 20% were still remaining. I created a new Mxl to start from the last 20% and it ran successfully again.
    @Amarnath : Restart database ?
    I checked the logs - and this is what I can see (modified the big fields to show what the logs are showing)
    [Wed Oct  9 09:54:43 2013]Local/....... Ankur.....
    Calculation executed
    [Wed Oct  9 09:54:43 2013]Local/DB///47450147858752/Info(1013210)
    User [Ankur.....@Native Directory] set active on database [DB]
    [Wed Oct  9 09:54:43 2013]Local/DB/DB/Ankur......
    Received Command [Calculate] from user [Ankur......@Native Directory]
    [Wed Oct  9 09:54:43 2013]Local/DB/DB/Ankur......
    Received Command [Calculate] from user [Ankur......@Native Directory] using [StepB2.csc]
    [Wed Oct  9 10:24:59 2013]Local/DB///47341561242320/Info(1002035)
    Starting Essbase Server - Application [DB]
    [Wed Oct  9 10:24:59 2013]Local/DB///47341561242320/Info(1200480)
    Loaded and initialized JVM module
    [Wed Oct  9 10:24:59 2013]Local/DB//47341561242320/Info(1200445)
    External [GLOBAL] function [@ESSBASEALERT] registered OK
    [Wed Oct  9 10:25:01 2013]Local/DB//47341561242320/Info(1019008)
    Reading Application Definition For [DB]
    So indeed the essbase server is starting again - but why ?
    Ankur

  • OLE Automation for Acrobat Reader

    Hello guys
    I have been reading some lines about OLE Automation for Acrobat READER and Full Acrobat.
    So far I have seen most saying that Reader is not fully compliant with OLE. I really have zero experience with Adobe and before I buy a full acrobat license, I want to make sure of the following:
    What I need to do is the next 4 simple calls:
    Connect to Acrobat
    Open a pdf file in invisible mode
    Perform "Select All"
    Copy Selection to clipboard
    After that, I will importclipboard to my datawindow and I will be done for my programming task.
    Have you had similar experiences about Acrobat OLE for PDF ?
    some references are in help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp
    Thanks so much in advance for any hint.
    Regards

    Hello again
    Chris, thanks so much for your very quick response.
    At a first glance, the PDF Toolkit looks good and with a good price too, but I did not see if I can call functionality from PowerBuilder code without opening a user interface. Are you familiar with this ?
    Stuart, very nice approach for my need, but I apologize for not explaining clearly what I want.
    I just want to process the content of some lines in the file to find specific strings.
    As you may see, if you open the file with Adobe Reader or Adobe Acrobat and go to the edit menu, by clicking "Select All" and "Copy" you will get the text ready for pasting.
    I want to automate this process to prevent the users from opening the Adobe application.
    I'm now testing with the functions provided by Adobe documentation to perform OLE Automation and ALMOST gave me what I need with the following code:
    Documentation is found in
    http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?&accessible=true 
    // Start Code
    boolean lb
    oleobject luo_app, luo_file
    luo_app = create oleobject
    luo_app.connecttonewobject('AcroExch.app')
    luo_file = create oleobject
    luo_file.connecttonewobject('AcroExch.AvDoc')
    luo_file.open('c:\some_file.pdf')
    // Next three lines are for visual debugging and confirming that file is opening well during testing of code :=)
    luo_file.show()
    luo_file.bringtofront()
    luo_file.setviewmode(1)
    // Next two lines return FALSE, meaning they did not execute because the words "Select All" (or "SelectAll") and "Copy" are not the right words linked to the
    // menu items
    lb = luo_app.menuitemexecute('Select All')    // Neither "SelectAll"
    lb = luo_app.menuitemexecute('Copy')
    // End of code
    Everything works fine except the two lines. The Adobe application is open and the file shown, but when calling "Select All" and "Copy" in the function menuitemexecute, Adobe does not interpret these phrases.
    Just to confirm that menuitemexecute has the right syntax, I tested a call for luo_app.menuitemexecute("find") and this command is well interpreted by Adobe, which immediately opens the find window at the right corner of the file
    I hope not to be too dense with this explanation ( but maybe I was )     :=)
    Thanks for your feedback

  • Using Automator for File Sharing, including 1Password Question

    I'm using 1Password (http://agilewebsolutions.com/products/1Password) on three computers at my shop and instead of using three separate library files I just want one main file/directory/database that all three computers can use, share and update.
    So far I've accomplished this by using File Sharing.
    It's working fine though when I shut off all three computers and restart I have to reconnect all computers (selecting a 'SHARED' computer on the left of an open window menu and clicking on 'Connect As...' on the top right) to reestablish the linked file.
    Is there anyway I can set up a macro using Automator to do this when I turn on my computers?

    you don't need automator for this. go to finder preferences->general and check the box to show connected servers on the desktop. then just connect to the remote computers and then drag the mounted volumes from the desktop to your login items in system preferences->accounts->login items. then when you log in the remote computers will be automatically mounted. you can also use a cloud storage solution like Mobileme or DropBox and store the password database file in a central online location.

  • Use hyperdraw vs. automation for mixing?

    hi,
    have been working on a little 15 min. film score - my first one... all MIDI regions - used ESX24 on everything.
    I have strings, and organ - and want those instruments to 'build' (crescendo) in parts...
    do I use hyperdraw or automation for volume swells, etc?
    I've never mixed before - this is what I'm doing - MIXING.
    thanks...

    First of all, congratulations on your first score!
    I'd highly suggest using automation instead of hyperdraw.
    You have a few options here too:  you can not only automate individual tracks, but output objects (for, say, grouping all of your strings, guitars, whatever) and you can also automate the master output to do global fade-ins/fade-outs.
    The great thing about automation is the ability to overwrite on-the-fly. It's easy to get used to and has the same editing capabilities as hyperdraw (nodes, lines, etc.).
    That's my recommendation. Best of luck!

  • Automator for Exporting Spotlight Comments?

    Hello,
    I have around 700 historic photos that have been digitized. All the photo details (dates, etc.) were entered into the Spotlight Comments field under Get Info. Unfortunately, none of the comments appear when I open the photos in Adobe Bridge CS4. Is there an easy solution (perhaps an Automator script) to export the Spotlight Comments and use them elsewhere?
    Thank you,
    Brian

    Brian
    If I read you right, what you are trying to do is grab Finder metadata and convert it to photo metadata. Specifically, convert spotlight comments to Exif and IPTC - which is what a Photo app will need.
    You can't do this with Automator. The Automator dictionary has ways to set Spotlight Comments but I can see no way to get them. Further the dictionary has the ability to write to the IPTC data only of images in Aperture, not in the Finder or iPhoto.
    You might do better with that question on the Automator forum here:
    http://discussions.apple.com/forum.jspa?forumID=1261
    Have you tried the Applescript that was suggested when you posted the query last?
    As your target are file managed by Bridge, give the Adobe forums a go too.
    However, you may run into another issue here and that is that most scanners (as I presume this is how the photos were digitised) do not create Exif and IPTC data for scanned images. It may not be possible to do what you want to do.
    Regards
    TD

  • Combining Text in Automator for Excel import.

    I'm attempting to create an automator workflow that will string some text together so that it can be imported into an Excel worksheet. Here's my workflow so far.
    • New Text File
    Creates file temp.txt
    • Run AppleScript
    Opens file temp.txt
    • Get Specified Text (specified text below)
    Read Today
    Read Tomorrow
    Read This Week
    Read This Month
    • Filter Paragraphs (needed so the text is not treated as one big line of text and is displayed in the next step correctly)
    Return Paragraphs that are not empty
    • Choose from List (all 4 items displayed correctly, all selected by default)
    Select one item
    • Set Contents of TextEdit Document (temp.txt) (append)
    • Get Specified Text (specified text below (a semi-colon))
    • Set Contents of TextEdit Document (temp.txt) (append)
    • Get Specified Text (specified text below)
    keywords go here
    • Set Contents of TextEdit Document (temp.txt) (append)
    • Get Contents of TextEdit Document (results below)
    Read Today
    keywords go here"
    (Once I get this part working, I will add a URL onto it also).
    So, all my content has arrived here, but on three different lines. But because it is on three different lines, it does not import into Excel correctly. I can't concatenate this using the usual AppleScript method because I would have to declare these items as variables. I've tried various ideas, but I cannot get the three above to append to one line, like this…
    Read Today;keywords go here
    without manual intervention, which sort of defeats the reason for trying to automate this.
    I hope I've explained this well enough that it makes sense.
    Any help or ideas are appreciated.

    Well, it is good to know that it can be done in Applescript, though I have not found a way to accomplish this. All examples I have seen (Googling and AppleScript 1-2-3 book) use set statements using static strings, and then concatenating those statements together. Since my values are dynamic, those examples don't help.
    What I have to work with are these lines of text in a new document.
    Read Today
    keywords go here
    The text will vary from run to run.
    What I need to end with is… (for use in Excel, import text files action)
    Read Today;keywords go here (line1 & line2 & line3)
    So, I don't know how to proceed from here, unless I can do something like set var1 to line1 of temp.txt, set var2 to line2 of temp.txt, etc.

  • OLE Automation for Word. EditGoto with Word 97

    I found a solution. Instead EditGoto, use WW7_EditGoto.
    Example:
    .- A Word Template whith two bookmarks
    (Texto1, Tabla1). A normal bookmark
    (Texto1) and a bookmark into a Word
    Table (Tabla1).
    In the Word Table, is posible change
    cell o create a new row with the same
    command (NextCell).
    The word table has two columns an two
    rows.
    The first row is the Header.
    The second row the first column contain
    a bookmark (Tabla1).
    .- A Form whit two blocks:
    First block with two items:
    nombre_doc
    texto1
    Secod Block (multirecord) whit two items
    col1
    col2
    with a When-Button-Pressed:
    DECLARE
    application OLE2.OBJ_TYPE;
    args OLE2.LIST_TYPE;
    BEGIN
    -- Start WordBasic and make Word visible
    application:=OLE2.CREATE_OBJ('Word.Basic');
    OLE2.INVOKE(application, 'AppShow');
    -- Open a Word document
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,'Plantilla.dot');
    OLE2.INVOKE(application, 'FileOpen', args);
    OLE2.DESTROY_ARGLIST(args);
    -- Put Text in the first bookmark
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,'Texto1');
    OLE2.INVOKE(application, 'WW7_EditGoto', args);
    OLE2.DESTROY_ARGLIST(args);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,:Texto1);
    OLE2.INVOKE(application, 'Insert', args);
    OLE2.DESTROY_ARGLIST(args);
    -- Send data from Multirecord Block to Word Table
    GO_BLOCK('MULTI');
    FIRST_RECORD;
    IF :SYSTEM.RECORD_STATUS != 'NEW' THEN
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,'Tabla1');
    OLE2.INVOKE(application, 'WW7_EditGoto', args);
    OLE2.DESTROY_ARGLIST(args);
    LOOP
    IF :col1 IS NOT NULL THEN
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,:col1);
    OLE2.INVOKE(application, 'Insert', args);
    OLE2.DESTROY_ARGLIST(args);
    END IF;
    OLE2.INVOKE(application, 'NextCell');
    IF :col2 IS NOT NULL THEN
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,:col2);
    OLE2.INVOKE(application, 'Insert', args);
    OLE2.DESTROY_ARGLIST(args);
    END IF;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
    NEXT_RECORD;
    OLE2.INVOKE(application, 'NextCell');
    END LOOP;
    -- Save a Word document
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args,:nombre_doc);
    OLE2.INVOKE(application, 'FileSaveas', args);
    OLE2.DESTROY_ARGLIST(args);
    --Release the OLE object
    OLE2.RELEASE_OBJ(application);
    END;
    Sorry by the sintax, but i don't speak English.
    I hope it solves this problem.

    Hello,
    I am also trying to use the OLE2 package for OLE Automation. But
    difference being that I am not using Word but am using an
    invisible control for Mail services, using the objects
    MAPISession, MAPImessages. If anyone out there had already done
    this do please give me a code snippet.
    Thanx in advance
    Anup Mistry,
    Programmer/Analyst,
    IIS,Inc
    Vasile (guest) wrote:
    : Hi Daniel,
    : I used OLE with forms 5 ,but now it work without problems in
    : forms 6, too.
    : A procedure that save doc. look like that:
    : procedure filesaveas (fname in varchar2) is
    : arglist ole2.list_type;
    : begin
    : arglist := ole2.create_arglist;
    : ole2.add_arg (arglist, fname);
    : ole2.invoke (obj_hnd, 'filesaveas', arglist);
    : ole2.destroy_arglist (arglist);
    : end;
    : I hope this help you.
    : Vasile
    : Daniel Fox (guest) wrote:
    : : I am using Forms 6.0
    : : Can anyone help with OLE automation using OLE2.
    : : I can open Word, document stored in long raw, even insert
    data
    : : from other form field into the Word Document (only at the
    : : beginning of the Document, though).
    : : All the File commands, such as FileSaveAs, EditGoTo, etc..
    : don't
    : : work. They are simply ignored - no error messages, nothing.
    : : Does anyone use Word Automation through Forms 6.0?
    : : Please, HELP....
    : : Thanks in advance,
    : : Desperate Daniel.
    null

  • Please help!! Using Apple Script in Automator for Quicktime

    I would like to add some metadata to a batch of quicktime movies and then make the files unable to be altered and re-saved so that I can post them on the web. If I open a movie in quicktime and run the following apple script I can then perform save as of movie A into movie B and movie B cannot be altered.
    tell application "QuickTime Player"
    set saveable of movie 1 to false
    -- save self contained
    end tell
    I would love to be able to do this on a batch level in automator however I cannot figure out how to pass automator items to the apple script so that their saveable can be set to false, and after this I cannot figure out how to have to movies re-saved so the changes will take effect.
    Any help at all would be greatly appreciated.

    how are you passing files to apple script? as finder items?
    the following should work then
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on run {input, parameters}
    tell application "Finder"
    repeat with cur_file in input
    set fname to (name of (get info for cur_file) as text)
    tell application "QuickTime Player"
    open file (cur_file as text)
    set saveable of document 1 to false
    tell application "Finder" to set new_item to (path to desktop as string) & fname
    save self contained document 1 in new_item
    delay 1
    close document 1
    end tell
    end repeat
    end tell
    end run
    </pre>
    the above will dump the modified files onto your desktop and give them the same names they had before. You can adjust that as you like of course.

  • Automator for changing system settings?

    Here's my issue: I have an external monitor connected to my 2010 Macbook Pro with OSX Snow Leopard. I do all my work when I'm at home on the larger monitor and use the other screen for iTunes. I use spaces alot, and so when using my external monitor, I put iTunes to open on all spaces so that it's always handy. When I go out with my laptop, I have to change the spaces settings back to iTunes only being open in one space.
    It's not a big issue, but does anyone know how to use automator (or by any other means) to automatically change the system settings so that my computer can, on detecting I have an external monitor plugged in, change the spaces settings for iTunes? (and preferably back again when it doesn't have the external monitor plugged in).

    Hi there :)
    You can connect directly to the DB without a DSN like this:
    url = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=<YOUR DB LOCATION HERE>;
    try
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    icuCon = DriverManager.getConnection (url);
    catch (Exception e)
    You will obviously replace <YOUR DB LOCATION HERE> with the location of your database for example you can set the url of the database like this:
    url = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=" +
    System.getProperty ("user.dir") + System.getProperty ("file.separator") +
    "DBFolder" + System.getProperty ("file.separator") + "DB.mdb";
    Matt

  • Using Automator for software updates

    Hi all. I apologize in advance if this has been asked and answered numerous times; I did several searches using different terms and did not find my answer.
    Can I use Automator to do all my software updates completely automatically? Including doing the restarts? I know this is a very basic question for most all of you; I can use my computer but really don't know a lot about using it to the max. I would like to be able to have all the software updates done during the night, while the computer is unattended.
    Thanks.

    If you are not too keen on running those commands you might want to try http://www.igetter.net/iGetter.html This download manager seems to allow the scheduled downloading that you need. I think you would have to go to the Apple site and find the url for the standalone updaters to find the link after Software Update identifies them. Then use this program to schedule the downloads. Sometimes those seem more stable anyway.
    The program us shareware. It appears from the description that the program remains fully functional but puts up a nag screen if the program has not been registered.

  • Automator For Mp3 to WAV

    I was wondering if anyone out there familiar with Automator knew of a way to automate converting MP3s to WAVs. It would be nice to just cntl click on an MP3 and have the automator open qiucktime and convert the audio file to wave. I never use automator but it seems like something someone would have already figured out how to work. Thanks for any help

    no way!
    you've got a java api for j2se: the javasound api but it can't be available in j2me. best thing to do is to use a soft (like cdex,...) to convert mp3 to wav or, if you have an available server (like tomcat), create a app that uses javasound api to convert your songs when you put them on the server (via an admin console)
    peace

  • Automation for Purchase Requisition to Purchase Order

    Hello All,
    Can someone please give me some insight on how I go about automating the process for PR to PO? This a the new process being implemented in my company. I have very little experience in Procurement. Any help would be appreciated.
    Many Thanks
    Pranzo09

    hi
    u can us etransaction ME59 , but before that check following for configuration
    http://www.sap-img.com/materials/automatic-conversion-of-pr-to-po.htm
    original poster to be appriciated
    regards
    kunal

  • How to hide rows and columns by AppleScript or Automator for printing

    Hello,
    I have to hide first empty rows (I do it by: organize - Column B is not empty)
    then: By context-menu in Header of Column K: Hide column
    and: By context-menu in Header of Column L: Hide column
    How can I make this 3 Steps automatic with AppleScript or Automator or maybe by formula?
    Thanks for any help

    Here is an edited version which allow you to choose the custom template on the fly.
    No need to edit a property in the script.
    --[SCRIPT printtable(s)_choosecustom]
    Enregistrer le script en tant que Script ou Application : printtable(s)_choosecustom.xxx
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner une partie de table, une table ou même plusieurs tables.
    Aller au menu Scripts , choisir Numbers puis choisir “printtable(s)_choosecustom”
    Le script crée un nouveau document depuis un modèle perso sélectionné,
    puis applique « Colle les valeurs » au contenu du presse-papiers.
    Il envoie enfin la commande d'impression.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    Sous 10.6.x,
    aller dans le panneau "Général" du dialogue Préférences de l'Éditeur Applescript
    puis cocher la case "Afficher le menu des scripts dans la barre des menus".
    --=====
    Save the script as a Script or an Application : printtable(s)_choosecustom.xxx
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select a subset of a table, a table or even several tables.
    Go to the Scripts Menu, choose Numbers, then choose “printtable(s)_choosecustom”
    The script create a new document based on the selected custom template,
    then apply “Paste Values” to the clipboard's contents.
    At last, it issue the print command.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/02/20
    2011/03/16 -- replaced the Blank template by a custom one defined thru the property custom_template
    2011/03/17 -- Let choose the custom template, no longer Paste but Paste Values.
    --=====
    property theApp : "Numbers"
    --=====
    on run
    --my doyourduty()
    run script doyourduty
    end run
    script doyourduty
    --on doyourduty()
    my activateGUIscripting()
    Copy the selected items *)
    my raccourci(theApp, "c", "c") (* cmd + c *)
    Create a new document based upon Blank.template *)
    set myNewDoc to my makeAnIworkDocFromCustom()
    As it's a custom template, there is no default table to delete.
    Delete the default table *)
    tell application "Numbers" to tell document 1 to tell sheet 1 to delete table 1
    my selectMenu("Numbers", 4, 8) (* Paste Values *)
    my raccourci(theApp, "p", "c") (* cmd + p = Print *)
    my raccourci(theApp, return, "") (* return = validate the Print command*)
    --end doyourduty
    end script
    --=====
    Creates a new iWork document from a custom template and returns its name.
    example:
    set myNewDoc to my makeAnIworkDocFromCustom()
    on makeAnIworkDocFromCustom()
    set nb_chiffres to 3 (*
    2 = allow 99 templates
    3 = allow 999 templates *)
    Grab the localized names of the templates folders *)
    tell application "Numbers"
    set templates_loc to localized string "Templates"
    -- set myTemplates_loc to localized string "My Templates"
    end tell -- to application a
    Define the path to the folder storing custom templates *)
    --set chemindesmodeles to "" & (path to library folder from user domain) & "Application Support:iWork:Numbers:" & templates_loc & ":" & myTemplates_loc & ":"
    set chemindesmodeles to "" & (path to library folder from user domain) & "Application Support:iWork:Numbers:" & templates_loc & ":"
    Grab the list of every items stored in the folder *)
    tell application "Finder"
    set entire_contents to entire contents of folder chemindesmodeles
    end tell
    Build two lists. One contain the path to every custom templates.
    The other contain the names of these templates and the names of subfolders *)
    set indx to 1
    set cheminde_mesmodeles to {}
    set nomsde_mesmodeles to {}
    set le_conteneur to ""
    tell application "System Events"
    repeat with i from 1 to count of entire_contents
    set un_element to item i of entire_contents as text
    try
    if type identifier of disk item un_element is in {"com.apple.iwork.numbers.template", "com.apple.iwork.numbers.sfftemplate"} then
    if name of container of disk item un_element is not le_conteneur then
    set le_conteneur to name of container of disk item un_element
    copy (text 1 thru nb_chiffres of "---") & space & le_conteneur to end of nomsde_mesmodeles
    end if
    copy un_element to end of cheminde_mesmodeles
    copy text -nb_chiffres thru -1 of ("00" & indx) & space & name of disk item un_element to end of nomsde_mesmodeles
    set indx to indx + 1
    end if
    end try
    end repeat
    end tell -- System Events
    if my parleAnglais() then
    set le_titre to "Numbers’s custom templates"
    else
    set le_titre to "Modèles personnalisés de Numbers"
    end if
    Choose the template to use.
    If you select a subfolder name, the script beep and ask one more time *)
    tell application (path to frontmost application as string)
    repeat
    set mon_choix to choose from list nomsde_mesmodeles with title le_titre
    if mon_choix is false then error number -128
    try
    set mon_choix to text 1 thru nb_chiffres of (item 1 of mon_choix) as integer
    exit repeat
    on error
    beep 1
    end try
    end repeat
    end tell
    tell application "Numbers"
    set nb_doc to count of documents
    open (item mon_choix of cheminde_mesmodeles)
    repeat until (count of documents) > nb_doc
    delay 0.1
    end repeat
    set doc_name to name of document 1
    end tell -- the_App
    return doc_name
    end makeAnIworkDocFromCustom
    --=====
    on parleAnglais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    on activateGUIscripting()
    (* to be sure than GUI scripting will be active *)
    tell application "System Events"
    if not (UI elements enabled) then set (UI elements enabled) to true
    end tell
    end activateGUIscripting
    --=====
    ==== Uses GUIscripting ====
    This handler may be used to 'type' text, invisible characters if the third parameter is an empty string.
    It may be used to 'type' keyboard raccourcis if the third parameter describe the required modifier keys.
    I changed its name « shortcut » to « raccourci » to get rid of a name conflict in Smile.
    on raccourci(a, t, d)
    local k
    tell application a to activate
    tell application "System Events" to tell application process a
    set frontmost to true
    try
    t * 1
    if d is "" then
    key code t
    else if d is "c" then
    key code t using {command down}
    else if d is "a" then
    key code t using {option down}
    else if d is "k" then
    key code t using {control down}
    else if d is "s" then
    key code t using {shift down}
    else if d is in {"ac", "ca"} then
    key code t using {command down, option down}
    else if d is in {"as", "sa"} then
    key code t using {shift down, option down}
    else if d is in {"sc", "cs"} then
    key code t using {command down, shift down}
    else if d is in {"kc", "ck"} then
    key code t using {command down, control down}
    else if d is in {"ks", "sk"} then
    key code t using {shift down, control down}
    else if (d contains "c") and (d contains "s") and d contains "k" then
    key code t using {command down, shift down, control down}
    else if (d contains "c") and (d contains "s") and d contains "a" then
    key code t using {command down, shift down, option down}
    end if
    on error
    repeat with k in t
    if d is "" then
    keystroke (k as text)
    else if d is "c" then
    keystroke (k as text) using {command down}
    else if d is "a" then
    keystroke k using {option down}
    else if d is "k" then
    keystroke (k as text) using {control down}
    else if d is "s" then
    keystroke k using {shift down}
    else if d is in {"ac", "ca"} then
    keystroke (k as text) using {command down, option down}
    else if d is in {"as", "sa"} then
    keystroke (k as text) using {shift down, option down}
    else if d is in {"sc", "cs"} then
    keystroke (k as text) using {command down, shift down}
    else if d is in {"kc", "ck"} then
    keystroke (k as text) using {command down, control down}
    else if d is in {"ks", "sk"} then
    keystroke (k as text) using {shift down, control down}
    else if (d contains "c") and (d contains "s") and d contains "k" then
    keystroke (k as text) using {command down, shift down, control down}
    else if (d contains "c") and (d contains "s") and d contains "a" then
    keystroke (k as text) using {command down, shift down, option down}
    end if
    end repeat
    end try
    end tell
    end raccourci
    --=====
    my selectMenu("Numbers",4, 8)
    ==== Uses GUIscripting ====
    on selectMenu(theApp, mt, mi)
    tell application theApp
    activate
    tell application "System Events" to tell process theApp to tell menu bar 1 to ¬
    tell menu bar item mt to tell menu 1 to click menu item mi
    end tell -- application theApp
    end selectMenu
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) jeudi 17 mars 2011 21:29:15

Maybe you are looking for

  • How do i download images from mail?

    How can i download or save to phone images from a email? how do i do it on an attached image and one that is just in the email message itself? Thanks so much Message was edited by: soccerdogs89

  • Count the ocurrences of a particular word in the log file of content server

    Hi all, How can we achieve this. Thanks, Chely

  • SQL 2008 Full Text CONTAINSTABLE is VERY SLOW

    Hello,  I am running SQL Server 2008 SP3. I know I am not the only to have SQL Server CONTAINSTABLE query performances issues. However I think mine is very strange because it appears that the SAME IDENTICAL query produces completely different executi

  • Plant for Construction Companyy

    Hi My client is a construction company having multiple sites in every states. For ex: They have 3 sites in Bombay and 2 sites in Pune. It means in Maharastra itself there are 5 projects going on Their requirement is to show project site stock at each

  • Georgian Font Automatically Converting to English Characters

    We recently downloaded a Russian and Georgian font and attempted to use them in Adobe Illustrator CS3 on Mac OS X 10.5. When we use the fonts they automatically convert to English characters. How do we get the fonts to appear in Georgian characters?