Apple AppleScript Finder Guide User Manual Page 138

  • Download
  • Add to my manuals
  • Print
  • Page
    / 168
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 137
CHAPTER 3
Finder Commands
126 Command Denitions
RESULT
Reference to the opened object or a list of references.
EXAMPLES
This script opens a file and a folder:
tell application "Finder"
open {file "My File" of startup disk, ¬
folder "My Folder" of startup disk}
end tell
This script opens a text file using the Scriptable Text Editor:
tell application "Finder"
open file "Text File" of startup disk using ¬
application file "Scriptable Text Editor" ¬
of startup disk
end tell
NOTES
If one of the objects specified by referenceToObject is already open, it remains
open and its window becomes the frontmost window.
The statement open items in referenceToContainer (where referenceToContainer
is a reference to any container) won’t compile. Instead, use the statement open
every item of referenceToContainer.
Print 3
A Print command is a request to print one or more objects. The Finder version
of the Print command is identical to the standard version described in the
AppleScript Language Guide.
Page view 137
1 ... 137 138 139 ... 168

Comments to this Manuals

No comments