Title: Re: Apple script for sync to palm
On 5/30/01 6:37 AM, "Allen Watson" <[EMAIL PROTECTED]> wrote:

 if name of window 1 is "Address Book" then
            (* The test here should be: "if displayed feature of window 1 is address book 1", but for some reason I could not get that to work. For non-English users, change "Address Book" to whatever your address book is called. *)

Allen:

    if displayed feature of (get window 1) is address book 1

works (it's one of those) even when the address book is displayed in the main window in front, and also if it's in its own window. Without the 'get', it works only for its own window, but not, as you say, when it's in the main window.

(Of course, in any case the whole construction will still error if either the window in front is an ordinary window (like a message window) that doesn't have a displayed feature, or if the main window is showing one of things that Entourage's AS doesn't understand because it doesn't have a class – like the lists of Custom Views, Tasks, or Notes (just like Address Book was for OE 5). So you do still need to put in in a try block, as you did.)

    




 
--
Paul Berkowitz

Reply via email to