• 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
Creating a Record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating a Record


  • Subject: Creating a Record
  • From: Darwin Zins <email@hidden>
  • Date: Mon, 24 Nov 2003 23:49:42 -0600

Sorry if this is an RTFM, but I have the following code:

tell application "iCal"
activate

set the_calendars to every calendar
set the_todos to {}

repeat with this_cal in the_calendars
set the_todos to every todo in this_cal
repeat with this_todo in the_todos

set this_todo to {uid:uid of this_todo as string, summary:summary of
this_todo as string, priority:priority of this_todo as string, due
date:due date of this_todo as string, completion date:completion date
of this_todo as string}

end repeat

end repeat

return this_todo
end tell

I need to make a record with the label being the uid and the value
being the contents of this_todo. I should concatenate the value of
this_todo to the end of this record with the label of the uid right
after I set this_todo so I end up with a record with the label equal to
the uid and the value equal to a record containing this_todo for every
todo item in my todo list. Is this possible and if so, how do I go
about it?

Thanks in advance for any help,

Darwin
_______________________________________________
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.

  • Follow-Ups:
    • Re: Creating a Record
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: What did I break?
  • Next by Date: Re: Embedding AppleScript in HTML
  • Previous by thread: What did I break?
  • Next by thread: Re: Creating a Record
  • Index(es):
    • Date
    • Thread