JohnDing Posted January 7, 2021 Posted January 7, 2021 I have a script that when run opens the mail client with a order confirmation email to the customer and confirms the order in FileMaker. But is there a way to check if the user actually pressed send on the email before confirming the order in FileMaker?
comment Posted January 7, 2021 Posted January 7, 2021 12 hours ago, JohnDing said: But is there a way to check if the user actually pressed send I don't think so. And even if there were, you wouldn't be able to tell if they didn't modify it before sending it. If you need to be sure, why don't you send it directly, instead of going through the mail client? Or perhaps you could send a copy to yourself, then check the incoming mail.
JohnDing Posted January 8, 2021 Author Posted January 8, 2021 It was not that i was afraid that they would modify the email or that is would get stuck in internet traffic. I wanted to use it as a condition like: if (userPressedSend){ #continue script ... } else { #pause or stop script ... } but now when i type it out i can see some flaws with this idea. But thanks for the input @comment
MonkeybreadSoftware Posted January 13, 2021 Posted January 13, 2021 for macOS? How good is your AppleScripting? You could trigger send, FileMaker passes email to Apple Mail. Then you can use AppleScript to query current window ID for the message composer. And regularly query again whether this window is still open.
Recommended Posts
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