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

Guides in back

Advocate ,
Apr 29, 2010 Apr 29, 2010

I have a bunch of already created InDesign files and need to change the preferences on all of them to "guides in back." Does anyone know of a script to do this?

TOPICS
Scripting
500
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

correct answers 1 Correct answer

Engaged , Apr 29, 2010 Apr 29, 2010

Here is code for you

//Send document guides to back //created by Baljeet Singh if (app.documents.length > 0) { alert ("Please close all document and try again"); exit(); } var dirr = Folder.selectDialog( 'Select Indesign folder'); app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract; alldocs = getAllfiles( dirr, [], ".indd" ); var alldocslen = alldocs.length; for (l=0; l<alldocslen; l++) { var doc = app.open( alldocs); doc.guidePreferences.guidesInBack = true; doc.save

...
Translate
Engaged ,
Apr 29, 2010 Apr 29, 2010

Here is code for you

//Send document guides to back //created by Baljeet Singh if (app.documents.length > 0) { alert ("Please close all document and try again"); exit(); } var dirr = Folder.selectDialog( 'Select Indesign folder'); app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract; alldocs = getAllfiles( dirr, [], ".indd" ); var alldocslen = alldocs.length; for (l=0; l<alldocslen; l++) { var doc = app.open( alldocs); doc.guidePreferences.guidesInBack = true; doc.save(alldocs); doc.close(SaveOptions.yes); } function getAllfiles( dir, array, mask ) { var f = Folder( dir ).getFiles( '*.*' ); for( var i = 0; i < f.length; i++ )      if( f instanceof Folder )           getAllfiles( f, array, mask );      else           if( f.name.substr( -mask.length ) == mask )                array.push( f ); return array; } app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;

Shonky

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
Advocate ,
Apr 29, 2010 Apr 29, 2010
LATEST

Shonky,

Thank you so much! You are so fast, and the script works great!

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