Photoshop anyone know how to exit the quickmask mode in applescript?

This works except for the exit quick mask mode.
Anyone else been able to do it?
tell application "Adobe Photoshop CS5.1"
  activate
          tell front document
                    if (quick mask mode) then exit quick mask mode.
          end tell
end tell

I think this is it however it returns the
error "Adobe Photoshop CS5.1 got an error: Can’t get channel \"Quick mask\" of document 1." number -1728 from channel "Quick mask" of document 1
tell application "Adobe Photoshop CS5.1"
  activate
          tell front document
                    if (quick mask mode) then delete channel ¬
                              "Quick mask"
          end tell
end tell

Similar Messages

Maybe you are looking for

  • HT203052 Lost Cloud docs after upgrade to Yosemite

    I put in a new SSD and upgraded my MBP to Yosemite. All good---except some docs I had written using Text Editor are now somehow just gone. Evidently these were saved to Documents in the Cloud, which is now just gone...?? In Snow Leopard, my last OS,

  • When i try to open itunes its showing error 7 code 193

    when i try to open itunes its showing error 7 code 193. it wont let me open it at all. i dont want to lose my music. i did the repair option already and it did not work.

  • Maximum number of pictures and pages in book?

    What is the maixmum number of pictures you can use when ordering a book? What is the maximum number of pages for each book you can have when ordering through Apple? Thanks

  • Trouble with display on desktop.

    I just made a site, and it formats perfectly on my laptop, but have heard from many people that it doesn't display well on their desktops. Has anyone had this problem before?

  • Need so somehow come back from reading a port to do other things.

    I got a class that runs a GUI to open a user's webcam and display the view. Then the class goes over to another class that reads from a serial port to display the speed frmo a GPS receiver on the port and display it on the GUI. Then I need the GUI to