• 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: Scripting Entourage - get displayed feature of task/event/note window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Entourage - get displayed feature of task/event/note window?


  • Subject: Re: Scripting Entourage - get displayed feature of task/event/note window?
  • From: Matthew Leingang <email@hidden>
  • Date: Fri, 28 Jan 2005 07:03:38 -0500

Dear Paul,

Thanks for the information and the workarounds.  If I try to grab
tasks/notes/events by name, worst case, I might end up creating too many
links. But if windows have the same title they're probably related and the
extra links might be useful.  The bug becomes a feature!

I did file an RFE with Microsoft; thanks for the advice.

--Matt

On 1/27/05 1:56 PM, "Paul Berkowitz" <email@hidden> wrote:

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

--
Matthew Leingang
Preceptor in Mathematics
Harvard University

URL: http://www.math.harvard.edu/~leingang/
vCard: http://www.math.harvard.edu/~leingang/vCard.vcf


 _______________________________________________
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

References: 
 >Re: Scripting Entourage - get displayed feature of task/event/note window? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Windows Media Player
  • Next by Date: New window in Terminal.app
  • Previous by thread: Re: Scripting Entourage - get displayed feature of task/event/note window?
  • Next by thread: TruBluEnvironment
  • Index(es):
    • Date
    • Thread