PSBasicActionControlProcs Struct Reference

The set of routines available in the Basic Action Control Suite. More...

#include <PIActions.h>

Data Fields

SPAPI OSErr(* Get )(PIActionDescriptor *result, PIActionReference reference)
 Gets a property from the host.
SPAPI OSErr(* StringIDToTypeID )(const char *stringID, DescriptorTypeID *typeID)
 Returns the runtime ID for a string.
SPAPI OSErr(* TypeIDToStringID )(DescriptorTypeID typeID, char *stringID, uint32 stringLength)
 Returns the string for an ID.
SPAPI OSErr(* MakeStringAlias )(const char *newStringID, const char *existingStringID)
 Creates a new string with the same runtime ID as an existing string.
SPAPI OSErr(* ConvertAliasHandleToBookmark )(Handle aliasHandle, CFDataRef *bookmark)
 Utility routine to convert an AliasHandle to a Bookmark for Macintosh only.
SPAPI OSErr(* ConvertBookmarkToAliasHandle )(CFDataRef bookmark, Handle *aliasHandle)
 Utility routine to convert a Bookmark to an AliasHandle for Macintosh only.

Detailed Description

The set of routines available in the Basic Action Control Suite.


Field Documentation

Gets a property from the host.

The actions system also serves as a database for properties; use the Get routine as a quick way to get properties from the host.

Parameters:
result[OUT] A descriptor with the pertinent information. The plug-in is responsible for freeing this descriptor, when it has finished using result.
referenceThe property to get. The plug-in must build this reference to the object and the property by using the Action Reference Suite.
Returns:
Non-zero error if failure.
SPAPI OSErr(* PSBasicActionControlProcs::StringIDToTypeID)(const char *stringID, DescriptorTypeID *typeID)

Returns the runtime ID for a string.

Parameters:
stringIDstring value to convert
typeID[OUT] Four character runtime ID.
Returns:
Non-zero error if failure.
SPAPI OSErr(* PSBasicActionControlProcs::TypeIDToStringID)(DescriptorTypeID typeID, char *stringID, uint32 stringLength)

Returns the string for an ID.

Parameters:
typeIDID value to convert
stringID{OUT} string value representing ID
stringLengthMaximum string length.
Returns:
Non-zero error if failure.
SPAPI OSErr(* PSBasicActionControlProcs::MakeStringAlias)(const char *newStringID, const char *existingStringID)

Creates a new string with the same runtime ID as an existing string.

This is useful when the original string contains characters that aren't legal in C identifiers and thus can't be used in the various string- based descriptor calls.

Parameters:
newStringIDThe new string to create.
existingStringIDThe string whose runtime ID the new string will share.
Returns:
Non-zero error if failure.
SPAPI OSErr(* PSBasicActionControlProcs::ConvertAliasHandleToBookmark)(Handle aliasHandle, CFDataRef *bookmark)

Utility routine to convert an AliasHandle to a Bookmark for Macintosh only.

Parameters:
aliasHandleThe aliasHandle to use in the conversion.
bookmarkThe pointer to a bookmark for the converted AliasHandle
Returns:
Non-zero error if failure.
SPAPI OSErr(* PSBasicActionControlProcs::ConvertBookmarkToAliasHandle)(CFDataRef bookmark, Handle *aliasHandle)

Utility routine to convert a Bookmark to an AliasHandle for Macintosh only.

Parameters:
bookmarkThe bookmark to use in the conversion.
aliasHandleThe pointer to the AliasHandle for the converted bookmark.
Returns:
Non-zero error if failure.

The documentation for this struct was generated from the following file: