• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: removing an alarm in Palm Desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >removing an alarm in Palm Desktop (From: Scott Calabrese Barton <email@hidden>)

  • Prev by Date: Re: removing an alarm in Palm Desktop
  • Next by Date: Re: Extracting data from HTML
  • Previous by thread: Re: removing an alarm in Palm Desktop
  • Next by thread: Make Alias
  • Index(es):
    • Date
    • Thread