Re: Entourage X: creating a new message from a new task
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.