be a light unto yourself

Four scripts, four corresponding applescript apps, 4 operating systems, two computers.


tell application "Finder" to delay 10
display dialog "hello"


tell application "System Events"
	tell application "Finder"
		activate

		tell application "Finder" to delay 10
		display dialog "hello"

	end tell
end tell


tell application "System Events"
	tell application "Finder"
		activate

		tell application "Finder"
			delay 10

			display dialog "hello"

		end tell
	end tell
end tell


tell application "System Events"
	tell application "Finder"
		activate

		tell application "Finder"
			delay 10

			tell application "Finder"
				display dialog "hello"

			end tell
		end tell
	end tell
end tell

OS 10.9.5, OS 10.10.5, OS 10.11.6 and OS 10.12.5

The four scripts and their four corresponding applescript apps were tested across the four OS’s above - across 5 trials on two computers. In case anyone is interested in the results - but would like to ponder and take a guess as to which scripts and/or apps successfully executed the 10 second delay command (if any), rather than post the results here, I’ll post them in a separate post, immediately.

What is the sense to tell the Finder to delay?

The delay command is not part of the Finder dictionary, it’s a built-in command (not even a Scripting Addition) which can / should be used outside an application tell block.

And what is the sense of the nested Finder tell blocks? That’s pretty far from reality / good practice.