Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Finder Guide /
Chapter 2 - Finder Objects / The Finder Application Object
References to Finder Windows


References Returned for the Insertion Location property

The Finder's Insertion Location property returns a reference to the object to which new information can currently be added. For example, if the New Folder command in the File menu is active, the insertion location is a reference to the container in whose content space the new untitled folder appears when you choose New Folder. This container can be a folder, a disk, or the desktop:

tell application "Finder"
   insertion location
end tell

--result: desktop of application "Finder"
If the active content space is a sharing window or an information window, the insertion location is a reference to the container to which the window belongs.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996