openscripting

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Rendered for darwin/amd64

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func OSAAddStorageType

func OSAAddStorageType(scriptData unsafe.Pointer, dscType int) int16

OSAAddStorageType calls the OpenScripting framework function OSAAddStorageType.

func OSACopyScriptingDefinitionFromURL

func OSACopyScriptingDefinitionFromURL(url obj.Object, modeFlags int, sdef unsafe.Pointer) int

OSACopyScriptingDefinitionFromURL calls the OpenScripting framework function OSACopyScriptingDefinitionFromURL.

func OSAGetStorageType

func OSAGetStorageType(scriptData unsafe.Pointer) (result int16, dscType int)

OSAGetStorageType calls the OpenScripting framework function OSAGetStorageType.

func OSARemoveStorageType

func OSARemoveStorageType(scriptData unsafe.Pointer) int16

OSARemoveStorageType calls the OpenScripting framework function OSARemoveStorageType.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL