Calendar back up - script error issue

hi,
1st of all let me tell you i am not a programmer. i dont have any kind a knowledge of apple script or automater.
but when i was serchign backup sollution via apple script, i got this script.
          tell application "Safari" to activate
          tell application "System Events" to tell process "Safari"
                    click menu item "Export Bookmarks…" of menu 1 of menu bar item "File" of menu bar 1
  keystroke "d" using command down
  click button "Save" of window 1
                    if sheet 1 of window 1 exists then click button "Replace" of sheet 1 of window 1
          end tell
          tell application "Contacts"
  activate
  delay 5
  activate
          end tell
          tell application "System Events" to tell process "Contacts"
                    click menu item "Contacts Archive…" of menu "Export…" of menu item "Export…" of menu "File" of menu bar item "File" of menu bar 1
  keystroke "d" using {command down}
                    keystroke "Contacts Archive"
  keystroke return
                    if sheet 1 of sheet 1 of window 1 exists then keystroke space
          end tell
          tell application "Calendar"
  activate
  delay 5
  activate
          end tell
          tell application "System Events" to tell process "Calendar"
                    click menu item "Calendar Archive…" of menu "Export" of menu item "Export" of menu "File" of menu bar item "File" of menu bar 1
  keystroke "d" using {command down}
                    keystroke "Calendar Archive"
  keystroke return
                    if sheet 1 of sheet 1 of window 1 exists then keystroke space
          end tell
but when this script reaches here.......
tell application "Calendar"
  activate
  delay 5
  activate
          end tell
          tell application "System Events" to tell process "Calendar"
                    click menu item "Calendar Archive…" of menu "Export" of menu item "Export" of menu "File" of menu bar item "File" of menu bar 1
  keystroke "d" using {command down}
                    keystroke "Calendar Archive"
  keystroke return
                    if sheet 1 of sheet 1 of window 1 exists then keystroke space
          end tell
it gives error.
now can any one help me how to solve this issue.
in this script any scripting modification needed??

Hi,
would have been best to describe this error closer
Running the script in AppleScript Editor will highlight the relevant line ...
So i guess the error occurs when it reaches the if-statement. Put it in a try block:
try
if sheet 1 of sheet 1 of window 1 exists then keystroke space
end try
and maybe do the same with the corresponding line in the contacts-block....
A GUI-Script like this one is always a little shaky since you need to pause your activities while running it.
I wanted to note that just because i might have a better solution for you: an AppleScript-application that backups Contacts and Calendar without using GUI-Scripting. You will find it here (and do be surprised about my spelling as i am not an English native speaker)
Greetings

Similar Messages

  • Using Arch Wiki rsync back up script - Error Code 3

    Hi Guys,
    I've searched around these forums and the web for people with similar problems without getting a solution.
    I took the script provided in this wiki page and directly created a file named arch_backup.sh in my bin directory.
    Then I run it in the following manner:
    Infernus:discourse(master!*) $ sudo ~/bin/arch_backup.sh /media/Backup/Arch
    sending incremental file list
    file has vanished: "/proc/10/exe"
    file has vanished: "/proc/10/task/10/exe"
    ERROR: destination must be a directory when copying more than 1 file
    rsync error: errors selecting input/output files, dirs (code 3) at main.c(622) [Receiver=3.1.0]
    total time: 0 minutes, 0 seconds
    Infernus:discourse(master!*) $
    Here are the relevant parts of my mount -l command:
    /dev/sdd1 on /media/Backup type ext4 (rw,nosuid,nodev,noexec,relatime,data=ordered)
    I get the same error when I run the provided rsync command directly:
    rsync -aAXv /* /media/Backup/Arch --exclude /dev/* --exclude /proc/* --exclude /sys/* --exclude /tmp/* --exclude /run/* --exclude /mnt/* --exclude /media/* --exclude /lost+found --exclude /var/lib/pacman/sync/*
    I keep getting the same error message over and over again. The destination is a directory and is writable, otherwise the provided backup script would exit with an error message.
    Any help?
    Last edited by Balaji Sivaraman (2013-12-01 18:05:24)

    jasonwryan: I had a go at re-writing the first section to avoid parsing ls output - and that was not too difficult - so the start of the script then becomes:
    #!/bin/bash
    # Back up stuff to backup disc
    USE_AUTO_FS=0
    if [ -z "$1" ]; then
    USBNAME=/run/media/$USER
    DIRCOUNT=$(find $USBNAME/* -maxdepth 0 -type d | wc -l)
    if [ "$DIRCOUNT" -gt "1" ]
    then echo Found $DIRCOUNT directories in $USBNAME;
    echo rerun choosing a specific backup drive as parameter
    echo quitting
    exit
    fi
    DIRCOUNT=0
    for full_path in "$USBNAME"/*/; do
    if ! [ -d "$full_path" ]; then continue; fi
    EXT_DRIVE=${full_path#"$USBNAME/"}
    EXT_DRIVE=${EXT_DRIVE%/}
    DIRCOUNT=$(($DIRCOUNT + 1))
    if [ "$DIRCOUNT" -gt "1" ]
    then echo Found $DIRCOUNT directories in $USBNAME;
    echo rerun choosing a specific backup drive as parameter
    echo quitting
    exit
    fi
    echo "$EXT_DRIVE"
    done
    echo Mounted EXT_DRIVE is $EXT_DRIVE
    else
    EXT_DRIVE=$1
    fi
    This is overkill on the check for more than one mounted drive - I know!
    However when I looked at using a single rsync command instead of a set in a loop - this is certainly possible but I wanted to have the script output when it started each of the top directories and not progress for every file in the recursive tree - and I could not find a solution for that.  I could get a "total" progress indicator using the new --info=progress2  flag that was implemented in version 3.1.0 of the rsync command but that was not what I wanted. Having a single progress line for each item in the list variable was not something I could find. If it is possible I would love to know how?
    Anyway the code for doing this is:
    list=( '/etc' '/var' '/boot' '/root' '/opt')
    echo Directories to be backed up are ${list[@]}
    ToDir="$BAKDIR/$ME_HOST"
    TIMER=$(date)
    TIMER1=$(date +%s)
    echo Started at $TIMER
    rsync --info=progress2 --delete -aH --exclude 'lost+found' --exclude '/var/cache/*' "${list[@]}" $ToDir
    TIMER=$(date)
    TIMER2=$(date +%s)
    echo Finished at $TIMER
    TDIFF=$((TIMER2-TIMER1))
    TDIFFM=$((TDIFF/60))
    TDIFFR=$((TDIFF%60))
    echo
    echo Process time elapsed is $TDIFF seconds = $TDIFFM min $TDIFFR sec
    Anyway this seems at least to work whichever option one chooses.  Also the z compression flag is not necessarily faster - for a lot of small files over a gigabit link can be slower so I guess it depends on the details of how the backup is being executed.
    Last edited by mcloaked (2013-12-02 21:23:36)

  • Get a script error on Netflix when I try moving the movie forwward or back.

    I recently switched from IE to Mozilla Firefox,mainly because it is so much faster.I do not use IE at all anymore.I deleted it from my puter.Ever since then with Mozilla,when I try to move the movie forward or back on NetFlix, everything freezes.If I persist,I get a 'running scripts' error and a suggestion that I stop them from running.When I do so It seems to fix(?) the problem.This was not a problem with IE.
    Please help.
    Boyo

    Can you confirm that Silverlight is set to "Always Activate" on the Add-ons page?
    You can open that using either:
    Ctrl+Shift+a
    orange Firefox button (or Tools menu) > Add-ons
    In the left column, click Plugins. Then scroll down and find Silverlight.
    Assuming that checks out, then more generally...
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    orange Firefox button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then try reloading the page. Does that help?

  • I have Calendar v 7.0 and Entourage 12.3.6 2008 on OS X 10.9.2. I cannot import Entourage events into Calendar - this was never an issue with iCal. Whats happened and how can I import details into Calendar or do I need iCal back?

    I have Calendar v 7.0 and Entourage 12.3.6 2008 on OS X 10.9.2. I cannot import Entourage events into Calendar - this was never an issue with iCal. Whats happened and how can I import details into Calendar or do I need iCal back?

    adamboettiger wrote:
    Sophos and MacKeeper
    There are many reported problems with both these programs.
    Run through this list of fixes in order, will tune you right up.
    They are in order for a reason.
    ..Step by Step to fix your Mac

  • Photomerge Issues - Script Error Auto allign not possible

    Ever since I upgraded to Photoshop CC , I have been unsucessful in Photomerging. I receive an error  Script Error cannot autoallign all images. I have tried merfing on a panoramic program and  experience no problems.
    I have also tried auto alligning using Photoshop CC using diffent images from different cameras and receive the same script error
    Any ideas would be appreciated

    What OS are you running?  32 bit or 64 bit?  How big are your source images and how many do you have for a given pano?
    I just did a 360 degree pano that ended  up 25689 x 1850 pixels (after cropping) from 17 raw Canon 40D images, all handheld while standing in different spots around the Clingman's Dome observation tower in the Great Smoky Mountains National Park.  Photoshop CS5 standard 64 bit on Windows 7 x64 with 8 GB RAM didn't have any problem at all with it, though it took about 10 minutes or so to finish.  The result came out astoundingly good, even though the slight changes in perspective should have been challenging.
    http://Noel.ProDigitalSoftware.com/temp/ViewFromClingmansDome_NPS.jpg
    If you don't mind my asking, what do you do with hundreds of panoramas?  It's an difficult image format to find uses for to say the least.
    -Noel

  • Script Error when I try to Preview a report

    Dear Experts, I have this issue when I try do a open a report by clicking Preview in CMC,  I get a parameter screen where I have to plug the values. When I try to click on the calendar icon to pick up the dates I get this error message:
    Internet Explorer Script Error
    Line: 251
    Char: 1
    Error: Object expected
    URL: .... prompting1.html
    I imported the same report in the test server and I can select the calendar dates on the parameter screen just fine.
    I'm on BOXI R2, Windows Server 2003.
    I followed the instruction of un-checking the and checking the "Disable Script Debugging" in Internet Options Advanced tab. That did not help.  I also made sure that the preferences in CMC has "ActiveX" under Crystal Report Viewer.
    Kindly help me fix this issue.
    Edited by: SAPman on Nov 9, 2009 12:36 PM

    >
    Sebastian Wiefett wrote:
    > Hi,
    >
    > this looks for me as an error from the IE.
    >
    > Try to delete your Cache please. Is the URL of your BO Server in your Trusted Sites list ?
    >
    > Regards
    > -Seb.
    I too feel it is something with IE itself. I can open the calendar on the parameter screen after I migrated the report in the test environment with IE7.0. My dev system has IE6.0 and I was unable open the calendar. So I thought maybe it is the version. But when I open the dev CMC on my workstation (with IE7.0), I still was unable to open the calendar in the parameter screen. So that rules out IE version.
    URL is also listed under Trusted sites. Moreover, if I type the dates manually, then report works fine too. But if I click on the calendar icon to select the dates, then I get this error.
    Any help is appreciated.

  • Why do I get a "script error" message from Adobe flash player?  It is installed as a part of my browser.IE 11

    Why do I get a "script error"  from flash player when it is not installed separately?  It is part of my browser--IE 11

    Same error message, I disabled tab mix and made sure I only have the newest version of Java, restarted firefox, now it seems to be fine no error yet on Pogo games or pictures upload to ebay which were the biggest problems besides hanging. I had also had disabled AVG secure search yesterday but that did not solve the issue. Now I will try to add back in AVG search...I have very few adds ons, also the note embedded about re- installing a toolbar went away, my old one did not work with FF4, so I installed Yahoo toolbar but the message still did not go away until I applied this fix. Hopes this helps someone..

  • Tons of Script Errors and Slow Redraw

    I recently setup CS 5.5 with Bridge 4.1.0.54 on a new MacBook Pro.
    When I launch Bridge I get the following messages:
    I'm confident of a few things. First, it's obviously somewhat related to this issue:
    http://forums.adobe.com/message/3083307
    Second, it has nothing to do with CFS or Samba shares.
    Lastly, the error has something to do with the output module script- if I startup without it on, no errors.
    Currently I have my MBP setup with two drives. A SSD for the system software and a second SATA drive for content. All my system software is on the SSD boot drive, however, my users folder is split between the two. Everything but ~/users/xxx/library is symbolicly linked on the second drive.
    If you look closely at the thread referenced above, all the errors are the same except for the "could not create" error. In the thread, it lists a specific user, my error lists Volumes/Null/...
    Here is what I've tried so far:
    Reset the app
    Trashed the prefs
    Started up w/o scripts
    reinstalled the entire CS 5.5 Suite after Uninstalling and using the cleaner tool
    To add insult to injury, When the output script is off and bridge does load, it does it painfully slow to the point where it is not usalbe. It is also having a ton of redraw issues.
    Any advice?

    I think I may have found a workaround.
    I've been racking my brain over the past few days to figure this one out. I've tried at least a dozen permsissions fixes, both through the apple utility and manually. I've reinstalled both bridge and CS 5.5 three times using the cleaner script and a fresh install. NOTHING.
    So I went back to the original error message:
    One thing I noticed was that everytime Bridge was starting, it created a folder in /volumes called "null". I checked three other macs setup the same was as mine and NONE of them created this folder during bridge startup.
    I still have not figured out why my laptop is doing this.
    However, I looked at the error and it seemed that bridge was looking for a path that didn't exists, which was /volumes/null/Adobe/Adobe Bridge CS5.1/Adobe Output Module/Mediagallery
    the path Adobe/Adobe Bridge CS5.1/... is the same path as my ~/library/application support/... folder for adobe.
    First I created a regular alias to that folder to create the fake path. No dice. Then I tried a symlink to creat the fake path /volumes/null/Adobe/Adobe Bridge CS5.1/Adobe Output Module/Mediagallery
    Voila. Worked like a charm. I can now start up Bridge without any errors, script errors, etc. I also have all the functionality of my Output panel back and I'm able to use it without getting the insufficiant disk space error.
    Now to figure out why Bridge is creating a "Null" folder.

  • I Get script errors on Club Penguin inFirefox and its slo. Not so with Chrome, but I like Firefox. can you help

    I use the Club Penguin site to play with my grandson, but it is extremely slow and freezes all the time and I get lots of script errors. I have today downloaded Chrome and it works fine on there extremely fast and no errors. I have downloaded the latest Adobe Flash, cleared the cache etc but on this site it just keeps freezing. Can you help.

    Check here
    *http://kb.mozillazine.org/Clipboard_not_working
    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Habitual Script Errors with Verson 29.0.1

    While pop-up script errors have bedeviled Firefox since nearly forever, I've found after upgrading to version 29.0.1 to have even more of a problem with this. In particular, on the website http://www.wonkette.com/ I've had a terrible time just in the last week without their having been any change to that website or more browser. It seems to have happened out of nowhere. It's too the point of where I can not navigate the site without being on it for hours. I can get half-a-dozen script error pop-ups within an hour, and this is without even going between pages. The site absolutely crawls (scrolling becomes near-impossible) and hangs for minutes on end.
    Can anyone replicate this experience, there? Has anyone found any ways around these errors? I can tell you right up front that it's not the result of a corrupted profile. It's not the the plug-ins; I've experimented with turning them all off, turning them off one by one and then turning them back on to see which gives me problems...and it's not that. As you can tell by the troubleshooting information, I'm running a rather old operating system, but that's only been of minimal issue across the internet for me. This seems to be something with the browser, and I'm wondering if there are any settings on about:config that may help me with this issue?

    Hi FireFoxFan1,
    Thank you for your question. We had some really excited visitors to the support forum on Monday and we could use some more help. If you would like to help out this is how to become a contributor: [https://support.mozilla.org/en-US/get-involved Get Involved]
    In regards to your issue, I opened up the Networker for that website and saw a ton of scripts running. If you want to block them to prevent the message you can use the Ad Block Plus add on to scan what is running on the page too.
    I hope this helps. And thank you for being a Firefox Fan, I am too ;-)

  • Unresponsive Script errors popups in Firefox 14.01

    Since upgrading from Firefox 13.01 to 14.01, Firefox is taking a long time to launch and I am receiving multiple unresonsive script error popups when it tries to launch. I have the same extensions installed that I had in 13.01 and all are compatible with 14.01. Again this issue ONLY started when upgrading to 14.01. I have tried to determine what extension is the problem and turn it off, however when I launch Firefox again, another unresonsive script error popup occurs with a different extension. I'll remove that one and it popups again about a another different one. This is crazy! I have even tried a complete clean install, with no luck. What is the problem?

    I use Roboform and the first unresponsive script error popup is about Roboform. Their tech support just emailed me about an hour ago and ask if I had Trusteer Rapport installed on my system (https://www.trusteer.com/product/trusteer-rapport) and I said yes. They instructed me to Stop Rapport, which is a setting Rapport has, and relaunch Firefox 14.01 and see if the unresponsive script error popup returns and it did not! They then told me to do a complete uninstall (all user settings) and re-download Trusteer Rapport from their website and install again and see if the unresponsive script error popup returns. They said it should not. However after doing a clean reinstall of Trusteer Rapport, however the popups came back :(
    I emailed Trusteer about this issue and I am waiting for a response. Roboform tech support responded after I told them it did not work by saying only that they are aware of the issue with Trusteer Rapport with nothing more said in their email.
    I only know that Trusteer Rapport is a MUST HAVE security software and I have had it for years and it has never caused problems and that the version of Roboform I have is current and was the SAME version that was installed when using Firefox 13.01 and Roboform did not cause these popups in 13.01
    So, this evening, I did another clean uninstall of Trusteer Rapport AND a clean uninstall of Roboform and relaunched Firefox 14.01 and the only unresponsive script error popups where from another add-on extension called WorldIP. No other popups occurred.
    With that being said, I can say that Firefox 14.01 is causing issues and this needs to be fixed asap.
    Thoughts?

  • Script errors on I.E. 11, after updates

       I think these began after the last set of updates.
       I Randomly get different types of script errors when navigating to a new page.    It is NOT reproducible, as subsequent attempts to the same web pages do not always get an error,  or if it does - it's not the same error.    
    Whether I click the 'continue running scripts' YES or NO,  may cause a different error, or it may not..     Clicking past however many errors does NOT seem to affect the page which eventually displays.    
    At times,  it seems to disappear for a few pages, then it's back.
       I downloaded a replacement I.E. 11,  but it tells me that a 'newer' one exists and will not replace it.
       I'm willing to try a replacement,  but how do I clear the existing I.E.?    Or what updates can I remove that may correct this and/or allow me to replace this annoying 'cry wolf' copy?
    Thanks,
    Bob 

    Hi,
    I would suggest you to uninstall the IE and clean the files first.
    To uninstall Internet Explorer
    If you're trying to uninstall Internet Explorer because of an issue with the browser, first check to see if a solution is listed inInternet Explorer 9
    Help and How-to.
    The following instructions apply to both Windows 7 and Windows Vista.
    Click the Start button ,
    type Programs and Features in the search box, and then click View
    installed updates in the left pane.
    Under Uninstall an update, scroll down to the Microsoft Windows section.
    Right-click Windows Internet Explorer 9, click Uninstall,
    and then, when prompted, click Yes.
    Click one of the following:
    Restart now (to finish the process of uninstalling Internet Explorer 9 and restore the previous version
    of Internet Explorer).
    Restart later
    Later goto to the Microsoft  IE download page and install it.

  • Script Error on MS CRM Using IE 10

    We have been running MS CRM 2011 (without the December rollup) for several months and began having new script errors recently.  I tried compatibility mode with no success.  I used F12 in IE and tried the same page in IE 9 mode and it seemed to
    run without errors and otherwise as expected.  Is there another alternative besides going back to IE 9?

    Hi,
    As the issue is related to CRM, I would recommend you visit CRM forum for help:
    Dynamics CRM Forums
    http://social.microsoft.com/Forums/en-US/crm/threads
    Thanks for your understanding and cooperation. Hope the issue will be resolved soon!
    Nicholas Li
    TechNet Community Support

  • All-11-otn4.js - Page Stops responding due to Java script error

    Hi,
    I am getting java script error in all-11-otn4.js. My page becomes unresponisve and I am getting the cause as all-11-otn4.js file. After this error I cannot do any thing in page, I need to restart IE.
    I am navigating from one View state to another View state and then again comming back to original view state. When I am comming back to Original View state, I am getting this error.
    - Sujay

    Hi,
    what you describe doesn't help solving the issue. What do you mean by "I am navigating from one View state to another View state" ? Also it seems that you on a non production version of JDeveloper11 (TP4), so can you pelase try a production version ?
    Frank

  • RH7 compiled topics won't display and throw an IE (syntax) script error

    Pundits,
    I am using RH 7 to create projects of about 600 topics. My OS is Windows XP Pro 2002, SP-3. My problem is that approximately 10% of the topics in my .chm file prompt an IE script error msg when I, or anyone else, tries to open them.
    Here's the error msg:
    When this window displays, user can click on either Yes or No and topic will display normally; the next time a user attempts to open this topic, same error displays, with same Yes/No click behavior.
    When I look at the html for any of the "bad" topics (i.e., topics that won't display), there is always this one extra line of code, referring to the ehlpdhtm.js file in my project folder:
    <script language="javascript" src="ehlpdhtm.js"></script>
    This line is never in the html of the "good" topics.
    Can anyone shed any light on what's causing this, and what I can do to remedy the situation?
    Thanks in advance.
    Dennis

    William,
    I have gone thru my project now and, as I stated in my May 1 mail to you, I have made duplicates of all of the "bad" topics and all of these new topics are now displaying correctly.
    Now I have a related, but different issue.
    Only one topic is causing that same error msg to display (refer to my original April 27 post: IE script error/syntax error; Line 13, character 1).
    The only topic that throws that error msg is the initial topic that displays when the .chm file is opened (i.e., the topic that is specified as the "Default Topic" in the HTML Help Options window when I click the Generate Layout button in the SSL pod.)
    Furthermore, the topic that throws the error message will only do so if it is the one specified as the Default Topic.
    As an example, if I have the topic Apple specified as the Default Topic, when the .chm file is opened the error msg window will display; when the user clicks either Yes or No to the "Do you want to continue running scripts?" query, the Apple topic will display normally. Each time that topic is selected it will throw the same error msg. window.
    If I go back to my project in RH and change the Default Topic to the Pear topic, re-compile the project, when the .chm file is opened the error msg will display; when you click Yes/No the Pear topic will display normally (until it's selected again). The Apple topic now displays fine at all times.
    This tells me that the problem seems not to be with the Apple topic, as I'd suspected, but with something that's going on with RH and how it displays the initial topic in a compiled project. I think.
    Any ideas on how I can remedy this issue?
    Thanks in advance.
    Dennis

Maybe you are looking for

  • Regarding Read report

    Hi all, I have to read a report code along with all include files. Is there any other way besides Read report prg_name into itab. As this is just providing main program source code. I need main program source code along with include file code so that

  • My browser window is fuzzy using Safari

    When i sign in my window looks fuzzy almost pixelated?? other sites are fine... Im using Safari running MacOS 10.6.5 Anybody else -

  • Adobe Reader 11.2.2 does not open on ipad

    When repair Adobe Reader 11.2.2 to open on ipad?

  • How can i learn about nodes

    Hi I am new to Compositing, i dont have any idea about Shake. i am gettin more confuse with nodes and other things. So can any one help me to learn from basics of Compositing and how nodes will work and all. Please........

  • Do you ship to egypt ?

    do you ship macbook pro to egypt ? and what about warranty ? is it available in egypt ?