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

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

Recommended Posts

Posted

I created a script that creates a .PDF file in a specific location using a variable ($FilePath) to the file path:
"filemac:/Macintosh HD/Users/me/Documents/Letters/" & "You_" & List::CourseFaculty & "_" & List::CourseQtr & List::CourseYear & ".pdf"

This works fine and the PDF is created in the location specified. However, I am trying to figure out a way to script the Send Mail step (at a later date) to go to the $FilePath and attach the file created based on the employee name (same as above). I tried to simply list the variable $FilePath in the attach > file path, but with no luck

 

Posted

Have you tried making your variable global? 

$$FilePath I stead of $FilePath? Just don't forget to clear the global variable when you don't need it anymore.

Posted (edited)

Yes, but the same result. It may be a system issue. Even when I put in a direct path to an existing file, it appears to stall: It will add the recipients, but not the subject or message (or the attachment). If I uncheck the attachment box and run again, it will contain the subject and message.

Edited by crazybake
reran without attachment checkbox
Posted

That does not sound normal.

Are you running the script on a desktop or the server?

Also, do you have any plug-ins that could interfere?

Posted

Just on the desktop and with no plug-ins. I am using Send Mail with a desktop client (not specifying the SMTP server) with Outlook 2016 and have not checked to see if there are any issues.

Posted

If you look at the profiles (left) it reveals that all off the posters are on a Macintosh, why?

Posted

Probably because the developer is on a Mac but that doesn't mean that the problem is happening on a Mac.  Also, Outlook is mentioned and Outlook is far more popular on Windows which makes me ask for clarification.

Posted
2 hours ago, Ted S said:

Outlook is far more popular on Windows which makes me ask for clarification

Outlook and FileMaker do not always play well together. Did your read the link posted by Agnes Riley?

Posted
1 hour ago, Lee Smith said:

Outlook and FileMaker do not always play well together. Did your read the link posted by Agnes Riley?

I did. In fact I experience the Outlook 32 bit vs 64 bit problem first-hand which is why I asked whether this is happening on Windows or Mac.

The author's original post suggests that it is a Mac problem (filemac:Macintosh...) but it doesn't hurt to confirm. Maybe he doesn't realize that Windows and Mac use a different syntax.

This topic is 3004 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.