Documentation
¶
Overview ¶
Package openscripting provides a fluent Go API over the macOS OpenScripting framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Index ¶
- func OSAAddStorageType(scriptData unsafe.Pointer, dscType int) int16
- func OSACopyScriptingDefinitionFromURL(url obj.Object, modeFlags int, sdef unsafe.Pointer) int
- func OSAGetStorageType(scriptData unsafe.Pointer) (result int16, dscType int)
- func OSARemoveStorageType(scriptData unsafe.Pointer) int16
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OSAAddStorageType ¶
OSAAddStorageType calls the OpenScripting framework function OSAAddStorageType.
func OSACopyScriptingDefinitionFromURL ¶
OSACopyScriptingDefinitionFromURL calls the OpenScripting framework function OSACopyScriptingDefinitionFromURL.
func OSAGetStorageType ¶
OSAGetStorageType calls the OpenScripting framework function OSAGetStorageType.
func OSARemoveStorageType ¶
OSARemoveStorageType calls the OpenScripting framework function OSARemoveStorageType.
Types ¶
This section is empty.