• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iCal and getting event name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iCal and getting event name


  • Subject: Re: iCal and getting event name
  • From: pete boardman <email@hidden>
  • Date: Sat, 23 Jul 2005 12:37:35 +0100

On 23 Jul 2005, at 06:21, Patrick Zittle wrote:

Hello all,

I would like to get the name of an event and set it as a variable in a script I am creating, how can I do this. I will probably have this script run as an alarm so if that helps.

You could use the uid of the event, perhaps:

set aUid to ""
tell application "iCal"
    tell calendar 1
        set r to every event whose summary contains "holiday"
        if (count r) > 0 then
            tell item 1 of r
                set aUid to uid
            end tell
        end if
    end tell
end tell

tell application "iCal"
    tell calendar 1
        set r to first event whose uid is aUid
        get r's summary
    end tell
end tell


I don't know if the UID of the event is unique in a single calendar or unique across all calendars...


Pete
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >iCal and getting event name (From: Patrick Zittle <email@hidden>)

  • Prev by Date: Re: Text to speech
  • Next by Date: Re: Text to speech
  • Previous by thread: iCal and getting event name
  • Next by thread: Text to speech
  • Index(es):
    • Date
    • Thread