The following line of code produces the output as a shapefile with the name I want ("MyFile") and where I want it ("path"),
path = "/Users/User1/Desktop/" processing.runandload('qgis:saveselectedfeatures', Input, path+'MyFile.shp')
The actual new output shapefile has been saved on my Desktop with the name "MyFile".
However, the "andload" part of "runandload" places the output ON MY MAP PROJECT with the name "Selection", not "MyFile".
This becomes a problem later in my script if I generate another output file, it too gets added to the map project with the name "Selection", making it impossible to choose between them for subsequent processing.
How should my script be written to load output to the map project with the desired name?