• 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: Entourage X: creating a new message from a new task
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entourage X: creating a new message from a new task


  • Subject: Re: Entourage X: creating a new message from a new task
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 24 Jun 2002 01:47:18 -0700

On 6/24/02 1:11 AM, "Paul Berkowitz" <email@hidden> wrote:

> on AskTheUser(theseTasks, theName)
> set dueDateList to {}
> tell app "Microsoft Entourage"
> repeat with i from 1 to (count theseTasks)
> set aTask to item i of theseTasks
> set dueDate to due date of aTask
> set end of dueDateList to dueDate
> end repeat
>
> set whichOne to (choose from list dueDateList with prompt "Which
> task named" & theName " is it?") as string
> if whichOne is "false" then error number -128
--etc.



Sorry - I left out a crucial 'as string' coercion. Since Due date is not
defined with time. you don't really want "12:00:00 AM" appearing on every
one, so 'date string of dueDate' is better. You can also add another handler
to turn the verbose long dates into short numerical dates if you wish (I
leave that to you).

on AskTheUser(theseTasks, theName)
set dueDateList to {}
tell app "Microsoft Entourage"
repeat with i from 1 to (count theseTasks)
set aTask to item i of theseTasks
set dueDate to date string of (due date of aTask)
set end of dueDateList to dueDate
end repeat

--etc.




--
Paul Berkowitz
_______________________________________________
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: 
 >Re: Entourage X: creating a new message from a new task (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Getting image size (height, with) in Quark
  • Next by Date: Quick Quark Scripting Question
  • Previous by thread: Re: Entourage X: creating a new message from a new task
  • Next by thread: Getting image size (height, with) in Quark
  • Index(es):
    • Date
    • Thread