• 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: Setting Pages Insertion point (was Setting TextEdit S( )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Pages Insertion point (was Setting TextEdit S( )


  • Subject: Re: Setting Pages Insertion point (was Setting TextEdit S( )
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 28 Sep 2007 12:55:15 -0700

On Sep 27, 2007, at 6:55 AM, Michelle Steiner wrote:

On Sep 27, 2007, at 3:53 AM, Shane Stanley wrote:

I'm sorry, but I fear that's gone over my head again. When I said "if
anything", I was referring to the situation possible in many apps, where
there is no selection (the property returns null or an empty list).

Is there an actual difference between an empty selection and no selection?

That depends on what you mean by both of those, but assuming my definitions, I would say yes. An "empty selection" means that the start and end positions are the same, so it contains no characters, *but it still has a location*, which means that using it as a reference point for "before" or "after" is meaningful. If there is "no selection", then there isn't even a location.


Are there any meaningful differences between null, {}, and missing value? FWIW, "null = empty value" returns false.

Well, the fact that "null" is exposed in AppleScript is really a bug, so I'm going to ignore that one. Even so, there are meaningful differences between {} and "missing value", and not just because they're fundamentally different types -- there are operations that will work on one that won't work on the other, such as "set end of x to y".



--Chris Nebel AppleScript Engineering

_______________________________________________
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/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Setting Pages Insertion point (was Setting TextEdit S( )
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Setting Pages Insertion point (was Setting TextEdit S( ) (From: Shane Stanley <email@hidden>)
 >Re: Setting Pages Insertion point (was Setting TextEdit S( ) (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Deleting address book fields
  • Next by Date: Re: RAM and CPU hogging
  • Previous by thread: Re: Setting Pages Insertion point (was Setting TextEdit S( )
  • Next by thread: Re: Setting Pages Insertion point (was Setting TextEdit S( )
  • Index(es):
    • Date
    • Thread