TextImportPreference

Text import preferences.

Methods:

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Objects:

Boolean, EventListeners, Events, ImportPlatform, Number, Object, String, TextImportCharacterSet

Hierarchy:

Superclass: Preference

Class: TextImportPreference

Property Listing

Property

Type

Access

Description

characterSet

TextImportCharacterSet

TextImportCharacterSet.ANSI

TextImportCharacterSet.ARABIC_ASMO

TextImportCharacterSet.ARABIC_ASMO_TRANSPARENT

TextImportCharacterSet.CENTRALEUROPEAN_ISO

TextImportCharacterSet.CHINESE_BIG_5

TextImportCharacterSet.CYRILLIC_CP855

TextImportCharacterSet.CYRILLIC_ISO

TextImportCharacterSet.CYRILLIC_KOI8R

TextImportCharacterSet.CYRILLIC_KOI8U

TextImportCharacterSet.DOS_LATIN_2

TextImportCharacterSet.GB18030

TextImportCharacterSet.GB2312

TextImportCharacterSet.GREEK_ISO

TextImportCharacterSet.KSC5601

TextImportCharacterSet.MACINTOSH_ARABIC

TextImportCharacterSet.MACINTOSH_CE

TextImportCharacterSet.MACINTOSH_CROATIAN

TextImportCharacterSet.MACINTOSH_CYRILLIC

TextImportCharacterSet.MACINTOSH_GREEK

TextImportCharacterSet.MACINTOSH_GREEK_SHARED_CAPS

TextImportCharacterSet.MACINTOSH_HEBREW

TextImportCharacterSet.MACINTOSH_ICELANDIC

TextImportCharacterSet.MACINTOSH_ROMAN

TextImportCharacterSet.MACINTOSH_ROMANIAN

TextImportCharacterSet.MACINTOSH_TURKISH

TextImportCharacterSet.RECOMMENDSHIFTJIS83PV

TextImportCharacterSet.SHIFTJIS90MS

TextImportCharacterSet.SHIFTJIS90PV

TextImportCharacterSet.TURKISH_ISO

TextImportCharacterSet.UTF16

TextImportCharacterSet.UTF8

TextImportCharacterSet.WINDOWS_ARABIC

TextImportCharacterSet.WINDOWS_BALTIC

TextImportCharacterSet.WINDOWS_CE

TextImportCharacterSet.WINDOWS_CYRILLIC

TextImportCharacterSet.WINDOWS_EE

TextImportCharacterSet.WINDOWS_GREEK

TextImportCharacterSet.WINDOWS_HEBREW

TextImportCharacterSet.WINDOWS_TURKISH

read/write

The computer language character set used to create the text file.

convertSpacesIntoTabs

Boolean

read/write

If true, converts the specified number of spaces into a tab. For information on specifying the number of spaces, see spaces into tabs count.

dictionary

String

read/write

The dictionary to use for the imported text.

eventListeners

EventListeners EventListener

readonly

A collection of event listeners.

events

Events Event

readonly

A collection of events.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

parent

Application

readonly

The parent of the TextImportPreference (a Application).

platform

ImportPlatform

ImportPlatform.MACINTOSH

ImportPlatform.PC

read/write

The platform used to create the imported text file.

properties

Object

read/write

A property that allows setting of several properties at the same time.

spacesIntoTabsCount

Number

read/write

The number of spaces to convert to a tab. Note: Valid when convert spaces into tabs is true.

stripReturnsBetweenLines

Boolean

read/write

If true, the import filter removes extra carriage returns at the ends of lines.

stripReturnsBetweenParagraphs

Boolean

read/write

If true, the import filter removes extra carriage returns between paragraphs.

useTypographersQuotes

Boolean

read/write

If true, convert straight quotes and apostrophes in the imported text to typographic quotation marks and apostrophes.

Method Listing

EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Adds an event listener.

Parameter

Type

Description

eventType

String

The event type.

handler

File

JavaScriptFunction

The event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

TextImportPreference getElements ()

Resolves the object specifier, creating an array of object references.

Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Removes the event listener.

Parameter

Type

Description

eventType

String

The registered event type.

handler

File

JavaScriptFunction

The registered event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

String toSource ()

Generates a string which, if executed, will return the TextImportPreference.

String toSpecifier ()

Retrieves the object specifier.

Object of

Application.textImportPreferences

Event.parent

EventListener.parent

MutationEvent.parent

Return

TextImportPreference.getElements()