Apple AppleScript Finder Guide Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Software Apple AppleScript Finder Guide. Apple AppleScript Finder Guide User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 168
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes

Resumo do Conteúdo

Página 1 - AppleScript Finder Guide

AppleScript Finder GuideEnglish Dialect

Página 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

Página 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

Página 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

Página 5

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

Página 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

Página 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

Página 8

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

Página 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

Página 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

Página 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 “

Página 12

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

Página 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

Página 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

Página 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

Página 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

Página 18

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

Página 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

Página 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

Página 21

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

Página 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

Página 23

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

Página 25

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

Página 26

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

Página 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

Página 28 - Element Classes 2

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

Página 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

Página 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

Página 31

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

Página 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

Página 33

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

Página 34

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

Página 35

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

Página 36

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

Página 37

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 43 - Application 2

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

Página 44

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

Página 45 - Object Class Definitions 33

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

Página 46

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 54

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

Página 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

Página 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

Página 57 - Object Class Definitions 45

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

Página 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

Página 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

Página 63 - Control Panel 2

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

Página 64

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

Página 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

Página 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

Página 68 - Desktop-Object 2

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

Página 70

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

Página 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

Página 72 - Document File 2

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

Página 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

Página 74

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

Página 75 - Folder 2

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

Página 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

Página 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

Página 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

Página 80

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

Página 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

Página 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

Página 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

Página 84

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

Página 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

Página 86

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

Página 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

Página 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

Página 90

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

Página 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

Página 92

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

Página 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

Página 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

Página 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,

Página 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

Página 97 - Sharing Window 2

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 103 - Trash-Object 2

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

Página 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

Página 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:

Página 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

Página 107 - Window 2

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

Página 108

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

Página 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

Página 110

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

Página 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

Página 112 - Parameters 3

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

Página 113 - Command Definitions 3

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

Página 114 - Command Finder version

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

Página 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

Página 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

Página 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

Página 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

Página 119 - Computer 3

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

Página 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

Página 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

Página 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

Página 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

Página 124

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

Página 125 - Delete 3

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

Página 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

Página 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

Página 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

Página 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

Página 130 - Exists 3

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

Página 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

Página 132

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

Página 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

Página 134

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

Página 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

Página 136

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

Página 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

Página 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

Página 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

Página 140

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 146 - Shut Down 3

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

Página 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

Página 149 - Update 3

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

Página 150

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

Página 151 - Appendixes

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

Página 152

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

Página 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

Página 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,

Página 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

Página 156

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

Página 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

Página 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

Página 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

Página 160

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

Página 161

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

Página 162

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

Página 163

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

Página 164

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

Página 165

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

Página 166

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

Página 167

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

Página 168 - PRODUCTION EDITOR

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

Comentários a estes Manuais

Sem comentários