# ActionLaunch

## Content

# Class: ActionLaunch

Represents an action that launches an application or opens or prints a document.

## Extends

- [`ActionBase`](ActionBase)

## Constructors

### Constructor

```ts
new ActionLaunch(om): ActionLaunch;
```

Creates a new ActionLaunch.

#### Parameters

##### om

[`ObjectManager`](ObjectManager)

[ObjectManager](ObjectManager) that controls the lifetime of the ActionLaunch.

#### Returns

`ActionLaunch`

#### Overrides

```ts
ActionBase.constructor
```

### Constructor

```ts
new ActionLaunch(): ActionLaunch;
```

Creates a new ActionLaunch.

#### Returns

`ActionLaunch`

#### Overrides

```ts
ActionBase.constructor
```

## Accessors

### file

#### Get Signature

```ts
get file(): FileSpecification;
```

Gets or sets the file to launch or open.

##### See

 - [FileSpecification](FileSpecification)
 - [FileSpecificationProperties](../type-aliases/FileSpecificationProperties)

##### Returns

[`FileSpecification`](FileSpecification)

***

### id

#### Get Signature

```ts
get id(): number;
```

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

[`ActionBase`](ActionBase).[`id`](ActionBase#id)

***

### newWindow

#### Get Signature

```ts
get newWindow(): boolean;
```

Gets or sets a value indicating whether to open the destination document in a new window.
This property is ignored if the action is not targeting a PDF document.

##### Returns

`boolean`

***

### om

#### Get Signature

```ts
get om(): ObjectManager;
```

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

[`ActionBase`](ActionBase).[`om`](ActionBase#om)

***

### win

#### Get Signature

```ts
get win(): ActionLaunchWinAttrs;
```

Gets or sets the windows-specific launch parameters.

##### Returns

[`ActionLaunchWinAttrs`](ActionLaunchWinAttrs)

## Methods

### free()

```ts
free(): void;
```

Detaches the object from the [ObjectManager](ObjectManager) and deallocates its memory, if possible.

#### Returns

`void`

#### Inherited from

[`ActionBase`](ActionBase).[`free`](ActionBase#free)

***

### rebind()

```ts
rebind(omTo): void;
```

Rebinds the object from the current [ObjectManager](ObjectManager) to the specified one.

#### Parameters

##### omTo

[`ObjectManager`](ObjectManager)

The new [ObjectManager](ObjectManager) for the object.

#### Returns

`void`

#### Inherited from

[`ActionBase`](ActionBase).[`rebind`](ActionBase#rebind)
