Saturday, June 24, 2017

#1 2005-10-13 02:46:51 pm

julifos
Administrator
From: MalasaƱa, Madrid
Registered: 2002-11-20
Posts: 2014

What is a "tell block"?

Usually, we call "tell block" to any code within "tell"-"end tell" statements, when "tell" is targeting an application. This is a "tell block":

Applescript:

tell application "Finder"
   empty
end tell

Here, we tell the Finder to empty the trash.

And this is also a "tell block":

Applescript:

tell application "Finder" to empty

And this is not a "tell block":

Applescript:

set x to {2, 45, 72}
tell x
   item 2
end tell

Here, the variable "x" is an AppleScript object (a list), not an application; so, we don't consider this a "tell block".


Filed under: Finder

Offline

 

Board footer

Powered by FluxBB

[ Generated in 0.034 seconds, 10 queries executed ]

RSS (new topics) RSS (active topics)