Apple AppleScript Finder Guide Manuel d'utilisateur Page 73

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 168
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 72
CHAPTER 2
Finder Objects
Object Class Denitions 61
EXAMPLE
This script opens all the document files at the top level of a disk:
tell application "Finder"
open document files in window "My World"
end tell
Application files, desk accessories, suitcases, and other nondocument files
are ignored.
File 2
An object of class File can be any file on a disk, including document files,
application files, and so on.
PROPERTIES
A file has all the properties defined for object class Item on page 73: 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.
Unlike other items, a file also has these properties:
creator type
A four-character code that indicates the creator type of the
application that created the file.
Class: String
Modifiable: Yes
file type A four-character code that indicates the type of the file.
Class: String
Modifiable: Yes
locked A Boolean value that indicates whether the file is locked (true)
or not (false).
Class: Boolean
Modifiable: Yes
Vue de la page 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 167 168

Commentaires sur ces manuels

Pas de commentaire