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

Hidden the selection with scripts

Explorer ,
May 10, 2017 May 10, 2017

Copy link to clipboard

Copied

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"));

TOPICS
Actions and scripting

Views

1.2K

Translate

Translate

Report

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
Adobe
Community Expert ,
May 10, 2017 May 10, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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
Contributor ,
May 11, 2017 May 11, 2017

Copy link to clipboard

Copied

Bonjour

You can check out this old discussion on runMenuItem

ICI

Votes

Translate

Translate

Report

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
Community Expert ,
May 11, 2017 May 11, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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
Explorer ,
May 12, 2017 May 12, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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
Community Expert ,
May 13, 2017 May 13, 2017

Copy link to clipboard

Copied

LATEST

It is a toggle. Could it be that code is being executed more than one time in your combined code.  Its seems the code also works for you.

JJMack

Votes

Translate

Translate

Report

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