getResources

returns a list of the resources in a Mac OS file.

# Metadata

Platforms: desktop OS: mac Introduced: 1.0 Security: disk

# Syntax

getResources(filePath [, resourceType])

# Params

- filePath : The location and name of the file whose resource fork you want to list. If you specify a name but not a location, LiveCode assumes the file is in the defaultFolder. - resourceType : The 4-character type of the resources you want to list. If you don't specify a resourceType, the getResources function lists all the resources of all resource types.

# Examples

getResources("Project Resources")

getResources(it,"STR#")

# Description

Use the getResources function to find out whether a resource already exists before using it or copying it.

# Tags

# See

- **keyword:** items, file, line - **function:** result, setResource - **glossary:** resource fork, resource, Mac OS, return - **control structure:** function