Back

GetSharedFiles

Hello World

Returns a path list of files shared with the app.

app.GetSharedFiles() → list: [ path ]

If the results were retreived they can't be read an other time, unless they will be shared again.

See Also: GetSharedText, SendFile, SendText

Example - Show Shared Files

function OnStart()
{
    var files = app.GetSharedFiles();

    if( files ) app.Alert( files.join( "\n" ) );
    else app.ShowPopup( "No shared files received." );
}
    Copy     Copy All       Run      
string: path to file or folder ( “/absolute/...” or “relative/...” )