Question: One of my clients running is having problems with a send mail script from FileMaker 10 to Mail 3.6. The attached PDF is appearing on a black background making it impossible for the recipient to read any text that the client may have included with the attachment. What can I do?

Answer: This bug was introduced by Safari 5. http://support.apple.com/kb/TS3385 Until Apple provides an operating system level fix, I have put together a temporary solution by including the following AppleScript in a Perform AppleScript script step after the Send Mail command.

— Overcome error introduced with Safari 5 that makes the background black
— Change to Plain Text and then back to normal
tell application “System Events” to tell process “Mail”
delay 1
if name of menu item -1 of menu 1 of menu bar item 8 of menu bar 1 contains “Plain Text” then
keystroke “t” using {shift down, command down}
delay 1
keystroke “t” using {shift down, command down}
end if
end tell

Update: This is fixed in the latest Mac OS X update. 7/30/10

2024 tim headshot 5 no smile grey

Tim Cimbura – CEO, CFO and Software Engineer

Tim is an expert in creating custom business solutions that make businesses more effective, productive, and profitable. He specializes in rapid application development with Claris FileMaker, Laravel, and WordPress. He also knows Apple macOS technology inside and out.