Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7358 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm getting stuck with a "where is the application?" dialog. Can anyone help me eliminate it and improve my script?

Thanks.

"tell application " & """ & "Entourage" & """ & "

Posted

Thanks! Last thing with this script: multiple attachments! How should a second, third etc attachment be added to my emailattachment field? First attachment looks like this and works like a charm:

HD:Applications:FileMaker Developer 7:EmailImages:example1.jpg

Thanks.

Posted

I don't know. Looking at MS Entourage's AppleScript Dictionary, under class "message" I see:

attachment by numeric index, satisfying a test

Nothing about "as a list of alias", which you sometimes see if multiple files can be added.

Though, after the class "attachment" it says: plural form: "attachements"

So there are "attachments," but it doesn't say if you can put more than one on a message. I'd just try it.

attachments { alias "full file path", alias "another file path" }

and see whether it works. (Or just "file path", no "alias." I don't know, don't use Entourage.)

This is not written as in a FileMaker calculation; this is how it's written in AppleScript, or a Perform AppleScript step; which is how I do it; though either way is fine. But I'll leave the """ and

Posted

ScriptBuilders was my first stop, not many scripts for the simple task of sending mail. By the way, a directory can be attached (which is helpful) - Entourage compresses it into an archive using your prefs. I'm trying to attach multiple files that will appear as individual files (i.e., display in a savvy email app).

Thanks again.

Posted

Stringing along attachments isn't working - Entourage doesn't understand why it's getting a separator followed by (what it sees as) gibberish. Does anyone have anything to say about possibility of creating mail message with first attachment and running second script to ADD attachments one at a time?

Fenton - where can I find Entourage's Applescript dictionary?

Thanks!

Posted

You can find its AppleScript Dictionary, along with all other dictionaries (whether you want them or not :-] by opening Script Editor, then File, Open Dictionary... Unfortunately it shows practically every application on your hard drive, in a slowish list. Not bad once it all draws though. Or you can drag the Entourage app onto the Script Editor icon in the Dock.

I don't about Entourage. The ability to add mutiple attachments is not a new thing. You say "stringing along." Does that mean an AppleScript list? {"value1", "value2"} That's the only acceptable way to pass multiple values in AppleScript.

Compressing the files into one archive sounds like a good option. I don't know quite how to do that with AppleScript. Maybe someone does?

You know there's also a free email OSAX (Scripting Addition), also available at macscripter, named XMail. Then you don't really need Entourage. Of course, then it wouldn't keep the Out mails or anything. But if you're doing that in FileMaker anyway...

Here's what it can do. Notice "list of file specification" for list of attachments:

send mail

to a list of string -- the recipients of the mail

from string -- the author of the mail

subject Unicode text -- the subject of the mail

body Unicode text -- the body of the mail

SMTP server string -- the smtp server to send the mail (smtp.foobar.com)

[username string] -- your login if the server require an authentication

[password string] -- your password if the server require an authentication

[authentication plain/login/crammd5/anonymous/auto] -- the type of authentication mechanism to use

[ssl boolean] -- wether you want to use SSL encryption

[ssl verification verify none/verify peer] -- what kind of SSL verification to do with your certificates

[pem certificate file specification] -- where is your PEM certificate, can be left blank if using 'verify none'

[pem certificate directory file specification] -- where is your directory containin PEM certificate, can be left blank if using 'verify none'

[timeout string] -- abort after how many seconds ? (default is 60 seconds)

[port string] -- the port on which runs the SMTP server (25 is the default)

[cc a list of string] -- the list of cc recipients of the mail {cc1,cc2,

This topic is 7358 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.