ICal Run Script

I'm trying to run a script via iCal using an alarm and it doesn't seem to work if the computer has been sleeping for a certain amount of time.
I have an alarm set at 4:15am - 5:15am. If I set the alarm to "run script" and choose the script, it will return something like the script didn't finish. If change the script up as an application and set the iCal alarm to open file it returns an error "No user interaction allowed."
Here's the real kicker. If I set the alarm to run within a few minutes or so, it works just fine using either run script or open file, but if the computer has been asleep for a certain amount of time, it flakes out. I tried using the energy saver seting to wake the computer up a minute before the script runs, but that didn't make a difference. I also thought it might be because there was the screen saver was password protected, but I turned that off and that didn't work either.
Not that this really matters, but the only thing the script is doing is kicking off a FileMaker script that runs an import. So it is very simple and I set a timeout on it just to be sure that wasn't an issue either. The Filemaker script only takes about 2 minutes to complete. Here's the code...
delay 10
tell application "FileMaker Pro Advanced"
activate
with timeout of 3600 seconds
open "HardDrive:Users:username:Documents:FileMakerFile.fp7"
do script "ImportScript"
end timeout
end tell
Does anyone have any ideas on this one? I'm running this on a Quicksilver G4 with OS 10.4.6. iCal is v2.0.3 and applescript is v1.10.6.
iBook G4    

I'm having same problem
Bruce: did you find a solution?

Similar Messages

  • ICal / Run Script / Is this even possible?

    Hello.
    I would like to generate an email from an event I create in iCal.
    I have set up my applescript to run with the "run script" option in the alarm section.
    All that works fine. Except for one thing that I am not even sure is possible.
    Say I create an event called "Liz's Birthday".
    Is there a way in the "run script" for me to get via applescript the title of the event? ("Liz's Birthday")
    From everything I have read it seems iCal is "done" with the run script once it is run... and that there is no way to call back to the original event to get information.
    Note: my script is pretty complicated to i know I can send an email reminder, my goal is to create a whole new email that has the title from the even but not the note. (by default ical will put the body of the event in the note. which we do not want).
    thanks.

    Hello.
    I would like to generate an email from an event I create in iCal.
    I have set up my applescript to run with the "run script" option in the alarm section.
    All that works fine. Except for one thing that I am not even sure is possible.
    Say I create an event called "Liz's Birthday".
    Is there a way in the "run script" for me to get via applescript the title of the event? ("Liz's Birthday")
    From everything I have read it seems iCal is "done" with the run script once it is run... and that there is no way to call back to the original event to get information.
    Note: my script is pretty complicated to i know I can send an email reminder, my goal is to create a whole new email that has the title from the even but not the note. (by default ical will put the body of the event in the note. which we do not want).
    thanks.

  • Run scripts on iCal

    Dear All,
    Before switching to my new iMac, I could open very easily Pages files (4.03) and run scripts during events ex: "Take a screen shot..."
    With my new iMac I have problem opening Pages files (with the so known Pages 5) and I am not able to run scripts.
    Are you experiencing the same problems? Is there anybody here who could help me.
    I thank you in advance for your replies.
    Kind regards,
    Daniel.

    Here's a workaround that I just figured out that seems to do the trick for my issue with my "alerts" that open a file. I'm not sure it would work with the automator attachment but maybe you can adapt it.
    I set up google calendar to sync with iCal via CalDav and put my automation calendar on google calendar/iCal. I left my other iCal calendars as they were to sync with MobileMe/iPhone. My automated file launches are preserved in iCal and the calendar does not sync with my iPhone, which is what I wanted. Works for me, hope you can get it to work for your situation.

  • Ical alert to  run script disappears from the event

    A few seconds after I set an  alert for an event  to run a script, the Run Script designation disappears and defaults to  alert Message. I cannot make the Run Script designation stick. So, when the alert triggers, no script is run. 

    Hi kimal,
    Are you syncing the calendars? Run Script alarms only work on local calendars, those under "On My Mac" in iCal.
    Best wishes
    John M

  • Run script alarm question for iCal

    I have a script that I have been able to set as an alarm in iCal to change the times of events on various days.  People subscribe to this calendar and I would like to imbed the script as an alarm in the subscribed calendar.  Can't get it to work.  Here is the message I am getting right now when I refresh the subscribed calendar...  There was an unexpected error with the request (domain CalCalendarStorePersistenceErrorDomain / error 1 / description 'Alarms that open files or scripts must include a file path.').  As far as I can determine it does have a file path!  Does this error mean that the script should have a file path?  I've tried the
    set theFile to POSIX path of (script name) command in the Applescript, but I'm not convinced I have it right.  Can you run scripts that reside on the local machine by activating them through subscribed calendars?
    thanks,
    dan

    Found the problem: The run_maintenance script couldn't be completed without user action (because of the dialogue), so was giving iCal an error.
    Solution: I've set another script that simply launches the run_maintenance script as the alarm.
    So there are 4 players in this daisy chain: iCal, a script to launch the reminder script, the reminder script, and Maintenance!
    Inelegant, but it works.

  • Run Script alarm doesn't work when iCal closed

    I have an applescript to remind me to run a maintenance application once a week. I've set a "Run Script" alarm for a weekly event in iCal... But the script ONLY executes if iCal is open!
    If iCal is closed I get the message:
    "An AppleScript event alarm did not execute properly. The script "run_maintenance.scrpt" that was assigned to the event "maintenance" did not open or did not finish running."
    Then, when I then open iCal, the applescript executes.
    How can I get the script to run when iCal is closed, just like a normal alarm?
    By the way, the applescript is quite straightforward, with a dialog and finder instruction to activate the maintenance program. It runs fine manually (& as I say, if iCal is already open).
    Thanks for any suggestions.

    Found the problem: The run_maintenance script couldn't be completed without user action (because of the dialogue), so was giving iCal an error.
    Solution: I've set another script that simply launches the run_maintenance script as the alarm.
    So there are 4 players in this daisy chain: iCal, a script to launch the reminder script, the reminder script, and Maintenance!
    Inelegant, but it works.

  • Run scripts on a schedule

    Is the a way to run scripts on a schedule? I have a script that I want to run 3 days (Mon, Wed, Fri) a week at a certain time.
    How can I do this

    lets use iCal seeing as it came with your mac.
    create your script and save it where ever you want, open iCal create a new event, on the right hand side you will see the new events draw, set the time you want your script to activate in the from-to area, set it to repeat and end as you wish, go down to alarm and select open file in the drop down, then right below open file their should be another drop down select other from that, that will open a window now select your script, then in the next drop down select on date, your done.
    let me no if you need any more help.
    Budgie

  • ICal's Script's Cache

    When adding an alarm to an entry on my schedule, specifically when choosing 'Run script' as the alarm action, I notice that iCal remembers all the previously chosen scripts used on older events, making it a bit confusing for me to select the proper script since all the scripts I'm running are named using numbers (267812290.scpt, 100928937.scpt, etc.)
    Is there a way of having iCal not remembering the old scripts? Showing and empty menu every time I chose 'Run script > Other...' ?
    Let me know if I'm not being clear enough and I'll try recreating this scenario somehow.
    Mariano

    That information is stored in iCal's preference file (com.apple.iCal.plist) in ~/Library/Preferences. If you double click it, and Property List Editor is on your system, it will open up. I suggest quitting iCal before trying this, and make a copy of the plist file in case something goes wrong. If the plist file doesn't open in Property List Editor you may need to install the optional Developer Tools from your installation DVD.
    After opening the plist click on the triangle beside the root and it will expand the items. Scroll down and you will find an entry PersistantMenu-lastusedRunAlarm. Expand it and you will see an entry for each recent used script, numbered 0,1 ... etc. There is no need to expand these, just select and delete them, but don't delete the parent (PersistantMenu-lastusedRunAlarm). Quit the editor and restart iCal.
    AK

  • HT4759 can sign into icloud but won`t let me in . says wont open because of long running script . any ideas

    Can sign into icloud but wont let me in . says wont open due to lond running script . any ideas thanks

    Restart your PC and try again.

  • 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.

  • "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

  • HT1222 hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package "mzps6175750011235388779.pkg"

    hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package “mzps6175750011235388779.pkg”
    can you please advise me what should i do to fix this

    Some ideas.
    https://discussions.apple.com/message/20034600#20034600

  • Can't access icloud due to long running script

    keep getting this error message when logging on to icloud to access my email:
    can't access icloud due to long running script
    And if I do get logged into icloud and try to open the email application I can't open my email or any other applicationii.
    HELP

    Welcome to the Apple Community.
    Delete your mail account from Mail preferences and set it up again using the Mail Server Information.
    Some users have apparently encountered issues using this information in pre-Lion set ups (I haven't), Roger Wilmut has kindly provided instructions for those who find themselves with this problem.
    Entering iCloud email settings manually in Snow Leopard or Leopard
    Entering iCloud email settings manually in Tiger

  • 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

  • Script Alert "You should only run scripts from a trusted source."

    I created a small javascript which opens Photoshop and resizes some images.
    I want to be able to double-click the .JSX file from Windows Explorer, and have Photoshop execute the script. Likewise, I want to be able to run the .JSX file from the command line.
    The script runs perfectly. However, the problem is that I don't want any user interaction. I want to be able to run the script from the command line without the user having to click anything. What happens now when I try to run the file from Windows Explorer of the command line is, I get a Script Alert with the following text:
    You are about to run a script in Adobe Photoshop CS3. You should only run scripts from a trusted source. Do you want to run the script? Yes/No
    Is there any possible way to bypass this message or to answer in the affirmative?
    Thanks,
    Jamie L.

    Hi... Sorry to revive such an old thread,
        Does anyone know the "trusted source" folder for MAC CS4.
    EDIT!
    My bad.  "The /users/<user_name>/documents/Adobe Scripts" folder is working for this purpose for me.  I needed a path to it and forgot that the ~ resolves to the current user.  Sweet.
    -Bill

Maybe you are looking for

  • Sat Pro M10 will not boot up anymore

    My Sat Pro M10 worked fine until yesterday. I removed the harddrive just to check Part number (as i need to install a larger drive and want to make sure I got it right)and then re-inserted it. Now it boots up as far as the XP Pro loading screen (blac

  • Any one knows how to change "TransptnPlanng date" in delivery document?

    Deal All, Could any one provide the BAPI/FM that can change "TransptnPlanng" date/time in inbound/outbound delivery documents? I need to update the dates only in ABAP program based on external information. I tried WS_DELIVERY_UPDATE with the followin

  • In Adobe Creative Suite 5.5 Web Premium Acrobat X Pro is included, why did it not install on my pc?

    In Adobe Creative Suite 5.5 Web Premium Acrobat® X Pro is included, why did it not install on my pc? I upgrade from CS3 and tun on new PC Windows 7

  • Load fails to DSO with Caller 01 02 error.

    Hi All, I am trying to load data to an ODS whose DS is 2lis_12_vcitm. It throws an error Caller 09 Error... Error at Source System. When we analysed in R/3 it says there is an issue with the Material Conversion. 11.12.2008 06:58:07 Quantities cannot

  • Missing "Raw Decode Presets.plist" file

    I'm having and issue with tint shifting when using the white balance brick. Several users have suggested deleting the Raw Decode Presets.plist however; that file is not located on my computer. How do I get Aperture to regenerate the list? Can somebod