Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Finder Guide /
Chapter 2 - Finder Objects / Object Class Definitions


Sound File

An object of class Sound File is a sound file.

PROPERTIES
A sound file has all the properties defined for object class File on page 60: Creator Type, File Type, Locked, Product Version, Stationery, and Version.

Like any other file, a sound file also has all the properties defined for object class Item on page 72: Bounds, Comment, Container, Content Space, Creation Date, Disk, Folder, Icon, ID, Information Window, Kind, Label Index, Modification Date, Name, Physical Size, Position, Selected, Size, and Window.

ELEMENT CLASSES
None

COMMANDS HANDLED
Clean Up, Copy, Count, Data Size, Delete, Duplicate, Exists, Get, Move, Open, Put Away, Reveal, Select, Sort, Update

DEFAULT VALUE CLASS RETURNED
A reference to a file or, if you use the plural form sound files, a list
of references.

EXAMPLE
This script plays the sound file MySound:

tell application "Finder"
   open file "MySound" of folder "Sounds" of startup disk
end tell

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996