Existing users, log in.  New users, create a free account.  Lost password?

Mac OS X  |  Internet  |  Other Internet  |  eBaytoiCal  |  Help the script make iCal 3.0.1 (Leopard) create the new calendar

eBaytoiCal

eBaytoiCal

Auto-create iCal events from eBay listings.

Version:  4.4

   [ Views: 647 ]

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

"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

  

Rate this Usage Tip

Was this Usage Tip helpful? Yes | No

Comments

0 comments |

No user comments.