Apple AppleScript Finder Guide User Manual Page 61

  • Download
  • Add to my manuals
  • Print
  • Page
    / 168
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 60
CHAPTER 2
Finder Objects
Object Class Denitions 49
Font File (page 65)
Font Suitcase (page 66)
Item (page 73)
Sharable Container (page 79)
Sound File (page 88)
Suitcase (page 90)
COMMANDS HANDLED
Clean Up, Close, Count, Data Size, Exists, Get, Open, Print, Sort, Update
DEFAULT VALUE CLASS RETURNED
Reference to a file or, if you use the plural form container windows, a list
of references.
EXAMPLE
The script that follows tiles all the open container windows in an overlapping
pattern and sets each window’s View property to 3 (“by Names”).
set {a, b, c, d} to {4, 44, 267, 311}
tell application "Finder"
repeat with n from 1 to (count of container windows)
if n = 1 then
set bounds of container window n to {a, b, c, d}
else
set {a, b, c, d} to {a + 20, b + 20, c + 20, d + 20}
set tiledBounds to {a, b, c, d}
set bounds of container window n to tiledBounds
end if
set view of container window n to 3
open container window n
end repeat
end tell
Page view 60
1 ... 60 61 62 ... 168

Comments to this Manuals

No comments