Copy link to clipboard
Copied
Hi. Im using CS3 or later on OSX10.6
I try to write restore setting parameters to invisible text file, and this works well.
But ScriptPanel show dot-files and dot-folder.
Is there any trick to hide invisible items on ScriptPanel?
var script_file = new File(app.activeScript);
var fs = file.parent.fsName;
var iv_folder = Folder(fs+"/.log").create();
var log = new File(fs+"/.log/log.txt");
// and encoding => open => write => close
Thanks
mg
Copy link to clipboard
Copied
I resolved only dot-flie to hide using menuAction.
var m = app.menuActions.item('$ID/DisplayUnsupportedFiles')
if (m.checked == true) {
m.invoke();
$.writeln(m.checked); ==> false .file will be hidden
};
Copy link to clipboard
Copied
Can you explain why you are changing this user preference in your script?
Copy link to clipboard
Copied
> Jongware
At first, I knew this snippet hide only unsupported file, not dot-file.
Some meticulous Operators dislike unnecessary files and folders are visible in ScriptPanel.
They want to tidy up the scripts.
I wonder not GUI but Scripting can solve this problem. but cant.
mg