Name
Finder Classes
Synopsis
In summary, getting to know Finder
objects such as the application
and
item
classes is a tremendous benefit to scripters.
The following section describes the 36 classes that are part of the
Finder dictionary in Mac OS 9. Remember that an object can have more
than one of its elements, such as the Finder
application’s container windows, but only one value
for each of its properties. If you want to get a
list
of all of an object’s values
for a certain element, enclose the element in plural form in a
tell
statement targeting the object, as in the
following (which returns all open container windows in a
list
):
tell app "Finder" to container windows
It only sounds weird because I’ve left out the
unnecessary get
part of get
container windows
. Forthwith are all of our Finder
classes.
Dictionary classes
-
alias file
This class represents an
alias
, which is afile
that points to anotherfile
. For example, if you select a file called myfile and type Command-M, then this action creates analias file
in the same folder with the name “myfile alias” in italics. The following is analias file
property:-
original item
reference
This property returns the original item that the
alias
points to. For instance, if you make analias file
that opens Photoshop 5.5 when you double-click it, then this alias file’soriginal item
property returns:file "Adobe Photoshop 5.5" of folder "Adobe Photoshop 5.5" of¬ startup disk of application "Finder"
-
-
alias list
This is a class that represents ...
Get AppleScript in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.