Run script bundle at start up

How do I run a script bundle at start up?
I've tried saving the script (with .scpt ext) to /Library/Scripts/User/ and then creating a .plist in ~/Library/LaunchAgents that points to it, RunAtLoad true, but it doesn't seem to load when the machine is rebooted.
I need it to run silently.
Any help appreciated, thanks.

ChocolateTeapot wrote:
I've tried saving the script (with .scpt ext) to /Library/Scripts/User/ and then creating a .plist in ~/Library/LaunchAgents that points to it, RunAtLoad true, but it doesn't seem to load when the machine is rebooted.
Probably that the arguments are not correct in the plist file.
<string>osascript</string> is important.
Here is a working example
<key>ProgramArguments</key>
<array>
<string>osascript</string>
<string>/Users/jack/Library/Scripts/auto save keynote.scpt</string>
</array>

Similar Messages

  • Run script before loggin starts

    Hi everyone
    I'm using a tmpfs for my /var/log folder, and because I don't want to loose all logs I have modified /etc/rc.local.shutdown following this thread so everything gets backed up each time in a different folder named after the time at which I shutdown.
    https://bbs.archlinux.org/viewtopic.php … 10#p528010
    But I'd prefer to have a XYZ folder with all logs which gets loaded to my tmpfs /var/log, so everything works like normal, and finally before shutdown, everything is copied back to folder XYZ. This way my HDD is only accessed for loggin matters at startup and shutdown. So far it's not difficult, except I want to run my script which does just that, before any loggin starts.
    How can I execute commands or run a script while booting just between my tmpfs is mounted (declraed in /etc/inittab) and loggin starts? If possible including the minilogger at arch boot
    Thanks very much in advance
    Last edited by agon (2011-02-24 22:07:02)

    Here we are again
    I'm trying it now the way you suggest. I've written two simple scripts (my first ones ) which do as following:
    [ LOGs => RAM ]
    I call to this script in /etc/rc.local. It saves all logs in ram and then links the so that they appear again in /var/log
    note: my /tmp folder is a tmpfs
    #!/bin/bash
    #/usr/bin/log-ram.sh
    # Create /tmp/log: necessary for each boot because /tmp is volatile
    # Copy /var/log to tmp/log: copy my complete logs to ram
    # Rename /var/log to /var/log.backup: so I have a backup of them
    # Create a new empty /var/log
    #Link /var/log to /tmp/log: all logs (located in ram) appear in /var/log
    echo "Copiando LOGs de HDD a RAM"
    mkdir /tmp/log
    cp -Rp /var/log/* /tmp/log/
    mv /var/log /var/log.backup
    mkdir /var/log
    ln -sf /tmp/log/* /var/log/
    Questions:
    -Do you recommend calling this script latter or is it here ok (/etc/rc.local)? If it would be latter, where do you reccomend it? As you already noted, it has to be excecuted as root
    [ LOGs => HDD ]home sweet home)
    I call this script in /etc/rc.local.shutdown
    All logs get copied back to /var/log and also a backup is made. Note that each time this script is ececuted a new backup is generated. That menas that for now I have to manually erase them when they get to many. Later (when I learn a bit more of scripting) I'll make the oldest get automatically erased.
    #!/bin/bash
    #/usr/bin/log-unram.sh
    #Refresh the content of /var/backup so it's up to date
    #Remove /var/log: so all symbolic links get erased
    #Recreate /var/log: is there a faster way to do this and the last step?
    #Copy from /tmp to /var: from RAM to HDD
    #Rename and change directory of /var/log.backup with an unique identifier (time at which script is run).
    echo "Copiando LOGs de RAM a HDD"
    now=`date +"%Y%m%d_%Hh%M"`
    cp -Rp /tmp/log/* /var/log.backup/
    rm -r /var/log
    mkdir /var/log
    mv /tmp/log /var/log
    mv /var/log.backup /var/log.old/$now/
    Questions:
    Is there a faster way to erase al symbolic links
    As said, this are my two first attempts to writte a bash script (excetp the hello world one lol). So I probably did a lot wrong.
    For now it seems to work (when calling them from shell) but I still didnt tried them with real powerup & shutdown. (Ill do it after posting this).
    Thanks in advance
    EDIT:
    These scripts are give me problems. I'm trying to make now a syngle script which copies from HDD -> RAM or RAM -> HDD depending on if logs are already loaded or  not. This way If my system crashes I dont have problems while booting (like the firefox-sync script).
    As soon as I have something, I'll post it here
    Last edited by agon (2011-02-27 13:06:11)

  • Run Script action not working when verifying bundle

    I have a critical "Run Script" action in a bundle. When verifying the bundle, the script doesn't seem to run and the verify action hangs indefinitely.
    I see the following lines in the ZCM Log:
    Code:
    [DEBUG] [07/21/2011 19:05:48.670] [5880] [runscriptenf] [1] [TeachGH] [Run Script Action] [] [Found script engine cmd.exe. Not using it since cmd.exe does not take parameters.] [] []
    [DEBUG] [07/21/2011 19:05:58.311] [5880] [runscriptenf] [1] [TeachGH] [Run Script Action] [] [Run Script Action - Ended - 7:05:58 PM] [] []
    nothing else is logged after those 2 lines. It seems like ZCM decides not to run the script for some reason, but is still waiting for it to complete? Or is it possible that it has moved onto the next action, but it is hanging there and not reporting it to the log?
    I have no time to troubleshoot right now, will do so in depth tomorrow. Just wanted to get this posted in case anybody has a clue.

    Nevermind, the next action is running, and that is what is hanging, which I doubt is Zenworks fault... Time for some more troubleshooting.

  • Please I can not get a .jar file to run on XP SP3 start/run/cmd/

    I can not get a .jar file to run on XP SP3 start/run/cmd/
    Please help if can figure this out. I'm convinced it is a Windows XP SP3 problem from searching on google and seeing other ppl on XP SP3 with same problem (but no working solution for myself). I'll try to be complete-listing all I've done.
    I had installed: Java SE Runtime Environment v6u14 for Windows Multi-language
    I had checked here it was working properly: http://www.java.com/en/download/manual.jsp
    I'm trying to run this jar file (soht-client-0.6.2.jar):
    http://prdownloads.sourceforge.net/telnetoverhttp/soht-java-client-0.6.2.zip?download
    http://www.ericdaugherty.com/dev/soht/javaclient.html < this is the information for the program.
    (yes the file can be executed and should open the program's window
    I wanted to post screenshot of it but friend that it's working for isn't here)
    _(Please find log of all cmds I did in this post here: http://pastebin.com/f792983df )_
    _I have extracted +'all' the files to: C:\062\+_ (I have tried using other directories, same problem)
    ++I then start/open/run/cmd+
    then I: cd C:\062\+
    then I try various commands - all+ of these do absolutely nothing- meaning no errors, no reply, no window opens, nothing except enters that directoy again:
    java -jar soht-client-0.6.2.jar
    java -jar -client soht-client-0.6.2.jar
    java -client -jar soht-client-0.6.2.jar
    java -jar soht-client-0.6.2.jar soht.properties
    soht-client-0.6.2.jar
    So I try this cmd: java soht-client-0.6.2.jar
    Reply:
    C:\062>java soht-client-0.6.2.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: soht-client-0/6/2/jar
    Caused by: java.lang.ClassNotFoundException: soht-client-0.6.2.jar
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: soht-client-0.6.2.jar. Program will exit.
    I try this cmd:
    java -jar soht-client-0.6.2.jar -client
    Reply:
    C:\062>java -jar soht-client-0.6.2.jar -client
    Unable to load configuration file: -client - java.io.FileNotFoundException: -cli
    ent (The system cannot find the file specified)
    SOHT Java Client
    The SOHT Java Client requires a properties file. Either start
    the application in the same directory as the soht.properties
    file, or specify the file name on the command line:
    java -jar soht-cleint-<version>.jar c:\soht.properties
    So then I do these cmds which produce the exact same error/reply just above; Unable to load..:
    j_ava -jar soht-client-0.6.2.jar -client soht.properties_
    java -jar soht-client-0.6.2.jar -client C:\062\soht.properties
    So then I copy soht.properties to C root and do:
    java -jar soht-client-0.6.2.jar -client C:\soht.properties <same error as above
    Then from other information I have read I right click on the .jar file, select open with Always open with:
    _"C:\Program Files\Java\jre6\bin\javaw.exe"_
    Try again.. same problem.
    Then I do cmd:
    _"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\062\soht-client-0.6.2.jar"_
    does nothing, retry the other commands same thing (either nothing or those same replies)
    Then I read (http://forums.sun.com/thread.jspa?threadID=5384879) someone had the same problem as I and they solved it by uninstalling all Java/reboot/ then install JDK 6 Update 14 with NetBeans 6.5.1 start NetBeans and then it worked for them.
    So I unistalled all Java, rebooted and gave the cmd another try (before re-installing), now a new error, of course:
    C:\062>java -jar soht-client-0.6.2.jar
    'java' is not recognized as an internal or external command, operable program or batch file.
    Then I install  Java SE and NetBeans Cobundle (JDK 6u14 and NB 6.5.1) Final Release/ reboot/ open Netbeans/
    go to test java page; all is good, run cmds again -and still nothing..
    C:\062>java -version
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
    I reassociate program with: C:\Program Files\Java\jre1.6.007\bin\javaw.exe_
    same thing.. nothing
    Thank you very much for your time :D_
    PS. My computer has been newly reformatted so needing another reformat I'm sure is not the solution.

    Thank you very much for your replies Taggert_77 & swmtgoet_x :D
    Taggert77_: I have never used NetBeans. I only installed it in the bundle as I had read on another post that somehow installing the bundle magically helped another user with the same problem (he didn't know why it worked after that either).
    Before XP SP3 I was able to execute .jar file through cmd prompt. Now I am not.
    This file is executable, grab it and you will see. Here is a screen shot (program in front is FlashFXP, behind is the cmd prompt and what should happen):http://www.freeimagehosting.net/uploads/53273b4ddf.jpg
    swmtgoetx_: I only did the other cmd's to try to make it spit out something, anything lol :D
    The proper cmd is simply: java -jar soht-client-0.6.2.jar
    I did give your cmd a try, and it produced nothing :( (just like the other correct cmds)
    java -client -jar soht-client-0.6.2.jar soht.properties
    Thank you again...the mystery remains
    PS. If you do a search for this you'll find an amazing amount of XP SP3 users with the same problem and no solution posted that I could find except one chap that did the unistall install order that I did above).

  • "Run Scripts" giving a problem to create portal domain

    Hello All.
    I am new to weblogic portal development. Was trying to create my basic sample portal in weblogic_portal_10.3.4 with the help of documentation. I am getting in running scripts when I was creating the domain. I have followed the below steps, please help me if you find any issue with my steps.
    1. downloaded Weblogic_Portal_10.3.4 and installed in my windows 7 environment.
    2. launched eclipse for weblogic portal.
    3. opened portal prospective in eclipse.
    4. right click on server tab and selected "Oracle WebLogic Server 11gR1 (10.3.4)"
    5. opened "Domain Configuration Wizard"
    6. Selected "Create a new Weblogic domain" radio button.
    7. in the next screen for "Generate a domain configured automatically to support the following products"
    selected "Weblogic Portal 10.3.4" radio button
    8. in the next screen given the domain_name
    9. in the next screen provided the password/confirm-password for administrator user
    10. in the next screen selected JRocket SDK and development_mode for my domain.
    11. in the next screen just left all the default configuration for the datasources. ( non of the datasource is selected in their check boxes)
    12. in the next screen just clicked on "Next" button and "OK" on my popup
    13. in this screen "p13nDataSource" is selected on my left top window area, All 3 SQL Files are selected for loading database.
    Clicked on *"Run Scripts"*
    At this point i am getting an error saying : "CFGFWK-60839:  Database Load Failed!"
    java.lang.Exception: SQLException when executing file file:/C:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/seq_drop_tables.sql
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:183)
         at com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$LoadDatabaseThread$1.run(JDBCConfigGUITask.java:1673)
    Caused by: java.sql.SQLNonTransientConnectionException: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
         at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
         at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
         at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
         at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:272)
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
         ... 1 more
    Caused by: org.apache.derby.client.am.DisconnectException: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
         at org.apache.derby.client.net.NetAgent.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
         at org.apache.derby.client.am.Connection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
         at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)
         at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
         at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:273)
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
         at com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$LoadDatabaseThread$1.run(JDBCConfigGUITask.java:1674)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:529)
         at java.net.Socket.connect(Socket.java:478)
         at java.net.Socket.<init>(Socket.java:375)
         at java.net.Socket.<init>(Socket.java:189)
         at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:206)
         at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)
         at org.apache.derby.client.net.NetAgent.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
         at org.apache.derby.client.am.Connection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
         at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)
         at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
         at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:272)
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
         at com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$LoadDatabaseThread$1.run(JDBCConfigGUITask.java:1673)
    CFGFWK-60839:  Database Load Failed!
    Please help me if you find any problem with the steps that I am following to create my weblogic_portal_domain.
    I was following the steps mentioned at : http://docs.oracle.com/cd/E15919_01/wlp.1032/e14252.pdf to create my domain to start portal development.

    Those are the WLP 10.3.2 instructions. But, the 10.3.4 instructions in the tutorial (http://docs.oracle.com/cd/E26806_01/wlp.1034/e14252/setup_dev_env.htm#i1014619) are wrong, too.
    In 10.3.4, with derby, Run Scripts doesn't work any longer; it should still work the other database (Oracle, SQL Server, etc.). Instead, for derby, just create the domain, accepting any warning dialogs about databases that come up. After that finishes, in the domain directory, run create_db.cmd (on windows) or create_db.sh (on *nix and Mac). It should create the derby database files in the domain, and include everything needed.
    I'll send a note to get the docs updated.
    Greg

  • Error in /tmp/applianceagent/scripts/Database.sh: Start database  failed with exit code 2

    Hello
    I have set up the Demo appliance landscape for the openSAP course "Introduction to SAP Fiori UX", on AWS.
    The frontend machine is OK, but the configuration and startup of the server machine has failed for some reason. When logging in with ssh to the server, this message is presented:
    The Appliance Agent detected an error and terminated.
    When asked, please provide the file /tmp/applianceagent_20141002-145658.tar.bz2.
    Note that a restrictive iptables based firewall is still active.
    I have attached the file (had to add .txt to the name to circumvent file type restrictions).
    I noticed that the appliancedeploy.log ended with these lines:
    Start database  Execute /usr/sap/hostctrl/exe/sapcontrol -nr 02 -function StartWait 3600 20
    02.10.2014 13:56:58
    Start
    OK
    02.10.2014 14:56:58
    StartWait
    FAIL: Timeout
    error in /tmp/applianceagent/scripts/Database.sh: Start database  failed with exit code 2
    Notice the 1 hour jump in time, and then the timeout error message.
    Do any of you have any idea what could be causing this, and how to fix it?
    Please let me know if you need any further information.
    Best regards,
    Bo

    Hi Hannes.
    Trying to create and activate a new instance (version 5 of the Fiori appliance), I first got this message in the CAL instance overview list:
    Instance Operation Failed
    Operation Start failed on step Start start VAs with message: Start failed for VM SAP Server due to Amazon Web Services issue : AMAZON : The snapshot 'snap-c779ff64' does not exist.
    Then I terminated the instance and tried over again. And this time the deployment worked - I have a running server, which responds to the SAP GUI, and shows the Fiori web page.
    Thanks a lot for your quick help.
    Best regards,
    Bo

  • Why does Firefox on my Windows 7 PC hang (become unresponsive) while it waits for most pages to load or run scripts?

    Firefox hangs (becomes unresponsive) when accessing many sites including Gmail. Eventually, when hung, Firefox will throw up a window saying "WARNING: A script has become unresponsive" or, in the case of Gmail, the page itself will say "Some Gmail features have failed to load due to an internet connectivity problem."
    IE8 and Google Chrome are working normally. I've tried Firefox in safe mode, re-installing and even running Firefox portable from a USB thumb drive. Each time with the same result—Firefox hangs or becomes unresponsive while it waits for most pages to load or run scripts.
    #### PC Workstation Environment ####
    Firefox 13.0.1
    Windows 7
    Symantec Endpoint Protection 11.0.6200.754
    --

    Your problem sounds like the one that a co-worker and I started to have about the same time. Check your Symantec client management control log. You might see a line like the following.
    Date and Time Severity Level Action Test / Production Description API Class Rule Caller Process ID Caller Process Parameter User
    2012-07-30 10:48:09 AM 15 Block Production Unauthorized NT call rejected by protection driver. System Built-in rule 1608 FlashplayerPlu FuncID-B6H, R... None
    At first we thought that it was a Javascript problem until we noticed this log. The key words are 'Block' and 'FlashPlayerPlu'. This problem recently started for us, perhaps with a software push 1-2 weeks ago. Internet Explorer does not hang when accessing pages with Flash.
    The Flash page does eventually load after a long time. However, since the whole browser hangs for a while, for the most part having the Flash plugin enabled makes Firefox unusable if accessing pages with Flash.
    Disabling the Flash plugin solves the hanging problem, but I do not know what is causing the problem, nor do I know when a combination of Windows 7, Flash, and Symantec will work. Your later version of Symantec shows that we might have the problem for a while, but I do not know what customization CSC did with Symantec. My coworker did run a complete virus scan, uncovering nothing. Another co-worker is running Windows XP. She does not have the problem, but I do not know what other versions of software she is running.
    Symantec Endpoint Protection version 11.0.6100.645
    Flash version 11.3.300.268
    Firefox version 14.0.1
    Windows 7 32-bit service pack 1

  • While running script adstpall.sh , addisctl.sh gives message.

    while running script adstpall.sh , addisctl.sh gives message that
    " OAD is stopped
    OSAGENT is stopped
    LOCATOR is stopped
    Unable to stop gatekeeper. No process id file found.
    session id 20136 is not running
    ......................................

    hi,
    The issue not with /usr/bin/local.  When you excute root.sh, it will try configure the ASM with New GRID HOME. Issue started, whent tried to start
    CRS-4123: Oracle High Availability Services has been started.
    ohasd is starting <<=================================================================
    acfsroot: ACFS-9320: Missing advmutil.
    Please let us know the below details
    ==> Acfs is configured the servers??
         ==>acfsutil registry
                   acfsutil info fs output.
    ==> With out ASM instance , How the database, CRS STarted ???
    ==> Please try stop and start the crs.
    ==> crsctl query crs activeversion output
    Regards
    Krishnan

  • Problems downloading and installing OS X Yosemite An error occurred while running scripts from the package

    Hi! I have problems downloading and installing OS X Yosemite.
    While downloading this message pops up:
    An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.
    and in /var/log/install.log i can see:
    MacBook-Pro installd[1086]: PackageKit: Install Failed: PKG: pre-install scripts for "com.apple.pkg.InstallMacOSX"\nError Domain=PKInstallErrorDomain Code=112 UserInfo=0x100193c00 "An error occurred while running scripts from the package “wct8079783343594854923.pkg”." {\n    NSFilePath = preinstall;\n    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.";\n    NSURL = "#InstallMacOSX.pkg -- file://localhost/Users/username/Library/Application%20Support/AppStore/91504108 2/wct8079783343594854923.pkg#Distribution";\n    PKInstallPackageIdentifier = "com.apple.pkg.InstallMacOSX";\n}
    does anyone have an idea about this?
    thank you very much

    Mucked up installation. If the installer app is still in /Applications, delete it and start over.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.2), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • Cannot prevent ExtendScript debugging while running scripts from After Effects

    Hi,
    I am facing this issue while running scripts from within After Effects. Whenever I am trying to run a script in After Effects, the script opens up in ESTK in the debug mode. The execution waits at the starting point of the script as if there is breakpoint even though there is none. I am not sure whether what I am missing, whether some debug flag needs to be reset etc. I am using After Effects CC on Windows 7 OS. Any help would be highly appreciated.
    Thanks.

    I tried running the script after removing all $.writeln() statements, but unfortunately that does not resolve the problem. For testing the issue, I am trying with the simple script given below :
    var window = new Window ("palette", "My Window", undefined);
    var panel = window.add("panel", undefined, "Panel");
    var text = panel.add("statictext", undefined, "Testing AE");
    window.show();
    But executing even this one from AE opens up ESTK. I am absolutely stuck with this odd behaviour .

  • Error when running script from OTM

    Hi team,
    Customer is trying to run script from OTM but is getting a "JWG file does not exist" error. I found the following metalink note and the customer has verified that the repositories are defined with exactly the same names & paths in OTM & Openscript.
    Scripts Failing To Play Back From OATS Test Manager (OTM) (Doc ID 1587941.1)
    I've also checked the following post in the forums but this doesn't apply to the customer because both the OTM & agent are on Windows:
    https://forums.oracle.com/message/10707963
    Appreciate any pointers
    Thanks,
    Krishna

    Hi Krishna
    Is the agent running as a windows service or started from an interactive batch?
    What kind of script is that? Web, Forms, Siebel, other?
    Are they different repositories or the same? If different, how do you copy scripts from one to the other one?
    Cheers
    JB

  • Can we run script at runtime?

    Hello,
    Can we run script at run time? I mean, I have writtern a script which reduce the font size by 2 pts in certain text frame when charcters are more than 100. I can able to handle this, only when the text frame is already has more than 100 charters. means, If that text frame is already more than 100 chars and then click on the script then only i can get the desired result.
    I want like this way, if apply the script certain text frame, Then i start typing on the text frame.. Automatically reduce the font size when charcters reached more than 100.
    Hope you guys understood my question? I wanted to get the script result at the runtime.. is this possible at Indesign? I will apriciate your help..
    Thanks,
    Shyam

    Can we have chance to written timer logic at Javascript?
    This can be done by sending a script from Bridge to InDesign, through BridgeTalk and using Bridge's scheduleTask() method.
    Here is an example:
    #target bridge
    var myScript = 'CreateBridgeTalkMessage()';
    app.scheduleTask(myScript, 10000, true);
    function CreateBridgeTalkMessage() {
        var bt = new BridgeTalk();
        bt.target = "indesign";
        var myScript = InDesignScript.toString() + '\r';
        myScript += 'InDesignScript();';
        bt.body = myScript;
        bt.send();
    function InDesignScript() {
        alert(app.documents.length + " documents are currently open in InDesign. This script is triggered by Bridge every 10 seconds using scheduleTask method");

  • How to run tests in Firefox when running script using runScript.bat

    I am trying to run OATS script from commandline without opening Openscript IDE(eclipse). I use the following command to execute my script:
    runScript "<scriptpath>/<scriptName>.jwg"The script starts to execute and launches IE. I wanted to run my test on Firefox but it always launches IE even if Firefox is my default browser.
    If I run my script from Openscript IDE it honours the Browser settings in View > OpenScript preferences... OpenScript > General > Browsers. When running thorugh cmd line, these settings are not taken into account as Eclipse preferences settings are applicable only for the workspace selected for the IDE.
    Any thought on how to set these preferences when running scripts using runScript.bat file?
    Thanks,
    Manish Khatre

    Hello
    You need to pass the value/parameters (preferences) to the command line as documented in the OpenScriptUserGuide.pdf.
    Something like
    -browser.type type
    Specify the browser type to use for script playback
    where type is one of the following (use exact case
    and no spaces):
    ■ InternetExplorer
    ■ Firefox
    The default is InternetExplorer
    JB

  • Run script action - ZCM edits my script's content

    Good day,
    I am implementing a script in a bundle that allows me to generate files on the fly and execute them. Upon saving my "run script" action, ZENworks takes on himself to parse and edit my script, I am not sure why.
    A part of my script generates a .hta file, an html application, that is used as a temporary splash screen. For some reason (line 85) my event name (Windows_onLoad()) is renamed by ZENworks like this :
    oFile.WriteLine " Sub Window_onload()"
    becomes
    oFile.WriteLine " Sub Window_<body <body <body <body <body onload()"
    Does that ring a bell for anyone?
    I have other means of doing what I want but I wanted to bring this specific issue to you. Let me know what you think.
    Thank you!
    Action parameters :
    Code:
    Script to run : 'Define oyur own script'
    Script content : *copy of the script found below*
    Script file extention : .vbs
    Path to script Engine : C:\Windows\system32\wscript.exe
    Executable security level : Run as dynamic administrator
    Requirements : Registry Key and Value exists
    \HKEY_LOCAL_MACHINE\SOFTWARE\Lafleche\ZenworksAssignedObjets - Inst-Coba-x64 - NO
    ZENworks Agent : 11.2.2.121992 & 11.2.3.18535
    ZENworks version : 11.2.3.0
    Code:
    set oFSO = CreateObject("Scripting.FileSystemObject")
    set oShell = CreateObject("WScript.Shell")
    strFileName1 = Replace(oFSO.GetTempName,".tmp",".reg")
    strFileName2 = oFSO.GetTempName
    strFileName3 = Replace(oFSO.GetTempName,".tmp",".hta")
    set oFile = oFSO.CreateTextFile(strFileName3)
    oFile.WriteLine "<!DOCTYPE html>"
    oFile.WriteLine "<html>"
    oFile.WriteLine " <head>"
    oFile.WriteLine " <title>Title</title>"
    oFile.WriteLine " <HTA:APPLICATION Caption=""yes"" SysMenu=""yes"" />"
    oFile.WriteLine " <script language=""VBScript"">"
    oFile.WriteLine ""
    oFile.WriteLine " Sub Window_onload()"
    oFile.WriteLine " "
    oFile.WriteLine " window.resizeTo 500,250"
    oFile.WriteLine " "
    oFile.WriteLine " strComputer = ""."""
    oFile.WriteLine " Set objWMIService = GetObject(""winmgmts:\\"" & strComputer & ""\root\cimv2"")"
    oFile.WriteLine " Set colItems = objWMIService.ExecQuery(""Select * From Win32_DesktopMonitor"")"
    oFile.WriteLine " "
    oFile.WriteLine " For Each objItem in colItems "
    oFile.WriteLine " intHorizontal = objItem.ScreenWidth"
    oFile.WriteLine " intVertical = objItem.ScreenHeight "
    oFile.WriteLine " Next"
    oFile.WriteLine " "
    oFile.WriteLine " intLeft = (intHorizontal - 500) / 2"
    oFile.WriteLine " intTop = (intVertical - 250) / 2"
    oFile.WriteLine " window.moveTo intLeft, intTop "
    oFile.WriteLine " idTimer = window.setTimeout(""PausedSection"", 8000, ""VBScript"")"
    oFile.WriteLine " "
    oFile.WriteLine " End Sub"
    oFile.WriteLine " "
    oFile.WriteLine " Sub PausedSection"
    oFile.WriteLine " window.close"
    oFile.WriteLine " End Sub"
    oFile.WriteLine ""
    oFile.WriteLine " </script>"
    oFile.WriteLine " </head>"
    oFile.WriteLine " <body>"
    oFile.WriteLine " "
    oFile.WriteLine " <img src=""http://www.domain.com/logo.png"" alt="""" />"
    oFile.WriteLine " "
    oFile.WriteLine " <p>Installation underway...</p>"
    oFile.WriteLine " "
    oFile.WriteLine " </body>"
    oFile.WriteLine "</html>"
    oFile.Close
    oShell.Run strFileName3, 0, true
    'oFSO.DeleteFile strFileName3

    Hi All, we now have the same issue. running 11.2.4 MU1 tested on IE8 on XP, IE9 on Win7 and ff 17esr, and suse 12.3 with chrome 31... want us to try ie 10 and 11? currently updating to ff 24 esr, and will update IE to 10 for now.
    Currently we have the exe defined as "c:\windows\system32\mshta.exe", .hta extension.
    Trying to validate the syntax externally, if anyone has any suggestions. Encrypted within the script the app runs fine.
    issue is the <body being added, up to several times:
    "Sub Window_<body <body <body onload
    Window.ResizeTo 590,560
    Continue
    End Sub"

  • Apachectl not start automatically through script when system start or rebot

    Dear Members,
    We are working on Red Hat Advanced Server 2.1 , when we give manual command from Red Hat 9 machine which we have written in script it's started but from script it has no working. One more thing How to start it from Windows machine if we give manual command ?
    e.g. From Red Hat 9 machine we gave under command
    telnet 202.202.202.1 -l oracle1
    then give password
    OH1/Apache/Apache/bin/apachectl start - it's started.
    e.g. From windows machine it gave message that http could not be started.
    The same message in the script also. So we need it would be start from script .
    I am giving my script file as under. Temp. put comment before command at apachectl start.
    # dbora file to startup database
    #!/bin/sh
    # Set ORA_HOME to be equivalent to the $ORACLE_HOME
    # from which you wish to execute dbstart and dbshut;
    # Set ORA_OWNER to the user id of the owner of the
    # Oracle database in ORA_HOME.
    #ORA_HOME=/u01/app/oracle/product/9.2.0.1.0
    ORA_HOME=/ora9isoft/odb/OH1
    ORA_OWNER=oracle1
    #ORA_OWNER=oracle
    if [! -f $ORA_HOME/bin/dbstart]
    then
    echo "Oracle startup: cannot start"
    exit
    fi
    case "$1" in
    'start')
    # Start the Oracle databases:
    # The following command assumes that the oracle login
    # will not prompt the user for any values
    su - $ORA_OWNER -c $ORA_HOME/bin/lsnrctl\ start
    read -p "wait ..." -n 0 -t 3
    echo ""
    # su - $ORA_OWNER -c $ORA_HOME/Apache/Apache/bin/apachectl start
    # su - $ORA_OWNER -c "$ORA_HOME/Apache/Apache/bin/apachectl start"
    read -p "wait ..." -n 0 -t 3
    echo ""
    su - $ORA_OWNER -c $ORA_HOME/bin/dbstart
    'stop')
    # Stop the Oracle databases:
    # The following command assumes that the oracle login
    # will not prompt the user for any values
    # su - $ORA_OWNER -c $ORA_HOME/bin/lsnrctl\ stop
    # su - $ORA_OWNER -c $ORA_HOME/bin/dbshut &
    esac
    So what can we do now ?
    Regards
    Vipul Patel

    You're running a 'postscript' file in the Installer ?
    If I understand you correctly I think this page will help:
    http://stackoverflow.com/questions/5449135/how-can-a-cocoa-application-add-itsel f-as-a-global-login-item

Maybe you are looking for