Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
Photoshop JavaScript: Delete all guides?

I can only find out a way to remove a single guide from the layout:

activeDocument.guides[0].remove();

This targets a single guide using an index. Isn't there a menu I can call to clear all guides at once?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

You can use activeDocument.guides.removeAll()

about 4 years ago · Juan Pablo Isaza Report

0

Traditionally, you had to remove the guides in reverse order:

// function CLEAR ALL GUIDES ()
// ----------------------------------------------------------------
function clear_all_guides()
{
  var numGuides = activeDocument.guides.length;
  if (numGuides == 0) return;

  // Delete 'em in reverse order 
  for (var i = numGuides -1; i >=0; i--)
  {
    app.activeDocument.guides[i].remove();
  }
}

which is the same as

 var idclearAllGuides = stringIDToTypeID( "clearAllGuides" );
 executeAction( idclearAllGuides, undefined, DialogModes.NO );
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!