Applescript – transferring selected structures to iCal

It’s been a long time ago, we’ve posted an applescript sample. The script for todays’ post was initiated by a user support request. The user knows that Merlin can export or sync project and resource calendars to iCal and already uses these options, however he sometimes need to export only some selected structures to iCal and was wondering how to do so.

One possible approach would be, to right click the specific project structures, call “Save selection” out of the contextual menu, open the newly created project and export to iCal.

Another approach may also be to write a script, similar to the ones we’ve written in the past for TimeLine 3D, Things or others, transferring just this selection.

Are you interested in the script solution? Great, here you are. Enjoy the script.

To find out how to place it into your File > Send To menu, please read here more

9 thoughts on “Applescript – transferring selected structures to iCal

  1. Pingback: Merlin – Creating tasks out of an iCal calendar » MacPM

  2. Pingback: Merlin101: Vorgänge aus iCal-Kalendern erstellen » MacPM.net

  3. Pingback: Merlin – Creating Milestones out of iCal todos » MacPM

  4. HI, this script looks very helpful for Merlin import and by extension to load NovaMind v5 with current reminders since it can not import but only creates new Reminders.

    However, i really need the Notes field added to the script. Often Reminders have a couple of steps to remember in the notes field.

    I am actually hoping Novamind 5 and Merlin does transfer Notes as well.

    Can this be added to the script?

    Thank you!

  5. Hi Hugh.
    feel free to modify the script as you require.
    To ask for Merlin’s note information on the activity, just ask for ‘description’, for example:
    description of act

    In the original script… which writes events into Calendar.app
    you would need to modify the new event creation thus

    set TheNotes to description of act
    tell application “Calendar” to set myevent to make new event at end of mycal with properties {summary:TheTitle, start date:TheDueDate, end date:TheDueEnd, description:”AS-” & TheNotes}

    You are using it into Reminders… so I guess you’ve modified the script to create new reminders in Reminders.app

    I think for Reminders you place notes in the ‘body’ property thus

    tell application “Reminders” to set myevent to make new reminder with properties {name:TheTitle, remind me date:TheDueDate, due date:TheDueEnd, body:TheNotes}

    Best regards, Vicky

  6. I’ve played with Reminders a bit…

    so this is how one could let the script create a new list
    tell application “Reminders”
    get name of lists
    set toCreate to true
    repeat with aList in lists

    if name of aList is TheMerlinProj then
    set theList to aList
    set toCreate to false
    exit repeat
    end if
    end repeat

    if toCreate then set theList to make new list with properties {name:TheMerlinProj}

    end tell

    And here is how one writes new Reminders into the List
    tell application “Reminders” to set myevent to make new reminder in theList with properties {name:TheTitle, remind me date:TheDueDate, due date:TheDueEnd, body:TheNotes}

    To avoid having missing values if not entered Notes in the Merlin activity… you can do following

    set TheNotes to description of act
    if TheNotes is missing value then set TheNotes to “”

    Have fun 🙂

  7. Pingback: Applescript – Transfer selected activities to Reminders »

  8. Pingback: Applescript – Transfer selected activities to Reminders | Project Management Buzz

  9. Pingback: Applescript – Transfer selected activities to Reminders | MacPM

Comments are closed.