AppleScript to activate/deactivate rules?

J

Jeremy Whipple

Is it possible to use AppleScript to activate or deactivate particular rules
in Entourage? I have a set of rules that I like to toggle depending on the
time of day, and it would be nice to be able to schedule the toggling rather
than having to do it manually.

Jeremy Whipple <[email protected]>
Setagaya-ku, Tokyo
 
B

Barry Wainwright

Is it possible to use AppleScript to activate or deactivate particular rules
in Entourage? I have a set of rules that I like to toggle depending on the
time of day, and it would be nice to be able to schedule the toggling rather
than having to do it manually.

Jeremy Whipple <[email protected]>
Setagaya-ku, Tokyo

Tell app "microsoft entourage"
Set enabled of schedule "send & receive all" to true -- or false
End tell

You need to make sure the name of the schedule is spelled absolutely
correctly).
 
P

Paul Berkowitz

Is it possible to use AppleScript to activate or deactivate particular rules
in Entourage? I have a set of rules that I like to toggle depending on the
time of day, and it would be nice to be able to schedule the toggling rather
than having to do it manually.
No. Rules are not scriptable, unfortunately. As Barry demonstrated,
schedules are scriptable as far as enabling or running goes, but that won't
help with rules. You could send yourself a reminder to turn them on and off,
I guess (make it a recurring task).

--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: http://www.entourage.mvps.org/toc.html

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
 
J

Jeremy Whipple

No inconvenience at all, Barry. I am disappointed at the news from Paul, but
that saves me from spending any more time on this particular quest. (And I
might get some use out of the script for schedules.)

All the best,
 
J

Jeremy Whipple

Tell app "microsoft entourage"
Set enabled of schedule "send & receive all" to true -- or false
End tell

You need to make sure the name of the schedule is spelled absolutely
correctly).

I've tried this out and it works, but there seems to be a catch: when I use
a script to activate repeating schedules, their "Enabled" box gets checked,
but their "Next Run" field remains blank, and they don't actually run! Is
there any way of fixing this?

One further question, if I may: Is it possible to use a script to run a
schedule just once? I know it's possible to run a schedule from the Tools
menu, but ideally I'd like to create a script that would first run a
particular schedule and would then switch the enabled state of a couple of
other schedules. (I'd be happy to explain the details of the schedules in
question, but they'd probably just bore you.)
 
B

Barry Wainwright

I've tried this out and it works, but there seems to be a catch: when I use
a script to activate repeating schedules, their "Enabled" box gets checked,
but their "Next Run" field remains blank, and they don't actually run! Is
there any way of fixing this?

I thought they fixed that in one of the updates??

I see your message was sent with the latest version, is this the machine
you're testing the scripts on?
 
J

Jeremy Whipple

I thought they fixed that in one of the updates??

I see your message was sent with the latest version, is this the machine
you're testing the scripts on?

Sorry for the slow response. Yes, it is. It's Entourage 10.1.1, as I guess
you've already determined, under OS X 10.2.6. (Just to be thorough, I
suppose I should mention that I have Japanese set as the preferred language
in the system preferences, and Entourage registered for Japanese using the
MS Language Register. I can't imagine why that would make any difference in
this case -- but then again, there are limits to my imagination!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top