Rename file
I would like to rename a file that is in this path
Applications / Adobe Photoshop CC 2018 / Presets / Scripts / text.jsx
this is the script
use mac ios
I don't know where the mistake is.
main();
function main(){
var doc = new File('~/Applications/Adobe Photoshop CC 2018/Presets/Scripts/test.jsx')
if(!doc.exists) return;
var Name = "test";
doc.rename(Name + "_1.jsx");
}