Apple AppleScript Finder Guide User Manual

Browse online or download User Manual for Software Apple AppleScript Finder Guide. Apple AppleScript Finder Guide User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 168
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 1 - AppleScript Finder Guide

AppleScript Finder GuideEnglish Dialect

Page 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

Page 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

Page 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

Page 5

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

Page 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

Page 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

Page 8

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

Page 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

Page 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

Page 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 “

Page 12

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

Page 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

Page 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

Page 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

Page 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

Page 18

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

Page 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

Page 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

Page 21

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

Page 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

Page 23

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

Page 25

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

Page 26

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

Page 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

Page 28 - Element Classes 2

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

Page 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

Page 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

Page 31

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

Page 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

Page 33

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

Page 34

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

Page 35

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

Page 36

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

Page 37

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 43 - Application 2

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

Page 44

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

Page 45 - Object Class Definitions 33

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

Page 46

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 54

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

Page 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

Page 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

Page 57 - Object Class Definitions 45

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

Page 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

Page 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

Page 63 - Control Panel 2

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

Page 64

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

Page 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

Page 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

Page 68 - Desktop-Object 2

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

Page 70

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

Page 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

Page 72 - Document File 2

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

Page 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

Page 74

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

Page 75 - Folder 2

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

Page 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

Page 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

Page 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

Page 80

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

Page 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

Page 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

Page 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

Page 84

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

Page 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

Page 86

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

Page 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

Page 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

Page 90

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

Page 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

Page 92

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

Page 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

Page 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

Page 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,

Page 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

Page 97 - Sharing Window 2

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 103 - Trash-Object 2

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

Page 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

Page 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:

Page 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

Page 107 - Window 2

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

Page 108

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

Page 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

Page 110

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

Page 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

Page 112 - Parameters 3

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

Page 113 - Command Definitions 3

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

Page 114 - Command Finder version

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

Page 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

Page 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

Page 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

Page 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

Page 119 - Computer 3

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

Page 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

Page 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

Page 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

Page 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

Page 124

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

Page 125 - Delete 3

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

Page 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

Page 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

Page 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

Page 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

Page 130 - Exists 3

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

Page 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

Page 132

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

Page 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

Page 134

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

Page 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

Page 136

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

Page 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

Page 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

Page 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

Page 140

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 146 - Shut Down 3

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

Page 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

Page 149 - Update 3

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

Page 150

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

Page 151 - Appendixes

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

Page 152

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

Page 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

Page 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,

Page 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

Page 156

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

Page 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

Page 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

Page 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

Page 160

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

Page 161

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

Page 162

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

Page 163

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

Page 164

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

Page 165

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

Page 166

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

Page 167

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

Page 168 - PRODUCTION EDITOR

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

Comments to this Manuals

No comments