• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PhotoShop Clear Guidelines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PhotoShop Clear Guidelines


  • Subject: Re: PhotoShop Clear Guidelines
  • From: Stan Cleveland <email@hidden>
  • Date: Thu, 11 Jan 2007 11:39:45 -0800
  • Thread-topic: PhotoShop Clear Guidelines

Title: Re: PhotoShop Clear Guidelines
On 1/11/07 7:42 AM, Oakley Masten wrote:

> How do I tell PhotoShop CS2 to clear the guidelines in
> the current doc?
> I can't find any reference to this in any of the
> scripting photoshop pdfs.

It’s not possible using just AppleScript, so you'll need to delve into the _javascript_ inner workings of Photoshop. The following AppleScript handler will do the job.
Enjoy!

Stan C.

on clearGuides()
    tell application "Adobe Photoshop CS2"
        do _javascript_ "function deleteGuides()
        {
        var allGuides = new ActionDescriptor();
        var guidesRef = new ActionReference();
            guidesRef.putEnumerated(charIDToTypeID(\"Gd  \"), charIDToTypeID(\"Ordn\"), charIDToTypeID(\"Al  \"));
            allGuides.putReference(charIDToTypeID(\"null\"), guidesRef);
        executeAction(charIDToTypeID(\"Dlt \"), allGuides, DialogModes.NO);
        }
        deleteGuides();"
    end tell
end
clearGuides
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: PhotoShop Clear Guidelines
      • From: CYB <email@hidden>
References: 
 >PhotoShop Clear Guidelines (From: Oakley Masten <email@hidden>)

  • Prev by Date: Re: tell Grog to glog
  • Next by Date: Re: how to get OS version with Shell script?
  • Previous by thread: PhotoShop Clear Guidelines
  • Next by thread: Re: PhotoShop Clear Guidelines
  • Index(es):
    • Date
    • Thread