Loading icons windows
Im busy making a script which stitches images together using row by row and column by column method. Ive added a couple of script together into one script.
To make the stitch method more clear i made 2 icons. Problem is that windows users get errors when the images need to be loaded.
The icons are placed in the main script folder in the presets folder /Photoshop/Presets/Scripts/row-row.png. Im using OSX as system and there i could use "../row-row.png". This doesnt seems to work properly on windows. So i tried using backslash, but this give errors in the code as the backslash is for include specials.
This is the part which loads the png images;
var f = new File("../blanco.png");
var f1 = new File("../row-row.png");
var f2 = new File("../col-col.png");
I also tried this;
if (File.fs == "Windows"){
var f = File("..\blanco.png");
var f1 = File("..\row-row.png");
var f2 = File("..\col-col.png");
}
if (File.fs == "Macintosh"){
var f = File("../blanco.png");
var f1 = File("../row-row.png");
var f2 = File("../col-col.png");
}
What is the best method to get windows look in the current folder of the presets/scripts/ folder?
