Re: Exists command
Re: Exists command
- Subject: Re: Exists command
- From: Axel Luttgens <email@hidden>
- Date: Wed, 03 Jan 2007 12:51:37 +0100
On 3/01/07 11:26, kai wrote:
[...]
Yeah, I noticed that, too, Axel. But just to avoid any ambiguity,
'exists' is actually a general application command that determines
whether the object specified by a reference exists. So it works in
Finder, as well as elsewhere. ;-)
For example:
----------------
tell application "TextEdit"
exists window 1
end tell
----------------
Hello Kai, nice to meet you again.
You are right: the ASLG defines 'exists' as a standard application
command, yet without telling it is a required one.
My understanding is that one may not take for granted that any
application implements it.
But I was sure about the Finder, without ambiguity. ;-)
Now, the fact is that more and more scriptable applications tend to
include 'exists' as a command, mainly as a benefit of Cocoa's built-in
support for it.
Happy new year to all,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden