You are able to check OS:
var currOS = $.os;
regarding to value of this string you can switch to various paths
You can do this like so (independently of the platform and user name):
var tempFolder = Folder.temp;
var myDocumentsFolder = Folder.myDocuments;
var desktopFolder = Folder.desktop;
Thanks for your reply!
I will check the points as you mentioned.
If you want default user path you can simply use "~" character.
"~/AppData/Local/Temp/myfolder" same as "c:\user\username\AppData\Local\Temp\myfolder"
"~/Library/Application Support/tempfolder/Temporary Files/" is same as "/users/username/Library/Application Support/tempfolder/Temporary Files/"
"~" is interpreted as path to default user directory on Mac and Windows both.