Possible to change folder icon using app.system()? [PC/mac]
I need help to verify if this works smoothly.
... If it is even possible...
#target bridge;
if ( BridgeTalk.appName == "bridge" ) {
if ( Folder.fs == "Macintosh" ) {
iconPath = new File("/someplace/MyIcon.icns");
var myFolder = new Folder("/someplace");
// select my folder and tell OSX to change the icon to MyIcon.icns
app.system("mac command lines");
} else if ( Folder.fs == "Windows" ) {
iconPath = new File("/someplace/MyIcon.ico");
myFolder = new Folder("/someplace");
// select my folder and tell OSX to change the icon to MyIcon.ico
app.system("command code"); // for windows7
} else {
alert ("Unsupported file system");
}
}
