Newbies Nick Stockbridge Posted September 24, 2009 Newbies Posted September 24, 2009 Hi Sorry this is such a basic stupid question but I have searched and can't find - how do you actually run a ScriptMaster script? For example, I have registered the Send HTML formatted email function, so I now have the following in my external functions: SendEmailHTMLFormatted( from ; to ; subject ; htmlBody ; smtpHost ) ... and all I have to do is make sure my parameters are set correctly. But how do I actually send the email?! In the ScriptMaster demo file I click the "Run Script" button but what do I do in my own FileMaker solution? I apologise if this is obvious but I have missed this basic requirement somewhere. Many thanks. Nick
Smef Posted September 24, 2009 Posted September 24, 2009 To run the function you will need to put it somewhere in a script. One common way to do it is to put it as the value of a set variable step. For example, you might have a step: Set Variable $sendemail = SendHTMLEmail(xxxx; xxxx; xxxx) You can put the function in any calculation, pretty much, and it will run when it is called. They even work in If statements!
Newbies Nick Stockbridge Posted September 25, 2009 Author Newbies Posted September 25, 2009 David - that works perfectly! Had no idea it was so simple to actually trigger a script. Many thanks. Nick
Recommended Posts
This topic is 5557 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now