Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Is iCal Scriptable?

Is iCal Scriptable?
Thread Tools
moonmonkey
Professional Poster
Join Date: Jan 2001
Location: Australia
Status: Offline
Reply With Quote
Jul 31, 2002, 01:35 AM
 
Does anybody know the answer?
     
Camelot
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Aug 15, 2002, 03:56 AM
 
Originally posted by moonmonkey:
Does anybody know the answer?
I'm NOT speaking from experience of running iCal (I don't have it yet), but I can say that it's an Apple app.

Therefore the chance of it being scriptable is NEXT TO NONE.

Apple have a HORRENDOUS reputation of supporting AppleScript in their own applications.

I'd love to be proven wrong, but history is on my side.
     
Nebagakid
Mac Elite
Join Date: Sep 2000
Location: 'round the corner
Status: Offline
Reply With Quote
Aug 15, 2002, 11:57 AM
 
Oh yeah, Mail and TextEdit are not scriptable at all!
     
bewebste
Senior User
Join Date: Mar 2000
Location: Ithaca, NY
Status: Offline
Reply With Quote
Aug 15, 2002, 12:29 PM
 
Well, looking at the pattern of previous iApps, I wouldn't get my hopes up. iTunes wasn't scriptable until version 2.0, iPhoto isn't scriptable, iDVD just became scriptable with the latest update, and iMovie isn't scriptable. iSync might be simple enough to have scriptability in the first version. iCal would have a pretty complicated data model and be harder to make scriptable. My prediction is that iCal 1.0 will not be scriptable and then they will add that for version 2.0.
     
TheGuru
Fresh-Faced Recruit
Join Date: Sep 2000
Status: Offline
Reply With Quote
Aug 15, 2002, 11:55 PM
 
Originally posted by bewebste:
Well, looking at the pattern of previous iApps, I wouldn't get my hopes up. iTunes wasn't scriptable until version 2.0, iPhoto isn't scriptable, iDVD just became scriptable with the latest update, and iMovie isn't scriptable. iSync might be simple enough to have scriptability in the first version. iCal would have a pretty complicated data model and be harder to make scriptable. My prediction is that iCal 1.0 will not be scriptable and then they will add that for version 2.0.
The Macworld New York Build is Scriptable:

iCal suite: WhiteRabbit specific classes.

GetURL: Open a webcal: or http: for a remote calendar
GetURL reference -- the object for the command

reschedule: Reschedules an event to a different start date
reschedule reference -- the object for the command
to date -- the event new start date

create calendar: Creates a new calendar
create calendar reference -- the object for the command
[with name Unicode text] -- the calendar new name

Class calendar: This class represents a calendar
Plural form:
calendars
Elements:
event by numeric index, before/after another element, as a range of elements, satisfying a test
todo by numeric index, before/after another element, as a range of elements, satisfying a test
Properties:
<Inheritance> item [r/o] -- All of the properties of the superclass.
writable boolean [r/o] -- If this calendar is writable
description Unicode text [r/o] -- This is the calendar description.
color Unicode text [r/o] -- The calendar color
title Unicode text -- This is the calendar title.
key Unicode text [r/o] -- An unique calendar key

Class application: This class represents iCal.
Plural form:
applications
Elements:
calendar by numeric index, before/after another element, as a range of elements, satisfying a test
document by name, by numeric index, before/after another element, as a range of elements, satisfying a test
window by name, by numeric index, before/after another element, as a range of elements, satisfying a test, by ID
Properties:
<Inheritance> application [r/o] -- All of the properties of the superclass.

Class todo: This class represents an todo
Plural form:
todos
Properties:
<Inheritance> item [r/o] -- All of the properties of the superclass.
sequence integer -- The todo version
due date date -- The todo due date
summary Unicode text -- The todo summary
completion date date -- The todo completion date
priority integer -- The todo priority
stamp date date [r/o] -- The todo last stamp date
uid Unicode text [r/o] -- An unique todo key

Class event: This class represents an event
Plural form:
events
Properties:
<Inheritance> item [r/o] -- All of the properties of the superclass.
start date date -- The event start date
sequence integer -- The event version
description Unicode text -- This is the event description.
stamp date date [r/o] -- The event last stamp date
recurrence Unicode text -- The iCAL string describing the event recurrence, if defined
status none/cancelled/tentative/confirmed -- The event status
summary Unicode text -- The event summary
end date date -- The event end date, if defined
uid Unicode text [r/o] -- An unique event key
     
TheGuru
Fresh-Faced Recruit
Join Date: Sep 2000
Status: Offline
Reply With Quote
Aug 15, 2002, 11:57 PM
 
So have the Apple Bashers stopped whing about iCal not being scriptable, yet???


     
alphamatrix
Senior User
Join Date: Jul 2001
Location: Mount Vernon, WA
Status: Offline
Reply With Quote
Aug 16, 2002, 03:43 AM
 
Originally posted by TheGuru:
So have the Apple Bashers stopped whing about iCal not being scriptable, yet???


Yeah now their whining about how iChat dosnt have applescript support, i sure wish it did think of the possibilities!
     
Angus_D
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Aug 18, 2002, 05:34 AM
 
Originally posted by alphamatrix:
Yeah now their whining about how iChat dosnt have applescript support, i sure wish it did think of the possibilities!
You have got to be joking.
*** Angus_D shudders at the thought of all the spamscripts.
     
Nebagakid
Mac Elite
Join Date: Sep 2000
Location: 'round the corner
Status: Offline
Reply With Quote
Aug 18, 2002, 02:10 PM
 
Originally posted by Angus_D:


You have got to be joking.
*** Angus_D shudders at the thought of all the spamscripts.
I am thinking about being able to do a SmarterChild kind of thing...

where you get the text from the sender, put it through some filters, and push out a response...it would be a good advanced away message kind of thing

Friend: Hey bud what is up?
You: Sorry,I am not at my computer now, but maybe my computer can help you, what do you need?
Friend: Your cell phone number
You: (getting cell phone number from open directory address book)
You: 1-555-555-5555


what? it is possible!
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:21 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,