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

Lock Item problem

Guest
Apr 29, 2013 Apr 29, 2013

Hi,

whould you help me in this regards.

any thumbnail, able to lock with lock symbol with a context menu lock item

but want get this favor/facility with script

same issue for label also

but i'm not able.

Thanks.

if ((fileList instanceof File) && (fileList.hidden == false)) {

var t = new Thumbnail(File(fileList[0]));

t.label = "Red";

$.writeln(t.label);

t.locked = true;

$.writeln( t.locked);

}

TOPICS
Scripting
566
Translate
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
Valorous Hero ,
Apr 29, 2013 Apr 29, 2013

Something like this?....

#target Bridge

var fileList = app.document.selections;

for(var i in fileList){

if ((fileList.spec instanceof File) && (fileList.hidden == false)) {

var t = fileList;

$.writeln( t.label = "Select");

while(t.label != "Select"){};//add delay to update label

$.writeln( t.spec.readonly=true);

    }

}

Translate
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
Guest
Apr 30, 2013 Apr 30, 2013
LATEST

Thank you very much paul.

would you hlep me in context menu lock item with script.

this code result show false;

if ((fileList instanceof File) && (fileList.hidden == false)) {

var t = new Thumbnail(File(fileList[0]));

t.locked = true;

$.writeln( t.locked);//it show false

}

Translate
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