• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: exists ... index 0 returns true
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exists ... index 0 returns true


  • Subject: Re: exists ... index 0 returns true
  • From: Andrea -XFox- Govoni <email@hidden>
  • Date: Tue, 20 Dec 2005 15:02:07 +0100

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

  • Follow-Ups:
    • Re: exists ... index 0 returns true
      • From: Carlos Ysunza <email@hidden>
References: 
 >Re: exists ... index 0 returns true (From: Andrea -XFox- Govoni <email@hidden>)
 >Re: exists ... index 0 returns true (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: scripting the Airport menu
  • Next by Date: Re: Check Server Availability
  • Previous by thread: Re: exists ... index 0 returns true
  • Next by thread: Re: exists ... index 0 returns true
  • Index(es):
    • Date
    • Thread