Re: removing an alarm in Palm Desktop
Re: removing an alarm in Palm Desktop
- Subject: Re: removing an alarm in Palm Desktop
- From: Chris Page <email@hidden>
- Date: Tue, 10 Feb 2004 01:24:03 -0800
On Feb 9, 2004, at 17:37, Scott Calabrese Barton wrote:
Any suggestions how to remove an alarm from an event in Palm Desktop?
Set the alarm value to 'missing value'.
I can use
tell application "Palm Desktop"
set selitem to selection
get alarm of item 1 of selitem
end tell
To obtain the alarm time of a selected event, returning the string
"missing value" if no alarm is set. But none of the following work to
*unset* or remove the alarm:
set alarm of item 1 of selitem to "missing value"
'missing value' is not a string. In AppleScript, it looks like this:
set alarm of item 1 of selitem to missing value
set alarm of item 1 of selitem to 0
set alarm of item 1 of selitem to false
Just to clarify, neither of those are valid values for an alarm. As it
says in the Palm Desktop terminology dictionary, the alarm value is the
number of seconds before the event occurs, or 'missing value' if there
is no alarm. In fact, due to historical reasons it must be at least one
minute, which is, of course, 60[*]. 'false' is simply not a valid
value, being neither a number nor 'missing value'.
(I implemented the Palm Desktop scripting support, by the way.)
[*] If it were supported, setting the alarm to 0 would not turn off the
alarm, it would make the alarm go off at the time of the event. I was
going to add support for this, but didn't have time.
--
Chris Page - Software Wrangler - engineer for hire
Dylan + You = Code
<
http://www.gwydiondylan.org/>
<
http://www.cafepress.com/chrispage>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.