rendertom / VSCode-Adobe-Script-Runner

Run Adobe scripts from VSCode
https://marketplace.visualstudio.com/items?itemName=renderTom.adobe-script-runner
87 stars 15 forks source link

How to remove the warning window in PS? #15

Closed MrDesignLGC closed 4 years ago

MrDesignLGC commented 4 years ago

I've tried to add psuserconfig code, but it doesn't work.

rendertom commented 4 years ago

It's not clear what you are referring to. Please update your question with more information.

MrDesignLGC commented 4 years ago

When running the jsx code, a warning selection box will pop up in photoshop. It will run after clicking OK, and it will pop up every time, so I think there is a way to run the code directly, not to pop up the warning window?

rendertom commented 4 years ago

I cannot reproduce. Can you do a screen recording?

MrDesignLGC commented 4 years ago

That window will pop up when everyone runs, so you can try it yourself

rendertom commented 4 years ago

What window? Can you at least upload a screenshot? I tested on macOS and didn't see any issues.

MrDesignLGC commented 4 years ago

123 This is the window. I don't want it to pop up

natyconnor commented 4 years ago

English screenshot image Seems pretty clear you have to add a line to PSUserConfig.txt I guess Photoshop is more weary of executing scripts.

MrDesignLGC commented 4 years ago

Add the code in "PSUserConfig.txt" and put it in the setting file. I have done this, but it does not take effect. I think it's a problem with my computer.

MrDesignLGC commented 4 years ago

Adding “WarnRunningScripts 0” to “PSUserConfig.txt” did work. The reason why I failed earlier was that I installed multiple ps versions, so I put it in the wrong directory.