"by the way: is there a way to check whether a variable is defined in Applescript???"
Change:
set eBayCal to (the first calendar whose title is "eBaytoiCal")
set createEbayCal to true
try
set xx to eBayCal
set createEbayCal to false
end try
-- by the way: is there a way to check whether a variable is defined in Applescript???
if (createEbayCal) then
make calendar at end of calendars with properties {writable:true, description:"eBaytoiCal", title:"eBaytoiCal"}
set eBayCal to last item of calendars
end if
to:
-- by the way: here is a way to check whether a variable is defined in Applescript!!!
try
set eBayCal to (the first calendar whose title is "eBaytoiCal")
set createEbayCal to false
on error
set createEbayCal to true
end try
if (createEbayCal) then
set theCalendar to make new calendar with properties {title:"eBaytoiCal", description:"eBaytoiCal"}
set eBayCal to last item of calendars
else
set eBayCal to last item of calendars
end if
eBaytoiCal
Auto-create iCal events from eBay listings.
Version: 4.4
Help the script make iCal 3.0.1 (Leopard) create the new calendar
Feedback Type: Usage Tip
Contributed by: throost Thursday, January 03 2008 @ 12:52 PM PST
Product Platform: MacOSX
Used Product For: Less than a month
Recommend Product: YES
Comments
No user comments.