About using Configuration file in Project

Hello,

I wrote an applescript droplet that get values from a Number spreadsheet and generate emails in Mail draft folder. It works great, but I would like to compose emails from a file template located in the app resources folder and substitute tags (like {fistname}, {lastname}), rather than using hardcoded concatenation. How can I do that? I see how to create it, but how to load the file in a variable.

Thanks

“path to me” gets the path to your application. So something like the following would give you the path…

set thePath to (path to me as string) & “Contents:Resources:My File.txt”

Thank you, it’s working like a charm.