Re:Startup Items applets problem
Re:Startup Items applets problem
- Subject: Re:Startup Items applets problem
- From: <email@hidden>
- Date: Fri, 16 Mar 2001 13:28:22 +1300
on Thu, 15 Mar 2001 14:52:16 Joel Davies wrote
>
Howdy, folks. For several years, I9ve had the two applets shown below in my
>
Startup Items folder. Both are intended to perform actions only on the first
>
boot of the day, not subsequent boots, and they activate in the order shown
>
below. The second launches my email client.
>
>
Both these applets worked flawlessly up to OS 8.6. Now, having just upgraded
>
to OS 9.0, I9m having a weird startup freeze that occurs every other boot!
>
Removing the second applet from Startup Items cures this behavior.
>
>
Anybody know why OS 9, AppleScript 1.4.3, would cause these applets to break
>
in this manner? Or is my amateur scripting the problem?
>
And the second applet is:
>
-------------------
>
property stored_date : date "Tuesday, May 18, 1999 12:00:00am"
>
if date string of (current date) date string of stored_date then
>
activate application "Outlook Express"
>
end if
>
set stored_date to current date
>
-------------------
I can't see how that would have ever worked Joel, try this:
-------------------
property stored_date : ""
try --handle empty stored_date
if date string of (current date) > stored_date then
tell application "Outlook Express" to activate
end if
on error
end try
set stored_date to date string of (current date)
-------------------
___ Andy
----------------------------------------------------------------------------
aaaah! a yodle from the canyon (a reference to--Yoda(on error handling))
----------------------------------------------------------------------------