Title: Re: Executing a Rule from a schedule?
On 2/24/04 12:13 PM, "Mark Goodman" <[EMAIL PROTECTED]> wrote:

Thanks Paul, the script worked great.!

So is it possible for an AppleScript to allow the user to selected the variables (days, category, from folder, to folder) when it runs the first time and then save the results as a new executable script?

Well, now we get into very interesting territory...  Literally, since Script Editor 2.0 in Panther is now itself scriptable, one could technically script it to open and make a new script. Unfortunately, what you're asking for really does require script properties (such as Barry used), but ones which need to be modified, then retained. And there's a big problem in that properties of scripts made by Script Editor 2.0 (Panther) are not retained in scripts run by the Entourage script menu. (Apple changed the goalposts in Panther, and Entourage doesn't know about that. It also might be difficult for the Entourage developers to make the change easily, since Entourage still supports Jaguar.) Now, I could specify a different script editor, but the part of the script that made the new script would be different depending which editor you were using.

However, there is a way. Because of the properties issue, you would have to download the free Smile script editor to do it yourself. Or wait for me to post a version at MacScripter.net (I'll be making it in Script Debugger, a commercial editor that costs a lot.) I used a technique for my "Accounts & Signature Shortcuts" scripts which could be used here. I would include a "seed" copy of the script-to-be. The master script doing the settings makes a copy of the seed in the Finder, then loads it and stores the property values you choose. In order for the new values to "take", the seed script has to have been made originally by Smile or Script Debugger.

You'll have to give me a couple of days on this. It's a little complicated.

--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

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

Reply via email to