Deployment of the OMB via the TCL script

I need to deploy all of the mappings in a module in a new target database. I want the configuration settings for
(1) default operating mode = "DΘfinir base" and for
(2) default audit level = 'NONE '.
on all maps.

It seems that the default repository for these parameters (and I can't find where these default values can be managed) are
(1) default operating mode = "Line in function from set failover" and
(2) level of auditing by default = "ERROR DETAILS" on all the mappings.
While when I deploy via the script all mappings have these settings (which we do not want) as it appears that OMB orders use these repository/user settings. Card via interface OWB deployment allows you to change the settings of configuration as requires it, but it's the long answer.

These configuration settings can be overridden in the TCL script via OMBDEPLOY or OMBALTER or any other command OMB parameter so all mappings are deployed/configured as
(1) default operating mode = "DΘfinir base" and for
(2) level of auditing by default = 'NONE' on all the mappings.

Thank you
Dave.

Hi Dave

Yes, you can set the code generation and the non-use of the properties of mode from a script...
OMBALTER MAPPING "$map" DEFINED the VALUES of PROPERTIES (GENERATION_MODE, DEFAULT_OPERATING_MODE) ("SET_BASED", "SET_BASED")

So that you can loop around all the cards and do these things, there are also a few experts on the Exchange utility, allowing you to block of updates quickly
http://www.Oracle.com/technology/products/warehouse/htdocs/experts/multi_config.zip

The model is available from scripts, for example to a PLSQL mapping batch you can query the properties as follows:
OMBDESCRIBE CLASS_DEFINITION 'BATCH_MAPPING' GET PROPERTY_DEFINITIONS

See you soon
David

Tags: Business Intelligence

Similar Questions

  • Unable to wait 30 seconds and then call the TCL Script as Action?

    Hello and good afternoon all!

    I was browsing through different threads and did some research and I am unable to get my applet to wait 30 seconds and then call a script TCL to a succession of 'action '.  Here is the Basic script I am trying to run:

    Event Manager applet track-loopback1
    Event track 10 down state
    command action 1.0 cli 'enable '.
    Action 1.1, «config t» cli command
    Action 1.3 cli command "event manager applet-counting backwards.
    action 1.4 cli command 'event timer countdown 30 '.
    action 1.5 cli command "action 1.0 wait 30.
    Action 1.6 cli command "end".
    Action 1.7 cli command "tclsh Loopback1 - Notification.tcl.

    The goal of this applet is simply wait interface Loopback1 go down, and then launch the applet "-Countdown ' which waits 60 seconds before calling end my TCL script.  The pattern of ' countdown time 30 "and the" action 1.0 wait 30 "is my (lack of?".  :-)) understand that after counting 30 I need to a trial of the action - but I'm not 100% clear on this?  Ironically, he does, in fact, call the TCL script, it does not wait 30 seconds.  My current workaround is to simply throw a statement "after 30000' in the TCL script, but I'm really curious to know why it does not work as expected (well, as I expected to work anyway!).  Any help would be GREATLY appreciated.  Thank you very much!

    See you soon,.

    Travis

    See my response to https://supportforums.cisco.com/discussion/13009231/eem-applet-wont-fire... .  What you do not work, so you should not call tclsh to EEM anyway.

  • Run the TCL Script to start the router

    I'm using a router 5000 series incorporated later and try to get my TCL script to run at startup of the router, with little success.

    It is the first time for me, when I went through the Cisco relevent documents, the official book on TCL script and many examples available online.

    Obviously, I'm missing something somewhere and it left me speechless. I thought it would be a simple task.

    Can anyone provide a step by step instruction/requirements for a TCL script to run on a Cisco router every time it starts?

    Hi Kyle,.

    With the adventerprisek9 image, you should not need to run this through an applet.  You should be able to run it directly from a policy of Tcl.

    Event Manager user Directorystrategie flash:

    event handler political test.tcl authorization bypass

    Mike

    Edit: By the way, when you use puts, the output should go in the syslog.  There were some bugs but where the output can go to various places or "stuck".  So please check the output of 'see the log' and see if the output went from there.

  • 12 c: SOA deployment using the ANT script

    We seek to deploy a composite SOA 12 c using the Ant.. As a first step, we use "Ant-sca - package.xml ' to create the package and then deploy using the file" Ant-sca - deploy.xml. One of the properties required by the script is "compositeDir". When we set this value to the composite directory, we get an error composite.xml is missing. And if you change its value in the "soa" with composite directory folder, it works.

    Confirmation, as what value need to affect the property "compositeDir".

    Thank you

    compositeDir is the absolute path of the directory that contains composite.xml, then you must set the property compositeDir as baseDirectory/SOA.

    For a question related to the location of the jar file, there is a known issue already documented here: Known Issues for Oracle SOA products

    Check the details under the heading: "Oracle JDeveloper and ant control Deploy SAR files in different directories;

  • EEM Applet does not fire TCL script after expiration of the countdown

    We use currently EEM Applet below than securities has BGP route and if this path fails, it starts a countdown of 45 min, once the countdown expires, the router reloads. If the BGP route restores it will remove the countdown applet.

    I'm trying to change this applet to reproduce the same type of behavior, but instead to recharge after 45 minutes, I am changing the cell parameters via Script TCL or other means besides.

    Is this possible? Can someone direct me how to proceed?

    Cisco 1941 Version 15.4 (3) M2

    event handler applet track down
    Description "this applet will add the countdown applet when BGP 10.66.66.66 road goes down."
    Event track 10 down state
    command action 1.0 cli 'enable '.
    Action 2.0 cli command "config t.
    Action 3.0 cli command "event manager applet countdown."
    action 3.1 cli command "description This cmdlet is the countdown and will cause the router reload after 2700 seconds if BGP route is always down.
    Action 3.2 cli command "event timer countdown 2700".
    action 3.3 cli command "reload action 1.0.
    Action 4.0 cli command "end".
    command action 4.1 cli 'enable '.
    Action 4.2 cli command "wr mem".
    Event Manager applet track-up
    Description "this cmdlet will delete the countdown applet when restores BGP route to 10.66.66.66.
    Event State track 10 upwards
    command action 1.0 cli 'enable '.
    Action 2.0 cli command "config t.
    action 3.0 cli command "no event manager applet countdown."
    Action 4.0 cli command "end".
    !

    This is the applet changed, with that I have had the most success. The issue I'm running into is, sound without waiting 60 seconds (for testing I reduced to 1 minute) to run the tcl script. From my limited understanding, I discovered that, after the countdown event - the applet requires an action immediately after but does not accept a command like 'tclsh Cell.tcl' cli as 'action '. »

    event handler applet track down
    Event track 10 down state
    command action 1.0 cli 'enable '.
    Action 1.1, «config t» cli command
    Action 1.3 cli command "event manager applet countdown."
    action 1.4 cli command 'event timer countdown 30 '.
    action 1.5 cli command "action 1.0 wait 30.
    Action 1.6 cli command "end".
    Action 1.7 cli command "tclsh Cell.tcl.
    Event Manager applet track-up
    Event State track 10 upwards
    command action 1.0 cli 'enable '.
    Action 2.0 cli command "config t.
    action 3.0 cli command "no event manager applet countdown."
    Action 4.0 cli command "end".

    It is the TCL script that I use to run cellular changes.

    tclsh
    puts [open "flash: Cell.tcl' w +] {}
    ios_config "interface 1/0/0" "shut".
    ios_config "0/1/0 lte tech gsm cell".
    ios_config "interface 1/0/0" 'no shut '.
    After 10000
    ios_config "interface 1/0/0" "shut".
    ios_config exec 'cell auto 0/1/0 lte tech '.
    ios_config "interface 1/0/0" 'no shut '.
    }
    tclquit

    Thank you
    Robert

    These cmdlets will not accomplish what you want.  I also recommend never call EEM tclsh.  You don't need to do.  Use EEM MCI in native mode, or in your case, just use pure applets.  Take a look at https://supportforums.cisco.com/document/12723951/how-introduce-large-de... .  If you follow this example and put your config CLI commands in the countdown applet, you will be able to achieve what you want.

  • Run the installation script owbdemoinit.tcl get the error message

    Hi all:

    Once I changed owbdemoinit.tcl to adapt to my environment, and then run this script to OMB * Plus get the following message: could someone help?



    OMB + > source owbdemoinit.tcl
    wrong # args: should be "set varName. newValue? »

    Thank you very much

    Frank

    the seventh orcl sid value

    There may be some space between the use of the variable

    the sid orcl_seventh value

  • How to enable and disable, copy or rename the rules via the groovy script?

    A client, we received this question:

    How to enable and disable, copy or rename the rules via the groovy script?

    Foglight 5.7.5

    Hello

    There is this example of support KB

    support.Software.Dell.com/.../99059

    and there is also documentation of Service layer of the administration on the RuleService console.

    Best regards

    Golan

  • TCL EXEC command is not available in the EEM scripts

    Hi all

    I'm writing a script that checks the ip address assigned to an interface (assigned by PPPoE Dialer) verifies a FULL domain name resolution and if the two IP match not retrieve a URL so update a dynamic DNS (I know that there is a support built into IOS for DNS, dynamic but it does not always work and I make sure that I can reach the router remotely).

    The question is when I run the script from the CLI, it seems to work when I save in the infrastructure of the EEM it seems certain command failed

    as exec or using the standard library of http.tcl:

    Is there a limitation? I couldn't find anything, and I know that what works in the TCL CLI interpreter working in the scripts of the EEM.

    Any toughts?

    Fabio

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: invalid command name "exec".

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: when running

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: "exec" show ip interface brief | "exclude not assigned.

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: called from inside

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: "$slave $Contents eval.

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: (procedure "eval_script" line 7)

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: called from inside

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: "eval_script slave $scriptname.

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: called from inside

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: "If {$security_level == 1} {#untrusted script.

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: create an interp - slave

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: interp share {stdin slave

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: interp share {} stdout slave

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl:... »

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: (file 'tmpsys:/lib/tcl/base.tcl' line 50)

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: Tcl run policy has failed:

    11 Dec 08: 12:00.275: % HA_EM-6-LOG: ddnsupdate.tcl: invalid command name "exec".

    11 Dec 08: 12:05.599: % PARSER-5-CFGLOG_LOGGEDCMD: user: fabio connected command:! exec: activate

    11 Dec 08: 12:24.823: % PARSER-5-CFGLOG_LOGGEDCMD: user: fabio connected command: no event handler political ddnsupdate.tcl

    Hi Fabio,.

    EEM manages TCL Safe-TCL mode.  It is documented here:

    http://www.Cisco.com/en/us/docs/iOS/NetMgmt/configuration/guide/nm_eem_policy_tcl.html#wp1174624

    Exec is not allowed Safe-Tcl.  The right way to do this from EEM is to use the cli EEM library, open an ATS with cli_open, send the commands you want and read the responses using cli_write/cli_read or cli_exec, and then close the CLI if you want using cli_close or leave the end of the script.

    Mike

  • Call via the FDM script batch file

    Hi all

    Here is the FDM script written to call the command via the Script FDM in import file, test the operation of the script by creating a vbscript file (* .vbs) to call the batch file and worked like charm. Please see the excerpt from the sciprt

    SubMonth = "Mar".

    SubYear = "FY15.

    ARG = trim (SubYear) & "" & trim (SubMonth)

    Set objWshShell = CreateObject ("Wscript.Shell")

    strCmd = "E:\hyperionfiles\batch\CalcActNew.bat" & Arg

    Line 53 objWshShell.Run 'strCmd', 0, True

    The error returned is

    Error.JPG

    Thank you

    Hi, no double quotes are needed to join strCmd it's a variable

    objWshShell.Run strCmd, 0, True

  • BASH command via the console script

    All,

    I had to run a a series of BASH commands via the Script Console to a subset of servers. Is there a script for this that I can take a look? Or direct me to the controls, I might need.

    You need to encapsulate in a script on the remote host to do.

    actSvc = server["ActionService"]params = [:]params.put("COMMAND_LINE","/home/foglight/testBashScript.sh")params.put("HostName","centosvm1")actSvc.invoke("RemoteCommandAction",params)
    

    This will run the script shell on the host remote centosvm1

    the bash script contains the statement echo inside.

    -rwxr-xr-x 1 foglight dba 99 Jan 17, 12:09 testBashScript.sh

    [foglight@centosvm1 ~] $ testBashScript.sh more

    #! / bin/bash

    echo 'Test Action of Bash Script remote command execution' > /tmp/ForumOutput.txt

    [foglight@centosvm1 ~] $

    -rw - r - 1 foglight dba 56 Jan 17, 12:12 ForumOutput.txt

    [foglight@centosvm1 ~] $ /tmp/ForumOutput.txt more

    Run the test of the Action of the remote Script Bash command

    [foglight@centosvm1 ~] $

    I have tried a few iterations to try to echo the commands directly in a command param file but did not

    Hope this helps

  • External authentication via the PHP script failed

    I'm not a PHP genius - in fact I'm not a backend coder so I'm kinda struggeling with the sample scripts - I still hope for a sample of CF....

    I'm trying to run and connect to the CAA via the command line (Terminal). I'm not sure what I'm doing wrong - this is what I'm passing:
    PHP f /Applications/MAMP/htdocs/afcs.php args - debug - host = my_pass, http://connectnow.acrobat.com, fcguru, my_login

    The username and password I spend are correct. However, I get this response:
    Error: message exception 'AFCSError' with ' < State response 'error' = >
    < error code = "AUTH_FAILED" >
    < msg > failed authorization < / msg >
    < / error >
    < / answer >
    ' in /Applications/MAMP/htdocs/afcs.php:86

    Really struggeling with this. Once again I get this working from the command line, I don't know how to call it from a script instead. I use CF on the backend, no PHP.

    Kind regards

    Stefan

    Thank you, this is very useful. It seems that I can now connect from the Terminal so that's a good start. Also, I did not see external authentication in PHP for example - I must have been blind.
    I'll see how far I get with that. What I'm trying to do is spawn new rooms based on a template on the fly, and I have some doubts, I'll be able to understand this myself.

  • Export of the metadata of Essbase via the Calc Scripts

    Hi guys,.

    Here's my problem,

    We try to export essbase cube intersections in a flat file (so that it can be used by SUN)

    )

    We have developed a calc script to export an intersection to a flat file, but the flatfile is written only to the location of the essbase server.

    But we need this flat file to immerse in an another server (SUN Server), so what would you suggest is the best way to do this on a regular basis (monthly) and huge amounts of data.


    PS: Someone suggested me to use a windows batch file to move the flatfile, but I have no idea how to do that.


    Any help would be really appreciated...

    Thanks in advance
    Arun

    Metadata? You mean, right? DATAEXPORT is only going to write the numbers, not of dimensionality.

    I did deal with this issue, so - DATAEXPORT wrote only the box to Essbase. You can try pointing to mapped drives, but it has not worked for me.

    Why not put together a script MaxL who runs the calc script (standard stuff so far) and then either the caller script in cmd OS either copy it to another location (if on Windows, see COPY) or use the MaxL shell command to launch a shell of the operating system and make the copy?

    Another solution would be to set up a routine watcher file FTP'd the file off the drive, then did a deletion of the exported file. You may have to wait five minutes, but that shouldn't be a big problem in Informatica. In fact, I bet that informatica can do 99% of it.

    Finally, another approach would be to write that all at a table and just picking up here.<--This is="" probably="" the="" easiest="" and="" if="" you="" think="" about="" it,="" what="" informatica="" was="" meant="" for;="" no="" more="" messy="" files="" to="" worry="" about="" and="" it's="" sql="" all="" the="" way.="" i="" would="" do="" a="" truncate="" after="" it="" read="" the="" table="" as="" dataexport="" has="" a="" habit="" of="" concatenating="">

    Kind regards

    Cameron Lackpour

  • Digest the lag when running during the generation of the ant script

    I'm tying all libraries referenced by my Flex as RSL project. When I do this through Flex Builder seems to work.  When I try to do it via an Ant build script to the mxmlc task the build succeeds (everything compiles) but when running, I get error #1001 Flex: mismatch with RSL Digest for datavisualization.swc.  Not sure why I make this especially since I specify datavisualization.swf in the rsl url not a swz file. Both methods give the same set of swf, SWC, and swz files in the deployment folder.  I can't understand what is different between the two build processes after comparing the .actionScriptProperties with the ant script.  Can anyone help to shed light on this or help me understand how push wrong with that? Thank you.

    My task as mxmlx:

    < mxmlc
    file = "${Flex.main.file}" "
    output = "${Flex.output.swf}" "
    ActionScript-file-encoding = 'UTF-8 '.
    Keep-generated-actionscript = "false".
    link-TIME-shared-library static = "false".
    local = "en_US."
    MaxMemory = "256 m" >

    < path-element source-path = "${PROJECT_FRAMEWORKS}" / >

    < dir external-library-path = "${PROJECT_FRAMEWORKS} / libs/player" includes = "playerglobal.swc" / >

    "< path-element="${PROJECT_FRAMEWORKS}/libs/framework.swc DURATION-shared-library-path ">

    < url rsl - url = ' framework_$ {FLEX_BUILD} .swf ".
    < url rsl - url = ' framework_$ {FLEX_BUILD} .swz "/ >
    < / DURATION-shared-library-path >

    "< path-element="${PROJECT_FRAMEWORKS}/libs/rpc.swc DURATION-shared-library-path ">
    < url rsl - url = "rpc_$ {FLEX_BUILD} .swf" / >
    < url rsl - url = "rpc_$ {FLEX_BUILD} .swz" / >
    < / DURATION-shared-library-path >

    < runtime-shared-library-path
    Path-Element="${PROJECT_FRAMEWORKS}/libs/Automation.swc" >
    < url rsl - url = "automation.swf" / >
    < / DURATION-shared-library-path >

    < runtime-shared-library-path
    Path-Element="${PROJECT_FRAMEWORKS}/libs/automation_agent.swc" >
    < url rsl - url = "automation_agent.swf" / >
    < / DURATION-shared-library-path >

    < runtime-shared-library-path
    Path-Element="${PROJECT_FRAMEWORKS}/libs/automation_dmv.swc" >
    < url rsl - url = "automation_dmv.swf" / >
    < / DURATION-shared-library-path >

    < runtime-shared-library-path
    Path-Element="${PROJECT_FRAMEWORKS}/libs/automation_flashflexkit.swc" >
    < url rsl - url = "automation_flashflexkit.swf" / >
    < / DURATION-shared-library-path >

    < runtime-shared-library-path
    Path-Element="${PROJECT_FRAMEWORKS}/libs/DataVisualization.swc" >
    < url rsl - url = "datavisualization.swf" / >
    < / DURATION-shared-library-path >

    < runtime-shared-library-path
    Path-Element="${PROJECT_FRAMEWORKS}/libs/Flex.swc" >
    < url rsl - url = "flex.swf" / >
    < / DURATION-shared-library-path >

    < runtime-shared-library-path
    Path-Element="${PROJECT_FRAMEWORKS}/libs/qtp.swc" >
    < url rsl - url = "qtp.swf" / >
    < / DURATION-shared-library-path >

    < runtime-shared-library-path
    Path-Element="${PROJECT_FRAMEWORKS}/libs/Utilities.swc" >
    < url rsl - url = "utilities.swf" / >
    < / DURATION-shared-library-path >

    < compile .library-path dir = "${PROJECT_FRAMEWORKS}" / locale ' append = "true" > "
    < name = "{local}" / >
    < / compile .library-path >

    ...

    < default width = "500" height = "600" / >
    < / mxmlc >

    I didn't write the patch, but I just took a quick glance. I think that the "url" element has been renamed to "rsl - url" and new elements have been added as "failover-url". You can try to match this new syntax, but I don't think that this patch will be agreed due to rename it.

    -Darrell

  • Problem: Deployment of the server WL10.3 started as a Windows Service Instance

    Hello world

    I sent my J2EE Application to a stand-alone Server Instance WebLogic (in mode of development) has started from the level of command of Windows via startWebLogic.cmd. I also tested the deployment of a managed Server Environment(1 AdminServer+2 MS Servers in the cluster; development mode) cluster, all servers started from the command line. The application could be tested and everything worked fine.

    But:
    When I set up the WebLogic Server instances as a Windows service (as described http://e-docs.bea.com/wls/docs103/server_start/winservice.html) my application cannot be deployed at boot time.
    3 ClassNotFoundExceptions, I get:
    -at the start of the class "DMS-Startup" (oracle.dms.wls.DMSStartup)
    -at the start of the class "ODL-Startup" (oracle.core.ojdl.weblogic.ODLConfiguration)
    -at the start of the class 'Class of startup JPS' (oracle.security.jps.wls.JpsWlsStartupClass)

    The Service is started but under Administration Console/deployments the Enterprise Application is marked as 'New' as opposed to 'active '. Other deployments: adf.oracle.domain (1.0, 11.1.1.0.0), (1.2, 1.2.7.1) jsf and jstl (1.2, 1.2.0.1) appear as 'Active'.
    I tried to redeploy the Application directly from the JDeveloper for the autonomous WLS Runspace (one server) - as I did before.
    The deployment has failed:
    [Deployer: 149034] An exception has occurred for task [Deployer: 149026] deploy application... of AdminServer. :.
    weblogic.management.DeploymentException:
    # Incomplete deployment.
    # 25 November 2008 21:58:53
    Deployment failed

    Why the deployment on the WLS Instance has started from the command line and why does fail when started as a Windows Service?

    I am using WLServer 10.3 and JDeveloper 11 g on Windows Vista operating system - both installed via jdevstudio11110install.exe. My Web Application uses BC and ADF Faces.
    The Windows Service is configured in the following manner in a specific server under the USERDOMAIN_HOME directory script:
    Set DomainName = mydomain
    Set USERDOMAIN_HOME = C:\Oracle\Middleware\user_projects\domains\mydomain
    Set JAVA_OPTIONS = Dweblogic.Stdout =... Dweblogic.Stderr =...
    MEM_ARGS =-Xms40m - Xmx250m set
    call "C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd".

    And there is another problem with the Windows Service:
    I'm not able to uninstall the service to a specific server scenario, affecting first the DomainName and the SERVER_NAME = AdminServer and that
    use of the call "C:\Oracle\Middleware\wlserver_10.3\server\bin\uninstallSvc.cmd".
    I must do this directly in the registry.
    Missing something? What's wrong?

    Help, please!
    Thank you
    Anita

    Published by: user586097 on 26.11.2008 11:55

    Published by: user586097 on 26.11.2008 12:00

    Published by: user586097 on 26.11.2008 12:02

    Hello

    I had the same problem and made an SR by Oracle. Solution, in the script to create the windows service, you must add a call to the setDomainEnv.cmd before the call to installSvc.cmd.

    ..
    MEM_ARGS =-Xms512m-Xmx512m set
    call "C:\Oracle\Middleware\user_projects\domains\USER_domain\bin\setDomainEnv.cmd".
    call "C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd".
    ENDLOCAL

    It works now, Peter

  • Save the attachment script gives error "Mail has been a mistake: AppleEvent Manager has failed. ' number - 10000

    Hi all

    I'm completely ignorant when it comes to Apple Script and I'm trying to get this simple script to work. The purpose of the script is to save attachments in a folder named when I run on the Apple Mail messages via a rule.

    This is the code:

    Tell application "Mail".

    theMessages set of selection

    Repeat with thisMessage in theMessages

    the value of the theAttachments attached to a letter of thisMessage

    Repeat with thisAttachment in theAttachments

    the value theAttachmentFileName ((chemin d'accès àle texte riche de la règle de type dossier de départ) & ' treatment of the Documents record: Hazel ") & name of the thisAttachment

    Save thisAttachment in file theAttachmentFileName

    end repeat

    end repeat

    tell the end


    The folder does not exist, but I get a "error " Mail has been a mistake: AppleEvent Manager has failed. ' number - 10000 "when I run.

    The code in the Script Editor editor also inserts "type of rule" in my code, so I guess that my syntax is faulty.

    Any help would be greatly appreciated.

    Kind regards

    Beem

    If ' folder of treatment of Hazel ' already exists in the Documents folder, the following script of GUI, which seems to work perfectly under OS X 10.11.3, should do what you ask for:

    Try

    game of theDestinationFolder to ((path to the documents folder) as text) & "Hazel treatment record" as alias

    on error - file does not exist

    return Beep 3

    end try

    say application "Mail".

    activate

    the value theMessages to the selection

    Repeat with thisMessage in theMessages

    thisMessage Open

    say application 'System events' to say process "Mail".

    click on menu item "Save attachments...". " of 1 of the 'file' menu bar item menu of the menu bar 1

    Repeat until sheet 1 window 1 is

    end Repeat

    key sequence "o" using { control down,shift down}

    key sequence "Nutty".

    click on button 'Save' of the sheet 1 of window 1

    Repeat while sheet 1 window 1 is

    end Repeat

    key sequence 'w', using {control down} - close this message

    end say

    end Repeat

    end say

Maybe you are looking for