Re: exists ... index 0 returns true
Re: exists ... index 0 returns true
- Subject: Re: exists ... index 0 returns true
- From: Carlos Ysunza <email@hidden>
- Date: Wed, 21 Dec 2005 18:17:22 -0600
- Thread-topic: exists ... index 0 returns true
Actually returns false if you use any number larger than the count of words
of the current document
If the document has 10 word and you try
exists word 10 -- true
But
exists word 11 -- false
Is this a bug? I don't think so...
Carlos Ysunza B.
Director
Ysunza/Santiago
Visual Communication Automation
Tel. (52)55 5256-0336
email@hidden
http://www.ysunzasantiago.com
http://www.thesecretmexico.com
http://www.applescript.com.mx
> From: Andrea -XFox- Govoni <email@hidden>
> Date: Tue, 20 Dec 2005 15:02:07 +0100
> To: "Mark J. Reed" <email@hidden>
> Cc: <email@hidden>
> Subject: Re: exists ... index 0 returns true
>
> Mark J. Reed ha scritto:
>
>>> tell application "TextEdit"
>>> tell document 1
>>> exists word 0 -- true
>>> end tell
>>> end tell
>>>
>>> I regard this as a bug. m.
>
>> Well, it appears to be fixed in Mac OS X 10.4.3.
>> Regards,
>
>> You and I must have different definitions of "fixed", then. :) The
>> above script runs and returns true OMM, which is running 10.4.3. You
>> can also freely substitute "document 0" for "document 1" - same results.
>
> Yes, I made a mistake, it actually returns true, but if the document is
> empty it returns false. This misled me.
> I apologize.
>
> --
> Andrea "XFox" Govoni
>
> AIM/iChat/ICQ: email@hidden
> Yahoo! ID: xfox82
> Skype Name: draykan
>
> PGP
> KeyID: 0x212E69C1
> Fingerprint: FBE1 CA7D 34BE 4A53 9639 5C36 B7A0 605F 212E 69C1
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden