Why does this AppleScript cause a big delay in Mavericks?

Hello,
I use FileMaker for my database needs. I have been using an AppleScript to create a calendar event from FM to my Calendar using Apple Calendar. This has worked flawlewssly in Mac oSX 10.7 and 10.8. Every since Mavericks, the script still works (creating no error) but takes about 1 minute to complete. The funny thing is that if I run the script from the AS editor, it works just fine. The FileMaker does have access to my calendar in the security area.
Any thoughts?
Here is the script that is invoked:
launch application "Calendar"
repeat until application "Calendar" exists
          "delay 1"
end repeat
tell application "Calendar"
          set my_event to make new event at end of events of calendar "Test Calendar" with properties {description:"Test description here", summary:"Summary Text here", location:"location information here", start date:date "Sunday, December 8, 2013 at 10:00:00 AM", end date:date "Sunday, December 8, 2013 at 12:00:00 PM", allday event:false}
end tell
Thanks!
Stephen

set myCal to "MyLocalendar"
tell application "Calendar"
          set l to the title of every calendar
          if myCal is not in l then
                    set n to uid of (make new calendar with properties {name:myCal})
          end if
end tell

Similar Messages

  • Why does this AppleScript run twice in Automator?

    I am trying to create an application that I can run and change the function of my F1, F2 keys to or from standard function. I found this AppleScript online and it works... but it runs twice in a row:
    tell application "System Preferences" to activate
    tell application "System Events"
    tell application "System Preferences"
    activate
    set current pane to pane "com.apple.preference.keyboard"
    end tell
    tell process "System Preferences"
    click radio button "Keyboard" of tab group 1 of window "Keyboard"
    get every attribute of checkbox ¬
    "Use all F1, F2, etc. keys as standard function keys" of ¬
    tab group 1 of window "Keyboard"
    click checkbox ¬
    "Use all F1, F2, etc. keys as standard function keys" of ¬
    tab group 1 of window "Keyboard"
    activate
    if value of checkbox ¬
    "Use all F1, F2, etc. keys as standard function keys" of ¬
    tab group 1 of window "Keyboard" = 0 then
    display dialog ¬
    "Standard Function Keys off..." giving up after 1
    else
    display dialog ¬
    "Standard Function Keys on..." giving up after 1
    end if
    end tell
    tell application "System Preferences"
    quit
    end tell
    end tell
    If I change the Script by taking out the following, it only runs once. I believe my issue is in the below Script. I have fiddled with all that I know how to and either it doesn't run, or it runs twice...
    tell process "System Preferences"
    click radio button "Keyboard" of tab group 1 of window "Keyboard"
    get every attribute of checkbox ¬
    "Use all F1, F2, etc. keys as standard function keys" of ¬
    tab group 1 of window "Keyboard"
    click checkbox ¬
    "Use all F1, F2, etc. keys as standard function keys" of ¬
    tab group 1 of window "Keyboard"
    activate
    if value of checkbox ¬
    "Use all F1, F2, etc. keys as standard function keys" of ¬
    tab group 1 of window "Keyboard" = 0 then
    display dialog ¬
    "Standard Function Keys off..." giving up after 1
    else
    display dialog ¬
    "Standard Function Keys on..." giving up after 1
    end if
    end tell
    Any suggestions would help. If you run it and it only runs once, I am at a loss. Thank you for you time.

    it works fine for me in both automator and applescript. are you sure you didn't enter it twice in the Run Applescript workflow?
    a couple of tweaks, more for clarity than anything else:
              tell application "System Preferences"
                        activate
                        set current pane to pane "com.apple.preference.keyboard"
              end tell
              tell application "System Events"
                        tell process "System Preferences"
                                  click radio button "Keyboard" of tab group 1 of window "Keyboard"
                                  get every attribute of checkbox ¬
                                            "Use all F1, F2, etc. keys as standard function keys" of ¬
                                            tab group 1 of window "Keyboard"
                                  click checkbox ¬
                                            "Use all F1, F2, etc. keys as standard function keys" of ¬
                                            tab group 1 of window "Keyboard"
                                  activate
                                  if value of checkbox ¬
                                            "Use all F1, F2, etc. keys as standard function keys" of ¬
                                            tab group 1 of window "Keyboard" = 0 then
                                            display dialog ¬
                                                      "Standard Function Keys off..." giving up after 1
                                  else
                                            display dialog ¬
                                                      "Standard Function Keys on..." giving up after 1
                                  end if
                        end tell
                        tell application "System Preferences"
                                  quit
                        end tell
              end tell

  • I use Firefox 6.0.2. When I shut the browser and try to reopen it I get a message saying that Firefox is still running and that I should reboot. This happens constantly. Why does this happen and is there a way around it?

    I use Firefox 6.0.2. When I shut the browser and try to reopen it I get a message saying that Firefox is still running and that I should reboot. This happens constantly. Why does this happen and is there a way around it?

    There are a few possible causes for that error, for details see [[Firefox is already running but is not responding]].

  • Why Does 3D Reposse cause crashes and work so slow?

    Why Does 3D Reposse cause crashes and work so slow?   I get the pinwheel of death when I use this feature.  It works at a snails pace.  I liked the 3D Type effects in iIllustrator.  Why couldn't Adobe have added all the Reposse features to Illustrator instead of craming all these new features into Photoshop?
    They're worthless if the program needs an hour to process every selection.

    What are your OS specs, your Video Card and your Preferences > Performance settings?
    Why Does 3D Reposse cause crashes and work so slow?
    My guess would be because it has to create a whole bunch of polygons and your computer-set-up may be insufficient for the task.

  • Why does iTunes Match cause iTunes to crash ?

    Why does iTunes Match cause iTunes to crash ?

    My problem is similar.  It began right after I allowed an Adobe update to run.  (Adobe Flash Player version 10.0.45.2 is recorded in my Registry.) Now every single website I try to open triggers a window (see below) and repeats many times.
    It makes no difference whether I "Allow" or not.  I think it runs this window for every flash object on that website.  It is occurring while I enter this post!
    It makes using the Internet MOST challenging.  Surely this is causing major problems for everyone.
    I have IE8 on Windows Vista.
    Here's the text from the message:
    "A website wants to open web content using this program on your computer.
    This program will open outside of Protected Mode. Internet Explorer's Protected Mode helps protect your computer. If you do not trust this website, do not open this program.
    Name:  Adobe Flash Player
    Publisher: Adobe Systems Incorporated
    (Checkbox) Do not show me the warning for this program again.
    buttons:  Allow         Do Not Allow"
    Should I appeal to Microsoft or Adobe for a solution?  Is is possible to install the previous version?
    Thanks for any wisdom.

  • HT202070 When I force close apps on the Switcher, I notice that a specific "Recent Contact" flashes sometimes... Why does this happen and what does it mean?

    When I force close apps on the Switcher, I notice that a specific "Recent Contact" flashes sometimes... Why does this happen and what does it mean?

    Hard to say. What problem is causing you to need to force close apps? That may be a clue.

  • When I use Siri with Voiceover on my iPHONE 4S. Voiceover will not respond to any finger jestures. Why does this happen?

    When I use Siri with Voiceover on my iPHONE 4S. Voiceover will not respond to any finger jestures. Why does this happen?                                           

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great

    I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great!

    The fact that you can receive means you have a valid e mail address, and have established the connection to the incoming server, so all of that works.  Since the send does not work, that means your outgoing server is rejecting whatever settings you used formthe outgoing set up.  Try them again. 
    Google your particular isp, and ipad and many times you will find the exact settings needed for your isp.  Or tell us here, and soneone else may be on the same isp.  Some mail services need you to change a port, or have a unique name for the outgoing server.  
    Kep trying.

  • HT201209 iTunes will not use the redeemed gift cards on my account, I have a $30 credit and when I try to purchase a song it goes right to my credit card on file. Why does this keep happening

    iTunes will not use the redeemed gift cards on my account, I have a $30 credit and when I try to purchase a song it goes right to my credit card on file. Why does this keep happening???

    Any time you've changed anything in your billing, it does this once to very things.

  • TS4062 when i sync my iphone a large portion of my music does not download but rather stays in the cloud. then i must download it from the cloud. why does this happen and how can i stop it from happening

    every time that i sync my iphone with a cord to my imac some large portion of my music is placed in the cloud so that i must down load it from the cloud. this includes music that i have purchased on itunes and other music. it seems random.
    why does this happen? is it a setting? i want to stop it. and music that w

    It was gift back in September. You can follow the instructions in the link below to remove them:
    Remove iTunes gift album "Songs of Innocence" from your iTunes music library and purchases - Apple Support

  • My iphone is suddenly populated by random songs I've downloaded in the past. Why does this happen, and what are apple doing about fixing this?

    Why does this happen?
    What do other people do? (I can't go to sleep knowing there's a rogue album or song in my music. It's 2am now)
    What do we tell apple so that they actually fix it. None of us want to pay £25 to have our own music.

    I am on the monthly payment plan because nobody at BT has told me there is any alternative!
    Each year there I have a long, in-depth conversation with the person who sets up the contract for the next year but the gist of the thing is 'I'm  not going to be paying more than [x amount] per month, am I? Because I can't afford any more'' and each year the person says that no, in fact I should be paying less... and then without notice and even with the bill saying 'We will continue to take....' a totally different - and higher - sum disappears from my bank account.
    Then I go through the painful process of writing to complain about this, get some sort of sum refunded and then the payments go through at the level they should, with me paying any additional (usually small) amounts for usage over the allowance. Until contract end when we start all over again...
    Even if the amount they seem to randomly decide on is based on some sort of forecast, this should not be happening as I am doing what they instruct me to do on the bill to keep my payments the same.
    So something is going wrong, on many levels.
    At no point have I been offered the sort of 'monthly billing' described here; maybe there is some reason I am not allowed it. Unfortunately 'whole bill' direct debit payment is beyond me. I really need to know what I will be paying each month and I need BT to correctly take that amount, as agreed, each month, from the get-go.
    It shouldn't be that hard really! Does anyone from BT read these forums? Can somebody take this on and finally get this straight, please?

  • Why does this message keep appearing when i try to instal windows 7 through bootcamp? - "something went wrong and the USB cannot be configured for the installation"

    Why does this message keep appearing when Itry to instal windows 7 through bootcamp? - "Your bootable USB drive could not be created. An error occurred while copying the Windows installation files."

    Found a solution!
    Follow the extended version of these directions here:
    https://discussions.apple.com/docs/DOC-3581
    Worked like a charm!

  • HT2500 I sometimes get e-mails where the sender sends me several PDF's attachments. These attachments appear already opened on the e-mail unlike most PDF's which I open by clicking on the PDF icon. Why does this happen?

    I sometimes get e-mails with pdf attachments. However instead of opening a PDF icon the body of the e-mail message has the PDF's already opened. Why does this happen? Is there anything I can change on my mac book pro to make these PDF's come thru with their individual icons which can then be opened.

    This is a long-standing design flaw in Apple Mail.
    Prior to Mavericks, this command in Terminal would stop the annoying behavior:
    defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes
    This Terminal command stopped working in Mail 7.1 under Mavericks. I have reported this to Apple as both a feature request and a bug. You should too.
    http://www.apple.com/feeback

  • HT2470 Why does this not explain how to change the sort order?

    Why does this (i.e. support at Apple.com) not explain how to change the sort order? I can "arrange" by Date Modified for example but it won't let me switch to use most recent dates first. Also, what is Apple-speak for arrange versus sort anyway? It seems I used to be able to click on a column heading in finder and get a drop down arrow allowing me to change the sort sequence.

    Arrange roughly translates to "group the items in the folder." Sort is how each group is ordered. If you have arrange set to none, you can sort by anything. However, there is no way in the Arrange/Sort menu to choose the direction. The only way to do that is in the List View, and you must have Arrangement set to None.
    I've submitted an Enhancement Request to allow choosing sort direction from the Arrange/Sort menu, but I haven't ever gotten a response, which is good and bad. Good because they will often respond that they have considered it and don't plan on implementing. Bad in that they've haven't implemented it.

  • HP Photosmart C8180 Printer! WHY does this keep happening every day??

    I have only had this for 3 months and it already has problems.
    It keeps telling me its out of paper when it is not.
    i always have at least 20 sheets in there!
    You can hear the rollers going but it can't pick up the paper and I only use high quality A4 paper in there.
    i then have to pull the tray out and push it back in, and yes i have the paper inserted in there correctly
    also, sometimes when i get this "out of paper" message, i ignore it and just press OK and it works fine 
    why does this keep happening?
    this is disgusting coming from a Quality brand like HP
    think its time to go to BBC Watchdog! 
    A printer is an item meant to print. 
    It is generally helpful if a printer recognizes such out-of-the-ordinary, eccentric, unheard-of media such as...oh, I dunno, 8.5 x 11-inch PAPER?????
    It claims repeatedly to have run out of paper. No paper. No paper. Insert paper into paper tray. Now, granted, the minimalist quality of the paper tray--it holds 20 pages, roughly--might convince you that I had indeed used up all my paper; this is not the case. 18 of the 20 sheets are still there. So I readjust that paper, close the tray. It starts to pull in a piece of paper, and then there is the giant crunchy noise of a paper jam in progress. And forget about “easy access” for removing them, either.
    In the months I have had this printer, I don’t believe it has EVER allowed me to print five pages consecutively without some sort of problem.  To me, this is known as an EPIC FAIL. 
    Message Edited by Waynester on 04-16-2009 04:09 PM

    So how is the printer set up?  Is it wireless or USB?  If USB you will need a cable, purchased seperately.  It is a standard A/B USB cable widely available inexpensively.  (The $1 cables form the dollar store work fine....
    Running the diagnostics at http://www.hp.com/go/tools may help resolve the issue.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

Maybe you are looking for

  • Dell Venue 11 Pro (5130 64Bit) BIOS update in WinPE 5.1 x64

    I have encountered an issue while trying to upgrade BIOS on Dell Venue 11 Pro (5130 64Bit) in WinPE 5.1 (64-bit). To pre-empt any questions why not use BIOS update option available from boot menu: while it may be quite elegant solution for home use,

  • Automatic "Notes" sync

    Is it possible to have your iPod automatically sync all notes within a certain folder each time you plug the iPod in to sync music? I'd like to be able to drop notes into a specifiec folder and have the iPod automatically check for new notes to sync-

  • For Vendor

    Hi I have a one Vendor Code, But it has got different Location (Godwan sales Office). Can I maintain the two Add for a Same Vendor. Please help (we dont have Partner Function)

  • Error when trying to run drill through in excel.

    About 2 weeks ago we upgraded our system from Essbase 654 to 931. Some of our users are now getting this error message on their screen when they try to run a drill through report. [OLAPISVR] 1051293: When I look in the OLAPISVR.log the below error is

  • How to diagnose a System crash?

    My son has a 2010 iMac and it crashes about once a week. I've serviced it with Disk Warrior twice. The first time it found a problem with the Volume map, but the second time nothing. Can anyone tell me how to read the Console crash report? As this is