Re: Auto Adding A Signature to Active New Email
Re: Auto Adding A Signature to Active New Email
- Subject: Re: Auto Adding A Signature to Active New Email
- From: dealTek <email@hidden>
- Date: Sat, 30 Mar 2013 14:01:06 -0700
On Mar 30, 2013, at 1:22 PM, Christian Boyce <email@hidden> wrote:
> It is weird that FileMaker ignores the default signature set within Mail. But… you can set the signature in AppleScript.
This is a great help - thanks!
- instead of this line = set the_message to make new outgoing message with properties {subject:"Hi there", content:"How's it going, man?"}
... is there a way to : set the_message to *the current active main window*?
- (because filemaker creates this by itself...)
Thanks
>
> This little bit may help you:
>
> tell application "Mail"
> set the_signatures to every signature
> set my_signature to item -1 of the_signatures
> --return properties of my_signature
> set the_message to make new outgoing message with properties {subject:"Hi there", content:"How's it going, man?"}
> set visible of the_message to true
> set message signature of the_message to my_signature
> end tell
>
> You'd have to create the message, figure out how to address it (message id?) and then apply the signature.
>
> What I do, which gets around figuring out how to address the message made by FileMaker, is use AppleScript to create the message in the first place. You can get the content of the FileMaker Pro fields that you need, and you can pass them to your script. And it's still unreliable, especially if the signature is something big (like a graphic). But it might work for you.
>
> Try uncommenting my commented line in the script to see what sorts of properties a signature has.
>
> c
>
>
> On Mar 30, 2013, at 12:42 PM, dealTek <email@hidden> wrote:
>
>> Hi all,
>>
>> I'm using filemaker to send an email (perform without dialog = unchecked) so it creates an new active main open window. It does NOT auto add a signature related to the email address.
>>
>> Is there a way to auto add the related signature with applescript?
>>
>
>
> --
> Christian Boyce
> Christian Boyce and Associates
> Mac, iPhone, and iPad Consultants
> New Main Phone Number: 424-354-3548
>
> Read the Boyce Blog: http://christianboyce.blogspot.com
> Follow us on Twitter! http://twitter.com/christianboyce
> Be a fan on Facebook! https://www.facebook.com/pages/Christian-Boyce-and-Associates/98451972202
>
> Now Playing on The Boyce Blog: Another Flash Update
>
>
--
Thanks,
Dave - DealTek
email@hidden
[db-3]
_______________________________________________
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