• 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
Scripting Palm Desktop - one last question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting Palm Desktop - one last question


  • Subject: Scripting Palm Desktop - one last question
  • From: "Jason W. Bruce" <email@hidden>
  • Date: Mon, 15 Oct 2001 17:44:42 +0000

Irwin,

this works for me:

tell application "Palm Desktop"
set primary category of (event 1 of day "October 15, 2001") to object id
of category "Whatever"
end tell

Jason Bruce

> Jason,
>
> Thanks for your example. I would have given up by now without it. If you
> can, please answer one last question.
>
> When setting categories (see below), I find that only the specific instance
> of repeated instances gets set. This greatly increases the effort to
> re-categorize an entire calendar with lots of repeating items. Done
> manually in the Palm Desktop, a dialog is presented to choose current,
> future, or all instances.
>
> Is there a scriptable way to state that all occurrences are to be set ?
>
> Thanks again,
>
> -Irwin
>
> tell application "Palm Desktop"
> repeat dayCount times
> set theDay to my format_date_using(date0, "/", {"MM", "DD", "YYYY"})
>
> --this loop logs appointments without categories
> set upperlimit to count of every event on day theDay
> repeat with x from 1 to upperlimit
> set event_title to title of event x of day theDay
> set event_cat to primary category of event x of day theDay
> if id of event_cat is -1 then
> set newCat to category (my kwLookup(event_title, KWlist)
> set primary category of event x of day theDay to category
> newCat
> end if
> end repeat
>
> --this loop finds and logs event banners without categories
> set upperlimit to count of every day event on day theDay
> repeat with x from 1 to upperlimit
> set event_title to title of day event x of day theDay
> set event_cat to primary category of day event x of day theDay
> if id of event_cat is -1 then
> set newCat to my kwLookup(event_title, KWlist)
> set primary category of day event x of day theDay to category
> newCat
> end if
> end repeat
>
> set date0 to date0 + 1 * days
> end repeat
> end tell


  • Prev by Date: QuarkXpress Eps
  • Next by Date: Re: Getting a resource (PICT preview) from a file
  • Previous by thread: QuarkXpress Eps
  • Next by thread: Re: Standard Grip or Southpaw? [was: Date weirdness from Finder]
  • Index(es):
    • Date
    • Thread