Re: Scripting Entourage - get displayed feature of task/event/note window?
Re: Scripting Entourage - get displayed feature of task/event/note window?
- Subject: Re: Scripting Entourage - get displayed feature of task/event/note window?
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 27 Jan 2005 10:56:37 -0800
On 1/27/05 8:06 AM, "Matthew Leingang" <email@hidden> wrote:
> I'm working with an AppleScript that would link Entourage items to .webloc
> files containing links to the current Safari window. This way I can
> effectively link tasks and notes and stuff to web pages. The problem I'm
> having is in getting the "current" item being worked with in Entourage.
>
> If Entourage's first window is one of the "browser" windows like Calendar,
> Mail, Tasks, Notes, etc., an item can be reached from the "selection." My
> script works in those contexts. But how can it be made to work if the
> prominent window is a task-editing window? I can't find any properties of
> the window that would get at the task being edited.
>
> The "displayed feature" property of a window seems useful in this case, but
> it doesn't seem to work unless the window deals with a message folder or
> server. Is there an analogue for tasks and the other stuff?
There are no useful properties of a task window that are available except
its name - and whatever else you might find in the 'window' class in
Standard Suite. It is not subclassed. In Entourage 2004 there is a new
'contact window' subclass, but for no other individual type except browser
window and message window. An event window is actually a sort of 'draft
window' as for messages - since events can be sent as invitations - so
'content' will work for the notes. But not in tasks. Definitely a severe
limitation.
If you know what kind of object (e.g. task) is open you could do:
tell application "Microsoft Entourage"
set n to name of window 1
get task n
end tell
or - since any number of tasks can have the same name, best to filter down
from
tell application "Microsoft Entourage"
set n to name of window 1
get every task whose name is n
end tell
with or without a whose clause. You could run a check on 'every event whose
subject is n', 'every note whose name is n', and a check on the class of the
window for message window, draft window, contact window to exclude messages,
events and contacts.
It would certainly be good to have 'displayed feature' work on windows other
than folders and custom views in browser windows and (it does work for
custom views too) - also the address book. 'displayed area' works on browser
window too.
Please make a feature request via the Entourage Help menu/Send Feedback.
They are actually looking into expanding the AppleScript implementation of
Entourage. The more people request a specific AppleScript feature the more
likely it is to become a priority.
>
> Or maybe an application property similar to current messages?
Just 'selection', which you know about already.
--
Paul Berkowitz
_______________________________________________
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