ReturnUnixNames

Description:

baReturnUnixNames specifies whether to return file names in Unix format.

Platforms:

Macintosh

Usage:

baReturnUnixNames( On )

Arguments:

Integer.
If On is true, file functions will return names in Unix format.

Returns:

Void.

Examples:

Director:
baReturnUnixNames( true )

Authorware:
baReturnUnixNames( true )
 

Notes:

By default, file functions return names in HFS format Mac HD:Data:products.pdf . In this format, file and folder names are limited to 31 characters in length, and can not contain Unicode characters.

You can choose to return the names in Unix format /Volumes/Mac HD/Data/products.pdf In this format, file and folder names can be up to 256 characters long, and can contain Unicode characters. The system generates short names for files with names longer than 31 characters, and HFS format uses these names. Buddy functions can use either format, but the function will work in the format passed in. For example, if you pass in a HFS name to baXCopy, then all files will be copied in HFS format, so long file names and Unicode characters will be lost.

You can convert between HFS and Unix names using the baUnixName and baHfsName functions.

To utilise Unicode support in Director 11, you must use Unix file names.
 

See also:

Specifying file names
baHfsName
baUnixName