Back

SendFile

Hello World

Send a file to a remote target, ie.

app.SendFile( file, subject, text, choose )

via Email. The subject and text arguments will be auto filled and the choose text will be displayed when the user selects the target app. Default may be smth like 'Complete action using'.

See Also: SendText, SendMail

Example - Send File

function OnStart()
{
    app.WriteFile( "file.txt", "Hello World" );
    app.SendFile( "file.txt", "Shared File", app.GetUser() + " shared file.txt with you" );
}
    Copy     Copy All       Run      
string
string: path to file or folder ( “/absolute/...” or “relative/...” )