app.executeCommand(...) List - work in progress (for CS3)

Find out why the . goes before the /

Moderator: Paul Tuersley

Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC

Creating and accessing the new comp isn't the problem. It's the "Save Photoshop Layers..." command only works on an active comp(i.e. one that's open and visible in the comp viewer) Items that are selected in project window don't show as activeItem. I'm guessing I'm just out of luck here.
User avatar
Posts: 20
Joined: November 24th, 2008, 10:40 am

using app.findMenuCommandId() is nice to avoid problems when the ids change with a new version, but it makes the script UI language dependent.

Code: Select all

only works, for example, with the English version.

Code: Select all

works on a German system, too, as long as I run the German version with the German interface. If I force the German version to start with the English interface, it fails again.

Is there an elegant way to solve this or do I have to check the AE version and hardcode a MenuID for each?
Is it save to assume that the MenuIDs do not change within one version?

Post Reply