Re: Exists command (was: AppleScript-Users Digest, Vol 4, Issue 2)
Re: Exists command (was: AppleScript-Users Digest, Vol 4, Issue 2)
- Subject: Re: Exists command (was: AppleScript-Users Digest, Vol 4, Issue 2)
- From: kai <email@hidden>
- Date: Wed, 3 Jan 2007 10:26:00 +0000
On 3 Jan 2007, at 10:03, Axel Luttgens wrote:
On 2/01/07 21:17, Barry Wainwright wrote:
[...]
'exists' is actually a command from standard additions, I'm using
it like a
property of the window to emphasise this point. More common would
be to use
a construct like 'if window 1 exists', or 'if exists window 1'.
[...]
Just to avoid any ambiguity, I would like to correct a typo in the
above.
'exists' is a Finder command, not a Standard Additions one.
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
----------------
---
kai
_______________________________________________
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