Applescript in iCal

I had an Applescript event that ran every night as an event in iCal that muted my speaker on my MacBook. It was followed in the morning by a similar Applescript iCal event that unmuted the speaker.  The reason for this is that I didn't want to hear Mail notifications and my date and time clock to announce the time every hour over night, but wanted them to work during the day.
The scripts were:
set volume with output muted
and
set volume without output muted
They were set in iCal as repeated events and under the Alert: Run Script portion to run a minute before the time I set for the event.
Since I've upgraded from Snow Leopard to Lion, iCal does not do these scripts, so the sound remains either on or off depending on where it is at night. My computer is timed to shut itself off at night and on in the morning (after and before those scripts should activate)
Any suggestions as to how to get this to work.

Hi Dan,
To do this with Applescript is not as easy as it should be. Here is a script originally posted by Austin Kinsella1 a few years ago  (see Re: iCal Alarm - Pass Event data to AppleScript? ). I cannot check if it works on the current iCal, but I believe it will.  I would modify it to only look in the calendar I know the events will be in.
Best wishes
John M
called from iCal as on alarm, will speak the title of the alarm event
won't work for repeating events
AK ITCarlow Nov 2004
set Now to current date
-- Adjust FuzzSeconds to suit; if too big, close events will speak several times
set FuzzSeconds to 15
tell application "iCal"
          set MyEvents to every event of every calendar where ((start date of it) ≥ (current date))
          repeat with ThisEvent in MyEvents --scan the list looking for events that have triggered us
                    try
                              set MinutesBefore to (trigger interval of open file alarm of ThisEvent) as number
                              set TriggerInt to (Now - ((start date of ThisEvent) + 60 * MinutesBefore)) --notionally 0 for firing event
                              if (TriggerInt < FuzzSeconds) and (TriggerInt > (-FuzzSeconds)) then
                                        say (summary of ThisEvent as text) & " at " & (start date of ThisEvent as text)
  -- ThisEvent should a reference to the event,
  -- so you should be able to get the start date from it.
  -- You may want to do some checking first.
                              end if
                    end try
          end repeat
end tell

Similar Messages

  • Adding all day events using applescript to ical

    Hey all. I am new to using applescript. Thanks to some top users i have been able to get excel events file transfered into ical.
    I need help with the applescript for changing these events from time duration to all day.
    tried
    set the start time to 00:00 and end time to 24:00 and
    set all-day to true
    any help would be greatly appreciated!!
    thanks.

    I have the exact same problem. I have entered birthdays for people I know starting with the year of their birth and never ending, an all-day event. They now don't show in 2007, but there is a detached event on January 1, 2000. When I delete that event and all subsequent versions of it, the initial event now ends in 2006 or 2007, and I have to set the repeat to end Never again. I fixed all the ones from February that showed up. Now I notice that a huge amount of the other birthdays (all day events) that I have entered are doing it now, and we are talking well over 40 of them. I don't understand why it keeps creating these detached events. I also publish my calendars, if that makes any difference.

  • Applescript with iCal

    Hi All,
    I'm trying to write an applescript to dump those events from a calendar that lie between today and a future date I specify. For each event, on a single line I want two tab separated values - the date and the event summary.
    Here's what I came up with -
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    #!/usr/bin/osascript
    on run argv
    set so to ""
    tell application "iCal"
    set endDate to (AppleScript's date (item 2 of argv))
    set curDate to (current date)
    set curDate to curDate - (time of curDate)
    repeat with e in (every event in calendar (item 1 of argv) ¬
    whose (start date) is greater than or equal to curDate ¬
    and (start date) is less than or equal to endDate)
    if so is not "" then set so to so & "\n"
    set so to so & (short date string of AppleScript's date (start date of e)) & "\t" & (summary of e)
    end repeat
    end tell
    end run
    </pre>
    This works as long as I do not use "short date string of AppleScript's date". However when I try to get the short date string i get this error -
    <pre>
    [puneet@bluestreak scripts]$ ./iCalEvents.AppleScript personal 4/3
    ./iCalEvents.AppleScript:444:461: execution error: Can’t make short date string of date (date "Saturday, March 28, 2009 12:00:00 AM") into type Unicode text. (-1700)
    </pre>
    Can someone point out what am I doing wrong ? (I know AppleScript only since yesterday :P)
    thanks in advance,
    regards,
    Puneet

    I'm just guessing, but I'll say that you're being too verbose.
    set so to so & (short date string of AppleScript's date (start date of e)) & "\t" & (summary of e)
    (start date of e) is already a date object, so there's no need to coerce it to another date object, and there's certainly no need to coerce it to "AppleScript's date".
    So I'd suggest:
    set so to so & (short date string of (start date of e)) & "\t" & (summary of e)

  • Using applescript with iCal

    I have been using an applescript to create a unique combo of new events over the course of a school year for multiple people. I run the script to make a new events in an untitled calendar, export the calendar and then create a new untitled calendar and run it again. 60 or so different times, all with unique combos. I've posted this question to the Applescript forum with no replies, and thought I'd try here. My issue is that when iCal starts to make new events it begins at somewhat arbitrary dates, cycles through the whole year correctly, but jumps around in such a way that it seems to really bog the script down. Now maybe it is a script issue, although this script has worked correctly in the past. Maybe it is a permissions/cache issue (I've run Onyx and it helps with the speed). Currently it is starting to make new events on the 26th of Oct when the year foes from sept 7,2010 to June 7 2011. I'm convinced that I can get that 26th of Oct to change by trashing the cache or something (I'll work on that), a simple restart does not influence it. The script in the end does work, so maybe I'm troubleshooting something that is minor, but I'd love to know the answer! Thanks for the help.
    dan

    So I ran the automation tab of Onyx to repair permissions, execute maintenance scripts, clean the cache... and now when the applescript runs it makes the first new event on a different date than Oct 26...(don't quite remember right now what it is). The question is what is controlling this...??? ARGH
    dan

  • AppleScript opens iCal event, but prompt to add event doesn't pop up

    Ok, so I have a script that I cobbled together from other sources to do the following:
    It will read an emailed iCal event and look for the "ORGANIZER" line and delete it, after which it opens iCal and adds the event to whichever calender i choose. I made it a droplet app and also an application bundle so that i could set it as my default app for .ics files. I need this because of some strange happenings when dealing with CalDEV, if the ORGANIZER line is present, people can't add the events in iCal.
    Here's the problem, the script functions exactly the way i want up until opening iCal. iCal opens, but the prompt asking which calendar you'd like to add the event to never appears, or rather the prompt only appears after i've clicked away from iCal. So if iCal opens, and I stay on it, every click following is just answered by a beep (which is the, "there's an alert window open, and you need to respond to it" beep, but it isn't until i click away from iCal that the prompt appears.
    here's the script:
    property pTypeList : {".ics"}
    on open processItem
    set SomeFile to (processItem)
    set SomeText to (read SomeFile)
    set {SearchText, ReplaceText} to {"ORGANIZER", ""}
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, SearchText}
    set {TextItems, AppleScript's text item delimiters} to {text items of SomeText, ReplaceText}
    set {SomeText, AppleScript's text item delimiters} to {TextItems as text, TempTID}
    set OpenFile to open for access SomeFile with write permission
    try
    set eof of OpenFile to 0
    write (SomeText) to OpenFile as text
    close access OpenFile
    end try
    tell application "iCal" to open SomeFile
    end open
    If i change the last tell line to have "Finder" open SomeFile, the droplet works fine, but I can't set the script as a default app since it will get stuck in an endless loop. I myself don't mind have to drag the events to the script, but i wrote this for people in my office, and the less they have to do the better.
    I'm not sure of the problem has anything to do with the script but any suggestions would be greatly appreciated and thanks ahead of time.

    Hi,
    I think you'll need to tell iCal to 'activate' or the dialog window gets stuck behind iCal's main window.
    Something like:
    tell application "iCal"
    activate
    open SomeFile
    end tell
    Best wishes
    John M

  • Applescript and iCal

    Hi,
    I'm new to Applescript and have a litte problem with iCal. In my script I want to get a list of all summaries of a iCal calendar. But for some reasons I want to set all events to a variable first and get the summary of all events from this variable (and not directly from iCal). I tried it in this way:
    tell application "Calendar"
              set sumList to summary of events of calendar "Sync"   -- works fine, result is a list of all summaries
              set calList to events of calendar "Sync"                         -- works fine, result is a list of claendar events
              set sumList1 to get summary of every item of calList -- doesn't work (error 1728)
    end tell
    Any ideas why the 3rd line doesn't work?

    You can get more than one property at a time (in the same loop).  For example, the following, will give you a list of lists (with a sublist for each event which contains the summary, start date, end date, uid).  However, if you explain what you are trying to do, there may be a better way.
    tell application "Calendar"
              set calList to events of calendar "XX"
              set propList to {}
              repeat with calEvent in calList
          copy {summary, start date, end date, uid} of calEvent to end of propList
      end repeat
    end tell
    propList

  • Applescript: Make iCal entry from Numbers spreadsheet

    I use a spreadsheet to book all my photography shoots. The columns (name, phone, email, job date, job time, job address, job city, services, notes) are inputted each time a client calls to book a shoot.Once they are booked, I create a new iCal entry for the "job date" with the title name being a slimmed down version of the services (ie, the client might have wanted photos, virtual tours, and prints, but for on site work, given that I will not be printing anything, I leave out the print from the title). So the final title might look like this: "photos, virtual tours @ 3pm". I also add the full address including the city into the iCal "location" field (just below the title field). Then I'll make sure that the date and time correspond to the spreadsheet. Next, I'll set it to a calendar I have made for these bookings. Finally, I'll add the services and notes to the "note" field at the very bottom of the iCal entry. Then click DONE.
    Can someone help me write a simple script that would read a preselected row in the numbers spreadsheet and, once initiated, would create a new iCal entry? Thank you.

    Thanks John. Yes, so I edited it a bit and made a few minor changes (basically adding some info to the notes section in the iCal entry). I've posted the code below. A couple minor tweaks would make this perfect: First, I'd prefer to simply selected one of the cells on a given row and then run the script--at that point the script would know to copy that entire row. I know this is possible because I have a script that does this... I'm just not sure how to integrate that part of the script with yours. I've posted the script below yours.
    Second, I'd like iCal to open the newly added entry so I can have a quick review of it. Currently there's no indication that it's been added and, which iCal does appear to initiate (if it was closed down), it does however remain in the background.
    Your script (with some mods):
    set myCal to "TEST" -- calendar name
    set myLength to 2 -- hours
    set myItems to my cjmTIDs(the clipboard, tab)
    if (count of myItems) is less than 12 then return
    set jobDate to date (item 4 of myItems)
    set timeArray to my numberFromHourText(item 5 of myItems)
    set hours of jobDate to (item 1 of timeArray)
    set minutes of jobDate to (item 2 of timeArray)
    set jobEnd to jobDate + (myLength * hours)
    set myTitle to (item 1 of my cjmTIDs((item 11 of myItems), "prints"))
    set myNotes to "Client: " & (item 1 of myItems) & return & return & "Tel: " & (item 2 of myItems) & return & return & "Services: " & (item 11 of myItems) & return & return & "Notes: " & (item 12 of myItems)
    set myURL to (item 3 of myItems)
    set theAddress to (item 6 of myItems) & ", " & (item 7 of myItems) & ", " & (item 8 of myItems)
    tell application "iCal"
              set myNewEvent to make new event at the end of events of calendar myCal with properties {start date:jobDate, end date:jobEnd, summary:myTitle, location:theAddress, url:myURL, description:myNotes}
    end tell
    on cjmTIDs(theText, theDelim)
              set my text item delimiters to theDelim
              set myList to text items of theText
              set my text item delimiters to {""}
              return myList
    end cjmTIDs
    on numberFromHourText(theText)
              set theParts to my cjmTIDs(theText, ":")
              if (count of theParts) is 2 then
                        set myHours to item 1 of theParts as number
                        set myMins to ((characters 1 thru -4 of item 2 of theParts) as text) as number
              else
                        set myHours to ((characters 1 thru -4 of theText) as text) as number
                        set myMins to 0
              end if
              if character -2 of theText is "p" then set myHours to myHours + 12
              return {myHours, myMins}
    end numberFromHourText
    The other script that I mentioned (the one that knows to copy the entire row by just selecting a cell):
    set theTemplate to POSIX file "/Users/Peter/Library/Application Support/iWork/Numbers/Templates/My Templates/TEST.nmbtemplate"
    tell application "Numbers 09"
              tell table 1 of sheet 1 of front document
                        set theValues to value of cells of row 1 of selection range
              end tell
      open theTemplate
              tell table 1 of sheet 1 of front document
                        set value of cell "A1" to item 1 of theValues
                        set value of cell "A2" to item 2 of theValues
                        set value of cell "A3" to item 3 of theValues
              end tell
              tell table 2 of sheet 1 of front document
                        set value of cell "B1" to item 6 of theValues
                        set value of cell "B2" to item 7 of theValues
                        set value of cell "B3" to item 4 of theValues
                        set value of cell "B4" to item 11 of theValues
                        set value of cell "D1" to item 38 of theValues
              end tell
              tell table 3 of sheet 1 of front document
                        set value of cell "A2" to item 11 of theValues
                        set value of cell "B2" to item 13 of theValues
              end tell
              tell table 5 of sheet 1 of front document
                        set value of cell "B2" to item 34 of theValues
                        set value of cell "B3" to item 14 of theValues
              end tell
              tell table 7 of sheet 1 of front document
                        set value of cell "B3" to item 30 of theValues
              end tell
              set R to display dialog "Save a PDF version of the invoice?" buttons {"No", "Yes"} default button 2 with icon 1
              if button returned of R is "Yes" then -- GUI Scripting:
                        tell application "System Events" to tell process "Numbers"
      click menu item "Print…" of menu 1 of menu bar item "File" of menu bar 1
                                  set theWindowName to name of window 1 whose subrole is "AXStandardWindow"
                                  tell sheet 1 of window theWindowName
                                            if value of checkbox -1 is 0 then click checkbox -1 -- to show all the settings
                                            set value of text field 3 to "1" -- number of copies = 1
      click radio button "From:" of radio group 2 -- button “From:”
                                            set value of text field 2 to "1" -- from page 1
                                            set value of text field 1 to "1" -- to page 1
      click radio button 2 of radio group 1 -- current sheet
                                            if value of checkbox 2 is 1 then click checkbox 2 -- to not include a list of all formulas
      click menu button "PDF"
                                            click menu item "Save as PDF…" of menu 1 of menu button "PDF"
                                  end tell
      keystroke "Invoice" -- document name
      keystroke "d" using command down -- save to desktop
                                  set value of text field 3 of group 1 of window 1 to "Invoice" -- title
                                  set value of text field 4 of group 1 of window 1 to "Stone Home Photo & Video" -- author
                                  tell window "Save"
                                            click button "Save"
                                            if sheet 1 exists then click button "Replace" of sheet 1
                                  end tell
                        end tell
              end if
      close front document saving yes
    end tell

  • Email alarm problem:  Blank "To:" field on email, but only when iCal open

    If iCal.app is closed, my email event alarms are working fine.
    However, if iCal.app is open, when it comes time to open up mail.app and send the event alarm email, the "To:" field on the email is left blank, and results in a Mail error that the message can not be sent.
    The only other reference I could find in the forums to a similar problem was a claim that installing GroupWise can interfere with the script that iCal uses to fill in the To: field on the email, but I have never installed Groupwise (at least i dont remember ever installing it, and can't find any traces of Groupwise on my system), and the fact that it all works when iCal is closed , but not when iCal is open, has me stumped.
    Any suggestions?
    Thanks..
    Ian
    Ottawa, Canada
    iBook 600Mhz, 12", Combo Drive, 640 RAM   Mac OS X (10.4.7)  

    Hi Ian,
    There is a different application that sends the emails when iCal is closed. It is called iCal Helper and is contained in the iCal application. iCal and iCal Helper use copies of the same Applescripts to send the emails to Mail.app. Your problem could stem from the Applescripts in iCal being corrupted in some way.
    Before trying what I am about to suggest, make an archive of your iCal application (Control-Click it in Finder and select Create Archive of "iCal") and keep the iCal.zip file safe. Better safe than sorry.
    You could try copying the Applescripts from the iCal Helper package into the iCal package.
    To do this:
    1. Control-Click on the iCal application and choose 'Show Package Contents' from the contextual menu. A new window will open with one folder called Contents in it.
    2.Open Contents and then the folder inside called Resources.
    3. In Resources you will find the iCal Helper application (you may find this easier using column view). Control-Click iCal Helper and select 'Show Package Contents'. Another window will open with a folder called Contents in it.
    4. Move the windows so you can see both the Resources window and the window opened in the last step.
    5. Open the Contents folder, and then the Resources folder inside this.
    6. Inside iCal Helper's Resources folder you will find five files called: Mail.scpt, Mail.applescript, mailInfoScript.applescript, mailInfoScript.applescript, mailScript.applescript and mailScriptWithAttachment.applescript. These files should be copied into iCal's Resources folder.
    7. Select the five files and press Command-C to copy them.
    8. Select the iCal's Resources folder in the other window and press Command-V. You will see a confirmation window asking if you really want to repace the files.
    9. Close both windows and your done.
    If you have any problems revet to the zipped copy of iCal.
    An alternative to this would be to do a custom install of iCal from your installation disk and applying the combo update to 10.4.7.
    Let me know how it goes.
    Best wishes
    John M

  • Removing "Shutting down" dialog box in Energy Saver mode?

    I've got an iMac using 10.4.11 running as a kiosk to play a DVD in an exhibit we have. Using the energy saver panel I can set it to start up and shut down at appropriate times. But about 5 minutes prior to shutting down there is a dialog box that pops up saying "This computer is scheduled to shut down in X minutes." It has the radio buttons to "shut down now" or "cancel," but is there anyway to remove the warning entirely? Since I've already scheduled it to shut down I don't want it to tell me it's doing what I told it do do and the box covers the screen while it's running.
    Thanks in advance for any suggestions!
    Patrick

    You might be able to schedule an Applescript via iCal to do the shutdown.
    There's a possible Applescript listed here:
    http://www.macobserver.com/tmo/forums/viewthread/3605/#36954
    and some advice about using iCal for running scripts here:
    http://www.hawkwings.net/2005/12/09/make-an-ical-event-run-an-applescript/
    I'm not very familiar with this sort of thing, and I don't know if it would work.

  • How can I add different sounds for the alarm?

    This seems simple, and I thought something lots of others would have asked about, but I can't find any threads on it. I tried elsewhere and so far all I have come up with is an Applescript called, "iCal Calling iTunes." It works but... I just want to add to the list of default alert sounds.

    Hi Noodle-head,
    To add more sounds to the list, add .aiff (and possibly other sound format) files to your user's Library>Sounds folder. Not a particularly obvious process.
    Best wishes
    John M

  • Two bugs when trying to mail events

    Bug #1: When I right click on an event and choose "Mail Event", the mailed event attachment (.ics file) has no time information in it, which means that it is completely useless to anyone. This happens for any events I create in iCal.
    If I open the .ics file in a text editor, this is all it contains:
    BEGIN:VCALENDAR
    *X-WR-CALNAME:ASMGCS My Meeting*
    *PRODID:-//Apple Inc.//iCal 3.0//EN*
    CALSCALE:GREGORIAN
    VERSION:2.0
    METHOD:PUBLISH
    END:VCALENDAR
    Bug #2: Also when mailing an event, the email body message reads: "(null) informs you of the event: My Meeting, scheduled for 21 April 2008 at 08:00. To add it to your calendar, click the link below".
    Why does it start with "(null)" instead of my name (or at least something appropriate) and why is there no line break before the attachment. The attachment icon immediately follows the message, without even a space, which looks really ugly.
    Are these actually bugs, or have I got some settings wrong somewhere (in which case, I'll get ready to eat some humble pie)?

    Bernard Harte wrote:
    #1 May be a bug as mine works as expected.
    #2 The null may be because you don't have your card selected in Address Book: select it and choose Make this My Card from the Card menu. The attachment icon is where you describe it to be. If you don't like it, the only option would be to send feedback to Apple. Actually, this is not quite true: there is likely a way of altering the AppleScript that iCal is using to control Mail, but this would get overwritten each time iCal was updated and is probably not worth messing around with.
    See if my suggestion to #2 works. If it does, but the .ics still doesn't contain full data there are some further steps that I can suggest.
    Wow. As soon as I read your reply, I knew it was going to fix bug (or rather, issue) #2, but in fact it solved the whole thing! I just switched to a new iMac recently and had never spotted that I hadn't set a "My Card" in Addressbook.
    Thanks!

  • Webcam streming using QTSS

    Hello,
    it is possible to setup a webcam streaming using apple QTSS from the server admin?
    could some one please guide me through it.
    thanks!
    Sumomo

    You probably should look into QuickTIme Broadcaster instead. If you have a firewire video source, you can stream using this software. It's free, easy to use and streaming can be scheduled using Applescript and iCal events and alarms. It may take a little experimenting to find the right quality/codec settings but you can save a preset when you get it working and it will work every time. I love QuickTime.... I love QuickTime Broadcaster more!

  • Applescript to suck ical dates into iweb

    I was referred to this forum from the iweb forum (http://discussions.apple.com/thread.jspa?threadID=2513935&tstart=0).
    Here's what I would like to do: I am an athletic director and would I have entered all of my school's athletic contests into iCal. I would like to set up something in which iWeb can pull the events out of iCal (I have mobileme) into a "week at a glance" type of display on our athletics page (made with iweb). Ideally it would automatically update so that as events are completed, the next events would show up. I don't want to embed a calendar.
    I want something that looks like the table on the right of this page: www.twu.ca/athletics.
    Is there an applescript that could help me pull dates from iCal into a text box in iWeb?

    Hi,
    You may be able do this with an Applescript. However there is not enough information supplied to know.
    How are ther events formatted in iCal? Do they contain the full name of the person? Do they say how old they are? Are the people already in Address Book, or would they all be new cards?
    Best wishes
    John M

  • Error deleting events in iCal using applescript

    Hi,
    I made a little applescript to insert and remove a roster in iCal for me and my collegues.
    While the script to remove a roster works fine on my computer, others are getting an error:
    see Link: [http://i359.photobucket.com/albums/oo31/Bronco_Dappe/Allerlei/Afbeelding1.png]
    [the error contains some strange characters but in general it says:
    "can not get class ... of event id ... of calendar id ..."]
    My applescript to delete the roster is:
    on run {CalendarName, Start, Eind, Prefix}
    -- Start and Eind format:
    -- int(day) int(month) int(year) int(hour) int(minutes)
    -- ===============================
    on run
    set CalendarName to "MP"
    set Start to "15 10 2009 00 00"
    set Eind to "17 10 2009 23 59"
    set Prefix to "MP:"
    -- Version 3.0
    -- ========
    -- Changed format of Start & Eind to be compatible with Snow Leopard
    -- convert DateStart
    set wordsplit to (words in Start)
    set DateStart to (current date)
    set year of DateStart to (item 3 of wordsplit)
    set time of DateStart to 0 -- reset time
    set day of DateStart to 1 -- prevent february 31
    set month of DateStart to (item 2 of wordsplit)
    set day of DateStart to (item 1 of wordsplit)
    set DateStart to DateStart + ((item 4 of wordsplit) * hours + (item 5 of wordsplit) * minutes) -- set time
    -- convert DateEind
    set wordsplit to (words in Eind)
    set DateEind to (current date)
    set year of DateEind to (item 3 of wordsplit)
    set time of DateEind to 0
    set day of DateEind to 1
    set month of DateEind to (item 2 of wordsplit)
    set day of DateEind to (item 1 of wordsplit)
    set DateEind to DateEind + ((item 4 of wordsplit) * hours + (item 5 of wordsplit) * minutes)
    tell application "iCal"
    set TargetCalendar to first calendar whose title is CalendarName
    set list2bDeleted to {}
    set list2bDeletedSum to {}
    set listEvents to every event of TargetCalendar
    repeat with singleEvent in listEvents
    if summary of singleEvent starts with Prefix then
    set eventstart to start date of singleEvent
    if eventstart ≥ DateStart and eventstart ≤ DateEind then
    if summary of singleEvent starts with Prefix then
    copy uid of singleEvent to end of list2bDeleted
    copy summary of singleEvent to end of list2bDeletedSum
    end if
    end if
    end if
    end repeat
    repeat with eventUID in list2bDeleted
    delete (every event of TargetCalendar whose uid is eventUID)
    end repeat
    end tell
    return list2bDeletedSum
    end run
    In general the script works like this:
    1. it goes over events in a specified calendar
    2. all events to be removed are added to a delete-list by id
    3. all events in the delete-list are removed using this id
    it seems step 3 creates a problem.
    any suggestions here?
    ghislain
    Message was edited by: ghis74

    Once I got access again to an apple with Leopard I solved the problem.
    The applescript was saved in Snow Leopard.
    When opened in Leopard 'uid' in 'copy uid of singleEvent to end of list2bDeleted' was changed into '<<class>>' : 'copy <<class>> of singleEvent...'.
    Quite strange - but correcting and saving the script in Leopard solved the problem.
    Thanks for your help.
    Ghislain

  • ICal applescript "view calendar"

    When I run the following applescript
    tell application "iCal"
    view calendar at date "Thursday, June 19, 2008 4:00:00 PM"
    end tell
    iCal moves to Thursday, but when I run
    tell application "iCal"
    view calendar at date "Thursday, June 19, 2008 5:00:00 PM"
    end tell
    it moves to Friday..
    I'm guessing it is one of the bugs relating to the timezone management within iCal? (I'm in California)
    Is it just me and my computer or is this actually a bug?

    Is it just me and my computer
    No. Click here and fill out the form.
    (33000)

Maybe you are looking for

  • URGENT..How to Run Cash Flow Report.

    How do I run the cashflow report. I opened the cash flow report by going in t.code S_ALR_87012272. I entered the co. code and the g/l accounts, and the fiscal year and executed the report. But it opened a screen with no records found, although the g/

  • How to change the position of a notation from treble to bass clef?

    hi there, i am trying to print out a score from GB '08 that looks more like a piano score (with red hand notes on the treble clef and left hand notes on the bass clef) but can't seem to find a way to do it. can anyone help? thanks!

  • How to put pictures in the same size (adjustment) ?

    Good afternoon everyone I have a problem. I did a fla with 3 components images (loader), and a button. I would like to know what code would use so that when I click on the button I load the 3 images but adjustable, is said to be in the same size. Whe

  • Collaboration Launch Pad With Error.

    Hi Friends....           I have error when i click the team members to send a message like System Error An exception occurred during the program execution. Below you will find technical information pertaining to this exception that you might want to

  • Certificates using serial numbers with material without batch assigned

    Hi experts...how can i track serial numbers and inspection lots from roh material without batch assign but with serial numbers ? these roh materials were used in PO without batch assign to FERT material yet. Is possible use where-used list only to ma