Copy link to clipboard
Copied
Hello All:
I am attempting to place a new menu option on the File menu. I have looked at other posts that discuss how to do this and based upon them, this is what I have done so far (this is for CS5 only).
In the project header:
#define kPSUIPluginsMenuPath "Main:&File:"
IN the .FR file:
resource ActionDef (kSDKDefActionResourceID)
{
{
kPSUIActionComponentBoss,
kPSUIPagesDialogActionID,
kPSUIDialogMenuItemKey, // Evaluates to "PDF Submission"
kOtherActionArea,
kNormalAction,
kDisableIfLowMem | kDisableIfNoFrontDocument | kDisableIfNoFrontLayoutView,
kInvalidInterfaceID,
kSDKDefVisibleInKBSCEditorFlag,
}
};
resource MenuDef (kSDKDefMenuResourceID)
{
{
// The Plug-ins menu sub-menu items for this plug-in.
kPSUIPagesDialogActionID,
kPSUIPluginsMenuPath,
kExportMenuPosition + 1,
kSDKDefIsNotDynamicMenuFlag,
}
};
The code compiles cleanly but when I open up InDesign, I get the following errors/warnings WRT this plugin:
First assert:
Submenu Main:&File: (ActionID kPSUIPagesDialogActionID) should not be registered with action manager(or should have no name)!
Second assert:
Already have different position info for this submenu(old 1401.0000, new 20.0000)!
When InDesign finally finishes booting up, I cannot find this menu option.
Can anyone help me find out what I am doing wrong?
R,
John
Copy link to clipboard
Copied
You're creating a sub-menu on the file menu where you just want a menu item.
Does your kPSUIPluginsMenuPath eventually have a final colon?
It should be "Main:&File" .
Dirk
Copy link to clipboard
Copied
Thanks Dirk. That did the trick.
R,
John
Find more inspiration, events, and resources on the new Adobe Community
Explore Now