Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7556799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:57:19+00:00 2026-05-30T11:57:19+00:00

I’m trying to write an Applescript that will make an outgoing Skype call at

  • 0

I’m trying to write an Applescript that will make an outgoing Skype call at times scheduled by received invites from other parties.

I think I’m fine with the script to Skype’s API to make the call, however I’m struggling with iCal with either method of

A) getting the script to run in the background and getting the time of all new events, or

B) getting the event alert to run a one-off script.

The issue with option B) is that although you can set events from within iCal so that the alert runs a script, I need to trigger this from events that have been received.

A typical example would be:

  • All scripts and iCal running on the Host
  • At 10am a User schedules an event (via google cal on portable device) for 3pm** and invites the the Host.
  • At 3pm the script on the Host uses Skype API to make a call to the User.

** this could just as equally be on a date in the future and the requirements still hold.

Many thanks for any advice!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:57:21+00:00Added an answer on May 30, 2026 at 11:57 am

    Since iCal doesn’t have any notifications (some applications do like iChat) you’ll have to run a “stay open” applescript application. Something like this will do it for your “B” scenario. NOTE: you will have to add the path to your applescript file (the one that makes your Skype call) in the “applescriptPath” variable.

    When launched it will get a listing of all the calendar events you have in iCal. It will then run itself every 5 minutes. When it runs it will check the current events against the list of events it originally made. If there are new events then your applescript will be added as an alarm to the new events. This way it keeps track of the current events between runs and only finds the new ones.

    So this script should be a good starting point for you. Remember to save it as a stay-open applescript application. You probably will want to modify it. For example I have it checking every calendar for new events but you may have one particular calendar you want to target. Good luck.

    property storedUIDs : {} -- we use this to check for new events, if an event is not in this list then it is new
    
    global applescriptPath
    
    on run
        set applescriptPath to (path to desktop as text) & "myAlarm.scpt" -- the path to the applescript which is run as the alarm
    end run
    
    on idle
        set newEvents to {}
        tell application "iCal"
            set theCals to calendars
            set allUIDs to {}
            repeat with aCal in theCals
                tell aCal
                    set theseEvents to events
                    repeat with anEvent in theseEvents
                        set thisUID to uid of anEvent
                        set end of allUIDs to thisUID
                        if thisUID is not in storedUIDs then
                            set end of newEvents to contents of anEvent
                        end if
                    end repeat
                end tell
            end repeat
            set storedUIDs to allUIDs
    
            if (count of newEvents) is less than 5 then -- this will prevent the first run of the script from adding the alarm to every event
                repeat with aNewEvent in newEvents
                    -- do something with this new events like add an alarm to run an applescript
                    set theAlarm to make new open file alarm at end of open file alarms of aNewEvent with properties {trigger interval:0, filepath:POSIX path of applescriptPath}
                end repeat
            end if
        end tell
    
        return (5 * 60) -- run every 5 minutes
    end idle
    
    on quit
        set storedUIDs to {}
        continue quit
    end quit
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I need a function that will clean a strings' special characters. I do NOT
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.