Happy New Year! - Filemaker Applescript email help needed
Happy New Year! - Filemaker Applescript email help needed
- Subject: Happy New Year! - Filemaker Applescript email help needed
- From: DealTek <email@hidden>
- Date: Sat, 31 Dec 2011 11:48:40 -0800
Happy New Year,
I posted this on an Filemaker site but would also love some input from here since it's all about applescript
---
Hi All - I have an Filemaker script that send out many emails (sometimes hundreds) to to companies clients. Until recently the company has been using entourage 2008 on a mac. I set the email send step to UNCHECK perform without dialog - and they would all neatly accumulate in the draft box so they could be reviewed and sent when the user needed to sometime later...
Now I see that some of them moved to outlook 2011 on mac and the script does still put them in the draft box but they are not in a saved state but remain open so this means hundreds of open windows. When you close and reopen outlook all extra windows get closed - but this is very messy.
BTW: SAME problem with open windows happens in apple mail...
So I'm looking to create an applescript that closes the active window just created by fm... So I added this applescript script step in Filemaker....
------
tell application "Microsoft Outlook"
activate -- maybe can skip this step
end tell
tell application "System Events"
keystroke "w" using command down
end tell
------
which sort of works, but I need to add the following....
Q: others may not be using outlook 2011 so how do I check if the active default mac email app is "outlook 2011"?
like in fm or inside the AS...??? :
if active default email app is "outlook 2011" ???
then run applescript and close the window (also best to only close if it's a new email in drafts.... hmmm?)
endif
Thanks in advance and HAPPY NEW YEAR!
--
Thanks,
Dave - DealTek
email@hidden
[db-11]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden