Jump to content

email script, get path for attachment


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

Recommended Posts

I am creating a email script that will ask the user if they would like a file attached.

I want to avoid the Send Mail dialogue box, so how can I have the user choose the file they want attached, and store that path as a variable ($path).

Link to comment
Share on other sites

found my answer, thanks to Alex Z View Post

// FileParth ( Container )

Let ( [

text = RightValues ( "/" & Container ; 1 ) ;

start = Position ( text ; "/" ; 1 ; 1 ) + 1;

numberOfCharacters = Length ( text ) - start

] ;

Middle ( text ; start ; numberOfCharacters )

)

Link to comment
Share on other sites

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