• 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: Palm Desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Palm Desktop


  • Subject: Re: Palm Desktop
  • From: cheshirekat <email@hidden>
  • Date: Wed, 5 Jan 2005 15:35:42 -0700

On Wed, Jan 5, 20051:20 PM, the following words from Hendrik W. M. van
Eeden email@hidden, emerged from a plethora of SPAM ...

>Thanks! That work well.  This fixes one problem.  I chanced it to:
>set the nextDay to ((the current date) + 1 * days)
>
>tell application "Palm Desktop"
>    tell events of calendar day the nextDay
>        set the eCount to the count
>        if the eCount is greater than 0 then
>            --set {the eNamesList, the eTimesList} to {the title, the start
>time}
>            set {the eNamesList, the eCategoryList} to {the title, the name
>of primary category}
>        end if
>    end tell
>end tell
>
>It gets what I want, but how do I examine the eCategoryList, I am looking
>for a specific category.
>
>Thanks again.
>--
>Henk
>
Ok. This might be closer to what you want:

property t : tab
property ret : return
property treasure : "Personal" -- change to category you want
 -- for uncategorized, use "missing value" without quotes

to findTreasureInEvents from {eList, catList}
   set the targetEvents to ""
   if the catList contains treasure then
      set the categoryNum to (the number of items in the catList)
      repeat with i from 1 to the categoryNum
         set the cat to item i of the catList
         if the cat is the treasure then
            set the targetEvents to the targetEvents & (cat & t & (item i
of eList) & ret)
         end if
      end repeat
   end if
   if the targetEvents is not "" then
      return (the targetEvents)
   else
      return false
   end if
end findTreasureInEvents

set the nextDay to ((the current date) + 1 * days)

tell application "Palm Desktop"
   tell events of calendar day the nextDay
      set the eCount to the count
      if the eCount is greater than 0 then
         --set {the eNamesList, the eTimesList} to {the title, the start time}
         set {the eNamesList, the eCategoryList} to {the title, the
primary category's name}
      end if
   end tell
end tell

set the treasures to findTreasureInEvents of me from {the eNamesList, the
eCategoryList}

HTH

cheshirekat

PS,

Email that has digest in the message subject, as in "Re: Applescript-
users Digest, Vol2, Issue 5" usually get deleted without being read. I
only caught this one in a moment of boredom.
--
Thus the living, lone and sobbing,
In the throes of anguish throbbing,
With the loathsome Furies robbing
  Night and noon of peace and rest.
But beyond the groans and grating
Of abhorrent Life, is waiting
Sweet Oblivion, culminating
  All the years of fruitless quest.
-- H.P. Lovecraft, Despair 1919

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Applescript-users Digest, Vol 2, Issue 5 (From: "Hendrik W. M. van Eeden" <email@hidden>)

  • Prev by Date: Re: Newbie: Activating Scripting Additions
  • Next by Date: Checking for an undefined variable *without* throwing an error
  • Previous by thread: Re: Applescript-users Digest, Vol 2, Issue 5
  • Next by thread: Re: Palm Desktop
  • Index(es):
    • Date
    • Thread