Apple AppleScript Finder Guide Manuale Utente Pagina 143

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 168
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 142
CHAPTER 3
Finder Commands
Command Denitions 131
Reveal 3
The Reveal command is a request to make an object visible by opening its
container and selecting it. If you specify objects in several containers, only
the last specified object remains selected.
SYNTAX
reveal referenceToObject
PARAMETER
referenceToObject
A reference to the object or objects to be revealed.
Class: Reference or list of references
RESULT
Reference to the revealed object or a list of references.
EXAMPLE
If you save the script that follows as an application, it reveals the original item
for any alias file whose icon you drag over the script application’s icon.
on open x
repeat with i in x
tell application "Finder"
if i exists then
reveal i
end if
end tell
end repeat
end open
Each original item revealed by this script is selected only momentarily. After
the script runs and quits, the Finder selects the script’s icon again. This is
standard Finder behavior whenever an application (in this case, a script
application) quits.
Vedere la pagina 142
1 2 ... 138 139 140 141 142 143 144 145 146 147 148 ... 167 168

Commenti su questo manuale

Nessun commento