GoToPublisherSection
GoToPublisherSection Resolve the alias in the edition
#include <Editions.h> Edition Manager
EditionContainerSpec * container ; includes the edition volume reference
number, directory ID, and filename
returns Error Code; 0=no error
Use the GoToPublisherSection function to resolve the alias in the edition
to find the document containing its publisher. In general, this function
internally uses the GetStandardFormats function to get the alias to the
publisher document and then resolves the alias. It next sends the Finder an
Apple event to open the document (which launches its application if necessary)
and, after the publisher is registered, sends a
Section Scroll event to the publisher.
As an optimization, if there is a registered publisher, the
GoToPublisherSection function simply sends a Section Scroll event to the
publisher.
If the edition does not contain an alias and there are no registered publishers,
then the GoToPublisherSection function sends an Open Documents event to
open the edition to the creating application.
If the edition container is not an edition file (such as when you are using
bottlenecks to subscribe to non-edition files), the GoToPublisherSection
function sends the Finder an Apple event to open that file.
container i includes the edition volume reference number, directory ID, and
filename. You obtain the edition container by calling the
GetEditionInfo function.
Returns: an operating system Error Code.
noErr (0) No error
editionMgrInitErr (-450) Manager not initialized
badSubPartErr (-454) Invalid edition container