On 10/24/2000 9:50 PM, "Paul Berkowitz" <[EMAIL PROTECTED]> wrote:
> On 10/24/00 9:29 PM, "Remo Del Bello" <[EMAIL PROTECTED]> wrote:
>
>> on 10/24/2000 6:15 PM, Paul Berkowitz deftly typed out:
>>
>>> Try, after the first step,
>>>
>>> repeat while not (exists window "Calendar")
>>> delay 1
>>> end repeat
>>>
>>
>> Do you mean:
>>
>> tell application "Microsoft Entourage"
>> activate
>> puppet menu {"Window", "Calendar"}
>> repeat while not (exists window "Calendar")
>> delay 1
>> end repeat
>> puppet menu {"View", "Go To Today"}
>> puppet menu {"View", "Week"}
>> puppet menu {"View", "List"}
>> end tell
>>
>> This script works fine from the Script Editor (If you count "only when the
>> calendar is already open" as fine), but seems to get stuck in an endless
>> loop when run by keyboard shortcut or via the script menu.
>
>
> Yeah, that means that Entourage can't do anything while the script is
> running. The script is waiting for the window to open, and the window has
> missed its chance to open and nothing else will happen until the script
> finishes, which it won't.
>
> That's precisely why I said "try". Entourage is designed not to allow
> scripts and menu selection or keypressing to take place simultaneously (or
> you'd have lots of disasters). That applies to emulated menu selections like
> puppet menu or keypressing like Sigma's or Sandi's. Usually it only works,
> if it does, as the last command of a script. I couldn't quite believe that I
> got two puppet menus in a row to work on my computer (and was rather aghast
> to see David's four-in-a-row). I suspect you must have a slower computer
> than my G3 350? Or it's a PB or a clone?
>
> There is a way to do this, but it's very elaborate, like my Progress Window
> Connect scripts, involving applets launched in the background. I'll do it
> for you later.
Getting rid of the delay 1 would probably work...
Dan
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>