On 1/29/03 8:03 PM, Allen Watson [EMAIL PROTECTED] wrote:

> You might want to simplify the script even further:
> 
> tell application "Microsoft Entourage"
>   set switch to enabled of schedule "Test"
>   set enabled of schedule "Test" to not switch
> end tell
> 
> However, I'm not sure why you are having the problem you are having. I think
> it should work. You appear to have the latest version of EvX, so that isn't
> it. I recall something though about schedules not toggling off correctly, or
> not running automatically after turning them on until you ran them once
> manually. I've not changed any of my schedules for many moons...

Thanks for responding Allen, your code above works well, or I should say as
well as what I've done below in that the schedule only appears to switch off
and on - at this point I'm figuring it's a bug unless I hear otherwise and
will try to accomplish the same thing by manipulating the UI or somesuch.

Jim
 
> On or near 1/29/2003 1:53 PM, Jim Baskins at [EMAIL PROTECTED] observed:
> 
>> EvX 10.1.1 (2418)
>> 
>> I have a simple script to toggle one of my schedules that I've been using
>> frequently, to wit:
>> 
>> tell application "Microsoft Entourage"
>>     if enabled of schedule "Roadrunner" is true then
>>         set enabled of schedule "Roadrunner" to false
>>     else
>>         set enabled of schedule "Roadrunner" to true
>>     end if
>> end tell
>> 
>> If I use this script it appears to work properly, i.e. If I go to Tools>Edit
>> Schedules>name_of_schedule and check it's enabled status it does indeed
>> change with each running of the script (checkmark in enabled box appears and
>> disappears). However, the change doesn't seem to permeate through the entire
>> app as the status line just below the lower right side of the preview pane
>> does not change to indicate the next firing of the schedule and indeed the
>> schedule does not change status. If the schedule (which fires every 10
>> minutes) is enabled and I run the script, it shows as disabled but continues
>> to fire until I manually change it's status to enabled, then disabled again.
>> And vice-versa. Is this a known bug or am I reading the dictionary
>> incorrectly?
>> 
>> Jim Baskins
>> 


-- 
To unsubscribe:                     
<mailto:[EMAIL PROTECTED]>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to