Apple AppleScript Finder Guide Instrukcja Użytkownika Strona 1

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Oprogramowanie Apple AppleScript Finder Guide. Apple AppleScript Finder Guide User Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 168
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów

Podsumowanie treści

Strona 1 - AppleScript Finder Guide

AppleScript Finder GuideEnglish Dialect

Strona 2

xP R E F A C EAt the end of the guide are two appendixes and an index. Appendix A, “Finder Commands at a Glance,” summarizes the commands defined by t

Strona 3 - Contents

CHAPTER 2 Finder Objects88 Object Class DefinitionsDEFAULT VALUE CLASS RETURNEDA reference to a sharing window or, if you use the plural form sharingwi

Strona 4

CHAPTER 2Finder ObjectsObject Class Definitions 89DEFAULT VALUE CLASS RETURNEDA reference to a file or, if you use the plural form sound files, a list o

Strona 5

CHAPTER 2 Finder Objects90 Object Class DefinitionsEXAMPLEIf a status window is open, this script returns its name:tell application "Finder"f

Strona 6 - Finder Errors

CHAPTER 2Finder ObjectsObject Class Definitions 91DEFAULT VALUE CLASS RETURNEDReference to a suitcase or, if you use the plural form suitcases, a list

Strona 7 - Tables and Listings

CHAPTER 2 Finder Objects92 Object Class DefinitionsUnlike other containers, a trash-object also has these properties:warn before emptyingA Boolean valu

Strona 8

CHAPTER 2Finder ObjectsObject Class Definitions 93EXAMPLETo refer to a trash-object, you must use the Trash property of the desktop:tell application &q

Strona 9 - About This Guide

CHAPTER 2 Finder Objects94 Object Class Definitionsposition Two integers that specify the position of the upper-left corner of the user’s icon.Class: L

Strona 10 - For More Information 0

CHAPTER 2Finder ObjectsObject Class Definitions 95Window 2An object of class window is any Finder window.PROPERTIESbounds The rectangle that bounds the

Strona 11 - Other AppleScript Dialects 0

CHAPTER 2 Finder Objects96 Object Class Definitionsposition Two integers that specify the upper-left corner of the content region of the window. (The “

Strona 12

CHAPTER 2Finder ObjectsObject Class Definitions 97COMMANDS HANDLEDClean Up, Close, Count, Data Size, Exists, Get, Open, Print, Sort, UpdateDEFAULT VALU

Strona 13 - Installation 1

xiP R E F A C EOther AppleScript Dialects 0A dialect is a version of the AppleScript language that resembles a particular human language or a programm

Strona 15 - What Is Finder Scripting? 3

Using Command Definitions 99CHAPTER 3Finder Commands 3Figure 3-0Listing 3-0Table 3-0This chapter begins with a summary of the format used in command de

Strona 16 - What Is Finder Scripting?

CHAPTER 3 Finder Commands100 Using Command DefinitionsFor example, here’s the syntax statement for the Move command from page 124:move referenceToObjec

Strona 17 - CHAPTER 1

CHAPTER 3Finder CommandsCommand Definitions 101Result 3Many (but not all) commands return results. The result of a command is the value generated when

Strona 18

CHAPTER 3 Finder Commands102 Command DefinitionsCount Counts elements of a particular class in a container. Behaves like the standard version, except t

Strona 19

CHAPTER 3Finder CommandsCommand Definitions 103Table 3-2 lists the commands defined by the Finder Suite—that is, the commands unique to the Finder.The r

Strona 20

CHAPTER 3 Finder Commands104 Command DefinitionsClean Up 3A Clean Up command is a request to align objects in a window or on the desktop along the grid

Strona 21

CHAPTER 3Finder CommandsCommand Definitions 105EXAMPLESThis script cleans up all of the Finder’s open windows (not including the desktop) for which “by

Strona 22

CHAPTER 3 Finder Commands106 Command DefinitionsHowever, if the window for a folder is open, you can use a script like this to clean up the contents of

Strona 23

CHAPTER 3Finder CommandsCommand Definitions 107EXAMPLESThis statement closes all Finder windows:tell application "Finder" to close windowsThi

Strona 25

CHAPTER 3 Finder Commands108 Command DefinitionsPARAMETERSgestaltSelector The Gestalt selector for the feature you want to test. The Finder converts th

Strona 26

CHAPTER 3Finder CommandsCommand Definitions 109This script returns an integer that indicates the total amount of memory available (including virtual me

Strona 27 - Finder Objects 2

CHAPTER 3 Finder Commands110 Command DefinitionsEXAMPLEThis script copies two files and places them in a folder on another disk:tell application "F

Strona 28 - Element Classes 2

CHAPTER 3Finder CommandsCommand Definitions 111referenceToContainerA reference to the container whose elements are to be counted. If you do not specify

Strona 29 - Examples 2

CHAPTER 3 Finder Commands112 Command Definitionslittle meaning for the Finder, because the result of a Get command for most Finder objects is a referen

Strona 30 - The Finder Application Object

CHAPTER 3Finder CommandsCommand Definitions 113EXAMPLEThis script returns a list of integers that specify the size, in bytes, of the icons for the files

Strona 31

CHAPTER 3 Finder Commands114 Command DefinitionsEXAMPLEtell application "Finder"delete file "OldFile" of startup diskend tell Dupli

Strona 32

CHAPTER 3Finder CommandsCommand Definitions 115EXAMPLEThis script duplicates a file to a disk, replacing any items at the top level of the disk that hav

Strona 33

CHAPTER 3 Finder Commands116 Command DefinitionsRESULTA reference to the ejected disk or a list of references.EXAMPLEThis script ejects the disk named

Strona 34

CHAPTER 3Finder CommandsCommand Definitions 117RESULTA reference to the trash container that was emptied.EXAMPLEtell application "Finder" to

Strona 35

Installation1CHAPTER 1Introduction to Finder Scripting 1Figure 1-0Listing 1-0Table 1-0Finder scripting refers to the use of AppleScript and an applica

Strona 36

CHAPTER 3 Finder Commands118 Command DefinitionsExists 3An Exists command is a request to determine whether the object specified by a reference exists.

Strona 37

CHAPTER 3Finder CommandsCommand Definitions 119elsedisplay dialog "The Storage cartridge isn’t mounted."end ifend tellNote that you can’t use

Strona 38 - Object Class Definitions 2

CHAPTER 3 Finder Commands120 Command DefinitionsRESULTA reference or list of references to the requested objects or, in the case of properties that con

Strona 39 - Accessory Suitcase 2

CHAPTER 3Finder CommandsCommand Definitions 121NOTESThe word get in the Get command is optional. For example, these statements are equivalent:name of s

Strona 40 - Alias File 2

CHAPTER 3 Finder Commands122 Command DefinitionspropertyValue The value to assign to the property.Class: The value class of the property as specified in

Strona 41 - Object Class Definitions 29

CHAPTER 3Finder CommandsCommand Definitions 123If you save this script as an application and drag a folder onto the application’s icon, the script sear

Strona 42

CHAPTER 3 Finder Commands124 Command DefinitionsMove 3A Move command is a request to move an object or objects. The Finder version of the Move command

Strona 43 - Application 2

CHAPTER 3Finder CommandsCommand Definitions 125You can use replacing existing items, with replacing, or replacing true instead of replacing conflicts w

Strona 44

CHAPTER 3 Finder Commands126 Command DefinitionsRESULTReference to the opened object or a list of references.EXAMPLESThis script opens a file and a fold

Strona 45 - Object Class Definitions 33

CHAPTER 3Finder CommandsCommand Definitions 127SYNTAXprint referenceToObjectPARAMETERreferenceToObjectA reference to the object or objects to print—typ

Strona 46

CHAPTER 1 Introduction to Finder Scripting2What Is Finder Scripting?IMPORTANTFinder scripts that return a lot of information may need as much as sever

Strona 47 - Object Class Definitions 35

CHAPTER 3 Finder Commands128 Command DefinitionsPARAMETERreferenceToObjectA reference to the object to put away or a list of references.Class: Referenc

Strona 48

CHAPTER 3Finder CommandsCommand Definitions 129Quit 3A Quit command is a request to quit the Finder application. The Finder’s Quit command is similar t

Strona 49 - Object Class Definitions 37

CHAPTER 3 Finder Commands130 Command Definitionsallow you to relaunch the Finder with the Launch command (or with any Tell statement addressed to the F

Strona 50 - Application File 2

CHAPTER 3Finder CommandsCommand Definitions 131Reveal 3The Reveal command is a request to make an object visible by opening its container and selecting

Strona 51 - Object Class Definitions 39

CHAPTER 3 Finder Commands132 Command DefinitionsSelect 3The Select command is a request to select one or more objects. If you specify objects in severa

Strona 52

CHAPTER 3Finder CommandsCommand Definitions 133Set 3The Set command is a request to set the values of one or more objects. The Finder version of the Se

Strona 53 - Application Process 2

CHAPTER 3 Finder Commands134 Command DefinitionsShut Down 3The Shut Down command is a request to shut down the computer. It is equivalent to choosing

Strona 54

CHAPTER 3Finder CommandsCommand Definitions 135PARAMETERSNoneRESULTNoneEXAMPLEtell application "Finder" to sleep Sort 3The Sort command is a

Strona 55 - Container 2

CHAPTER 3 Finder Commands136 Command DefinitionsEXAMPLESThis script returns a list of references to the folders in the startup disk, sorted by creation

Strona 56

CHAPTER 3Finder CommandsCommand Definitions 137Update 3An Update command is a request to update an object and its elements, if any, to match their repr

Strona 57 - Object Class Definitions 45

CHAPTER 1Introduction to Finder ScriptingWhat Is Finder Scripting? 3tell application "Finder"copy items of folder "AppleScript" of

Strona 61 - Object Class Definitions 49

Commands 141APPENDIX AFinder Commands at a Glance AThis appendix summarizes the commands described in this guide and the placeholders used in syntax d

Strona 62 - Content Space 2

APPENDIX A Finder Commands at a Glance142 CommandsTable A-1 Finder command syntax Command Syntax Result clean up clean up Reference or list of referen

Strona 63 - Control Panel 2

APPENDIX AFinder Commands at a GlanceCommands 143eject eject Reference or list of referenceseject referenceToDiskempty empty Referenceempty referenceT

Strona 64

APPENDIX A Finder Commands at a Glance144 Commandsopen open referenceToObject Reference or list of referencesopen referenceToObject using referenceToA

Strona 65 - Object Class Definitions 53

APPENDIX AFinder Commands at a GlancePlaceholders 145Placeholders ATable A-2 explains the placeholders used in the syntax descriptions in this appendi

Strona 67 - Desk Accessory File 2

147APPENDIX BFinder Errors BThis appendix lists error numbers and error messages for errors returned by the Finder. For information about handling err

Strona 68 - Desktop-Object 2

CHAPTER 1 Introduction to Finder Scripting4 What Is Finder Scripting?tell application "Finder" of machine "Macintosh IIci"repeat w

Strona 70

149IndexSymbols() in syntax descriptions xi[] in syntax descriptions xi| in syntax descriptions xiAAbout This Macintosh property, of the Finder applic

Strona 71 - Object Class Definitions 59

INDEX150command definitions (continued)Sleep 134–135Sort 135–136Update 137using 99–101commands 99–137parameters of 100summarized 141–144syntax of 99–10

Strona 72 - Document File 2

INDEX151Finder Application object classdefined 31–37introduced 18–25Floating property, of a window 95Folder object class 63–65Folder propertyof a conta

Strona 73 - Object Class Definitions 61

INDEX152MMake Changes property, of sharing privileges 83Make command 121–123Minimum Partition Size property 40of an application file 38of an informatio

Strona 74

INDEX153Physical Size propertyof an information window 71of an item 74placeholders, in syntax descriptions xi, 145Position propertyof a group 68of an

Strona 75 - Folder 2

INDEX154Stationery propertyof a file 62of an information window 71Status Window object class 89–90Suggested Partition Size property 40of an application

Strona 77 - Font File 2

THE APPLE PUBLISHING SYSTEMThis Apple manual was written, edited, and composed on a desktop publishing system using Apple Macintosh computers and Fram

Strona 78 - Font Suitcase 2

CHAPTER 1Introduction to Finder ScriptingRecording Actions in the Finder 5Recording Actions in the Finder 1You can record almost any actions in the Fi

Strona 79 - Object Class Definitions 67

CHAPTER 1 Introduction to Finder Scripting6 Recording Actions in the FinderListing 1-1 A sample recorded scripttell application "Finder"acti

Strona 80

CHAPTER 1Introduction to Finder ScriptingRecording Actions in the Finder 7window, turn on recording, choose the settings you want for each window from

Strona 81 - Information Window 2

Apple Computer, Inc.© 1994 Apple Computer, Inc.All rights reserved. No part of this publication or the software described in it may be reproduced, st

Strona 82

CHAPTER 1 Introduction to Finder Scripting8 Recording Actions in the FinderAfter you run the new script, the windows have the views specified in the sc

Strona 83 - Object Class Definitions 71

CHAPTER 1Introduction to Finder ScriptingRecording Actions in the Finder 9integers. For the Position property, the two integers specify the coordinate

Strona 84

CHAPTER 1 Introduction to Finder Scripting10 Writing Scripts That Control the FinderWriting Scripts That Control the Finder 1You can use a variety of

Strona 85 - Object Class Definitions 73

CHAPTER 1Introduction to Finder ScriptingWriting Scripts That Control the Finder 11Listing 1-2 A script that either takes a snapshot of the current wi

Strona 86

CHAPTER 1 Introduction to Finder Scripting12 Writing Scripts That Control the FinderListing 1-3 shows another script that uses the Display Dialog comm

Strona 87 - Object Class Definitions 75

CHAPTER 1Introduction to Finder ScriptingWriting Scripts That Control the Finder 13Unlike the script in Listing 1-2, the script in Listing 1-3 consist

Strona 89 - Process 2

Using Object Class Definitions 15CHAPTER 2Finder Objects 2Figure 2-0Listing 2-0Table 2-0This chapter begins with a summary of the format used in object

Strona 90

CHAPTER 2 Finder Objects16 Using Object Class Definitionstell application "Finder"set position of file "MyFile" to {29, 235}end tel

Strona 91 - Sharable Container 2

CHAPTER 2Finder ObjectsUsing Object Class Definitions 17Commands Handled 2Objects that belong to the same class can respond to the same commands. Objec

Strona 92

iiiContentsTables and Listings viiPreface About This GuideixAudience ixOrganization of This Guide ixFor More Information xGetting Started xAppleScript

Strona 93 - Object Class Definitions 81

CHAPTER 2 Finder Objects18 The Finder Application ObjectThe Finder Application Object 0The Finder application object belongs to the object class Appl

Strona 94

CHAPTER 2Finder ObjectsThe Finder Application Object 19To obtain a standard reference to an element of the Finder while you’re writing a script, follo

Strona 95 - Sharing Privileges 2

CHAPTER 2 Finder Objects20 The Finder Application ObjectProperties and Elements of the Finder 2The Finder application, like most other Finder objects,

Strona 96

CHAPTER 2Finder ObjectsThe Finder Application Object 21working area of your screen and not contained by a folder, disk, or other object—can be conside

Strona 97 - Sharing Window 2

CHAPTER 2 Finder Objects22 The Finder Application Objectwindow of startup disk of application "Finder", content space of desktop of applicat

Strona 98

CHAPTER 2Finder ObjectsThe Finder Application Object 23content space is a special case and the Finder doesn’t consider it a member of class Window (al

Strona 99 - Object Class Definitions 87

CHAPTER 2 Finder Objects24 The Finder Application ObjectYou can refer to windows by name, by number, or as the window property of the object to which

Strona 100 - Sound File 2

CHAPTER 2Finder ObjectsThe Finder Application Object 25References Returned for a Point 2To get a reference to the content space that lies under a part

Strona 101 - Status Window 2

CHAPTER 2 Finder Objects26 Object Class DefinitionsObject Class Definitions 2This section defines the Finder’s object classes. Accessory Process 2An obje

Strona 102 - Suitcase 2

CHAPTER 2Finder ObjectsObject Class Definitions 27DEFAULT VALUE CLASS RETURNEDA reference or (if you use the plural form accessory processes) a list of

Strona 103 - Trash-Object 2

ivThe Finder Application Object 18Properties and Elements of the Finder 20References to Finder Windows 22References Returned for the Insertion Locatio

Strona 104 - Object Class Definitions

CHAPTER 2 Finder Objects28 Object Class DefinitionsELEMENT CLASSESThe only elements that an accessory suitcase can contain are objects of class Item (s

Strona 105 - Object Class Definitions 93

CHAPTER 2Finder ObjectsObject Class Definitions 29Like any other file, an alias file also has all the properties defined for object class Item on page 73:

Strona 106

CHAPTER 2 Finder Objects30 Object Class DefinitionsThe Get statement in this script returns a list of references to the selected items. The Repeat stat

Strona 107 - Window 2

CHAPTER 2Finder ObjectsObject Class Definitions 31Application 2An object of class Application is the Finder application itself, the outermost container

Strona 108

CHAPTER 2 Finder Objects32 Object Class Definitionsextensions folderA reference to the Extensions folder in the System Folder. This folder is used to s

Strona 109 - Object Class Definitions 97

CHAPTER 2Finder ObjectsObject Class Definitions 33product versionA string that describes the version of system software running on the same computer as

Strona 110

CHAPTER 2 Finder Objects34 Object Class Definitionstemporary items folderA reference to the Temporary Items folder in the System Folder. Applications u

Strona 111 - Finder Commands 3

CHAPTER 2Finder ObjectsObject Class Definitions 35File (page 61)Folder (page 63)Font File (page 65)Font Suitcase (page 66)Information Window (page 69)I

Strona 112 - Parameters 3

CHAPTER 2 Finder Objects36 Object Class DefinitionsThis statement identifies a folder:folder ID 918 of startup disk-—result: folder "My Folder"

Strona 113 - Command Definitions 3

CHAPTER 2Finder ObjectsObject Class Definitions 37DEFAULT VALUE CLASS RETURNEDReference.EXAMPLESThis script turns on the Calculate Folder Sizes propert

Strona 114 - Command Finder version

vChapter 3 Finder Commands99Using Command Definitions 99Syntax 99Parameters 100Result 101Examples 101Command Definitions 101Clean Up 104Close 106Compute

Strona 115 - Command Summary

CHAPTER 2 Finder Objects38 Object Class DefinitionsSimilarly, the Finder interprets both of these statements as a reference to the Trash: trashtrash of

Strona 116 - Clean Up 3

CHAPTER 2Finder ObjectsObject Class Definitions 39scriptable A Boolean value that indicates whether the application is high-level event aware (true) or

Strona 117 - Command Definitions 105

CHAPTER 2 Finder Objects40 Object Class Definitionstell application "Finder"set x to largest free blockset y to partition size of ¬applicatio

Strona 118

CHAPTER 2Finder ObjectsObject Class Definitions 41Minimum Partition size to 460,800 bytes (450K) and at the same time increases the Partition Size to 4

Strona 119 - Computer 3

CHAPTER 2 Finder Objects42 Object Class DefinitionsELEMENT CLASSESNoneCOMMANDS HANDLEDCount, Data Size, Exists, Get, SortDEFAULT VALUE CLASS RETURNEDA

Strona 120

CHAPTER 2Finder ObjectsObject Class Definitions 43Container 2An object of class Container is any Finder container, such as a folder, a disk, or the Tra

Strona 121 - Command Definitions 109

CHAPTER 2 Finder Objects44 Object Class Definitionsexpandable A Boolean value that indicates whether the container can be opened within its container i

Strona 122

CHAPTER 2Finder ObjectsObject Class Definitions 45ELEMENT CLASSESObjects of these classes can be identified at the top level of a container by name or b

Strona 123 - Data Size 3

CHAPTER 2 Finder Objects46 Object Class DefinitionsEXAMPLESThe first example opens all the containers on the desktop except for the Trash.tell applicati

Strona 124

CHAPTER 2Finder ObjectsObject Class Definitions 47Container Window 2An object of class Container Window is a window for a container. For example, the

Strona 125 - Delete 3

viAppendix A Finder Commands at a Glance141Commands 141Placeholders 145Appendix B Finder Errors147Index149

Strona 126 - Duplicate 3

CHAPTER 2 Finder Objects48 Object Class DefinitionsYou can’t get or set this property unless the container window is open, and the value of the propert

Strona 127 - Command Definitions 115

CHAPTER 2Finder ObjectsObject Class Definitions 49Font File (page 65)Font Suitcase (page 66)Item (page 73)Sharable Container (page 79)Sound File (page

Strona 128

CHAPTER 2 Finder Objects50 Object Class DefinitionsThe phrase count of container windows at the beginning of the Repeat loop requests that the Finder c

Strona 129 - Command Definitions 117

CHAPTER 2Finder ObjectsObject Class Definitions 51EXAMPLEThis script returns a list of all Finder content spaces that are currently open, including the

Strona 130 - Exists 3

CHAPTER 2 Finder Objects52 Object Class Definitionscalculate folder sizes A Boolean value that indicates whether the checkbox labeled “Calculate folder

Strona 131 - Command Definitions 119

CHAPTER 2Finder ObjectsObject Class Definitions 53label headingA Boolean value that indicates whether the checkbox labeled “Show label” in the Views co

Strona 132

CHAPTER 2 Finder Objects54 Object Class DefinitionsELEMENT CLASSESNoneCOMMANDS HANDLEDClean Up, Close, Copy, Count, Data Size, Delete, Duplicate, Exist

Strona 133 - Command Definitions 121

CHAPTER 2Finder ObjectsObject Class Definitions 55Desk Accessory File 2An object of class Desk Accessory File is a desk accessory file on a disk.PROPERT

Strona 134

CHAPTER 2 Finder Objects56 Object Class DefinitionsDesktop-Object 2An object of class Desktop-Object is the desktop of a computer. The Desktop property

Strona 135 - Command Definitions 123

CHAPTER 2Finder ObjectsObject Class Definitions 57Folder (page 63)Font File (page 65)Font Suitcase (page 66)Item (page 73)Sharable Container (page 79)S

Strona 136

viiTables and ListingsChapter 1Introduction to Finder Scripting1Listing 1-1 A sample recorded script 6Listing 1-2 A script that either takes a snapsho

Strona 137 - Command Definitions 125

CHAPTER 2 Finder Objects58 Object Class DefinitionsPROPERTIESA disk has all the properties defined for object class Sharable Container on page 79: Expor

Strona 138

CHAPTER 2Finder ObjectsObject Class Definitions 59ELEMENT CLASSESObjects of the classes listed here can be identified at the top level of a disk by name

Strona 139 - Put Away 3

CHAPTER 2 Finder Objects60 Object Class DefinitionsEXAMPLEThe script that follows tests the Ejectable property of each item in a list of the mounted di

Strona 140

CHAPTER 2Finder ObjectsObject Class Definitions 61EXAMPLEThis script opens all the document files at the top level of a disk:tell application "Find

Strona 141 - Command Definitions 129

CHAPTER 2 Finder Objects62 Object Class Definitionsproduct versionThe version number shown at the top of the information window for the file.Class: Stri

Strona 142 - Restart 3

CHAPTER 2Finder ObjectsObject Class Definitions 63If you save this script as a script application, it copies a new icon to any files whose icons you dro

Strona 143 - Reveal 3

CHAPTER 2 Finder Objects64 Object Class DefinitionsELEMENT CLASSESObjects of these classes can be identified at the top level of the folder by name or b

Strona 144 - Select 3

CHAPTER 2Finder ObjectsObject Class Definitions 65EXAMPLEThis script returns references to all the folders at the top level of the startup disk that ha

Strona 145 - Command Definitions 133

CHAPTER 2 Finder Objects66 Object Class DefinitionsDEFAULT VALUE CLASS RETURNEDA reference to a file or, if you use the plural form font files, a list o

Strona 146 - Shut Down 3

CHAPTER 2Finder ObjectsObject Class Definitions 67COMMANDS HANDLEDClean Up, Close, Copy, Count, Data Size, Delete, Duplicate, Exists, Get, Move, Open,

Strona 148

CHAPTER 2 Finder Objects68 Object Class DefinitionsGroup 2An object of class Group is a group file in the Users & Groups control panel window. The F

Strona 149 - Update 3

CHAPTER 2Finder ObjectsObject Class Definitions 69COMMANDS HANDLEDClean Up, Close, Count, Data Size, Exists, Get, Make, Open, Select, Sort, UpdateDEFAU

Strona 150

CHAPTER 2 Finder Objects70 Object Class DefinitionsUnlike other windows, an information window also has these properties:comment The comment displayed

Strona 151 - Appendixes

CHAPTER 2Finder ObjectsObject Class Definitions 71partition sizeAn integer indicating the amount of memory, in bytes, that an application is launched w

Strona 152

CHAPTER 2 Finder Objects72 Object Class Definitionswarn before emptyingA Boolean value that indicates whether the Finder should warn the user before em

Strona 153 - Finder Commands at a Glance A

CHAPTER 2Finder ObjectsObject Class Definitions 73Item 2An object of class Item is any item in a container.PROPERTIESbounds The coordinates of the rect

Strona 154 - Command Syntax Result

CHAPTER 2 Finder Objects74 Object Class Definitionsid The item’s hierarchical file system (HFS) ID number, an integer that identifies an application file,

Strona 155 - Commands 143

CHAPTER 2Finder ObjectsObject Class Definitions 75size The logical size of the item on disk, in bytes.Class: IntegerModifiable: Nowindow A reference to

Strona 156

CHAPTER 2 Finder Objects76 Object Class Definitionsproperty Extras : falsetell application "Finder"if (exists item " Add Extras" of

Strona 157 - Placeholders A

CHAPTER 2Finder ObjectsObject Class Definitions 77items in the Apple Menu Items folder, and its name changes to Remove Extras after the extra items hav

Strona 158

ixP R E F A C EAbout This GuideThe AppleScript Finder Guide: English Dialect describes the commands and object classes defined by the Finder for use wi

Strona 159 - Finder Errors B

CHAPTER 2 Finder Objects78 Object Class Definitionspartition sizeAn integer indicating the amount of memory, in bytes, that a process is launched with

Strona 160

CHAPTER 2Finder ObjectsObject Class Definitions 79DEFAULT VALUE CLASS RETURNEDA reference or (if you use the plural form processes) a list of reference

Strona 161

CHAPTER 2 Finder Objects80 Object Class DefinitionsUnlike other containers, a sharable container also has these properties:exported A Boolean value tha

Strona 162

CHAPTER 2Finder ObjectsObject Class Definitions 81set to false if you set any of the group, guest, or owner privileges individually.Class: BooleanModifi

Strona 163

CHAPTER 2 Finder Objects82 Object Class DefinitionsELEMENT CLASSESObjects of these classes can be identified at the top level of a sharable container by

Strona 164

CHAPTER 2Finder ObjectsObject Class Definitions 83EXAMPLEThis script changes the Shared property to false for all sharable containers that belong to a

Strona 165

CHAPTER 2 Finder Objects84 Object Class Definitionssee foldersA Boolean value that corresponds to the See Folders checkbox for a specified user or group

Strona 166

CHAPTER 2Finder ObjectsObject Class Definitions 85Sharing Window 2An object of class Sharing Window is a sharing window that appears when you choose S

Strona 167

CHAPTER 2 Finder Objects86 Object Class Definitionsgroup privilegesThe group privileges selected in the sharing window. For example, if the See Folders

Strona 168 - PRODUCTION EDITOR

CHAPTER 2Finder ObjectsObject Class Definitions 87owner privilegesThe owner privileges selected in the sharing window. For example, if the See Folders

Komentarze do niniejszej Instrukcji

Brak uwag