Probably not. One needs to write the script for the action and place that code on every system that will use the code. Then you need to create a script to add the button to the tool bar and call the script for the for the action.
You might to purchase:
Doesn't really answer the question. I have already wrote the code to add the button and I have no issue with adding that to each machine that uses it, I just need to fnd the code that will Split the Document to a pre determined path, using the Bookmark name as the file name. Extact pages does not work, it only takes the top level document and not pages under it.
You can pragmatically build the path and file name for use in the extractPages method.
There are posts about building paths and file names and locating page numbers by executing bookmarks.
From what looks like a prior question of yours, you may need to walk the bookmark object to figure out the next bookmark at the same level of the one you are starting from.
Too much work for a free answer.
I'm guessing you haven't tried the Split Document feature in Adobe X. The logic is there obviously, I'm just trying to use it, not reinvent it.
The other question was based on Adobe 9, this is for Adobe X. Different features.
Bookmarks have the same features across all versions.
If you use execute menu items in JS be real careful because the menu names for use in JS do change.
Thanks, I hadn't seem, the Split Document feature.