• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Want hide .file and .folder on ScriptPanel

Contributor ,
Apr 14, 2011 Apr 14, 2011

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

dotfiles.png

Thanks

mg

http://www.milligramme.cc/wp/

TOPICS
Scripting

Views

664

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 14, 2011 Apr 14, 2011

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

};

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 15, 2011 Apr 15, 2011

Copy link to clipboard

Copied

Can you explain why you are changing this user preference in your script?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 15, 2011 Apr 15, 2011

Copy link to clipboard

Copied

LATEST

> 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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines