Skip to main content
raxby
Inspiring
May 11, 2017
Question

Hidden the selection with scripts

  • May 11, 2017
  • 2 replies
  • 1420 views

I want to hidden the selecttion,but it didn't work when i add this code to my scripts.

Make me confusing is it work in this single code.

Please help me,thanks to much!

runMenuItem( app.stringIDToTypeID("toggleShowExtras"));

This topic has been closed for replies.

2 replies

Participating Frequently
May 11, 2017

Bonjour

You can check out this old discussion on runMenuItem

ICI

JJMack
Community Expert
Community Expert
May 11, 2017

That link does not work for me that  script statement seems to work on my machine. If it does not for you have tried replacing it with Action Manager code that also works on my machine.

JJMack
raxby
raxbyAuthor
Inspiring
May 13, 2017

Thanks for your answer,i runed this code in cc2017 and also used action manager code but it doesn't work when I combine it with other code into scripts.It just worked in a single code.

请使用手机"扫一扫"x
JJMack
Community Expert
Community Expert
May 11, 2017

On my Windows machine it produces a script error is CS2. runMenuItem is not in the version of Photoshop scripting. It works in CS6, CC, CC2014, CC 2015, CC 2015.5 and CC 2017 on my machine.

JJMack