• 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: Info for
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Info for


  • Subject: Re: Info for
  • From: Philip Aker <email@hidden>
  • Date: Tue, 19 May 2009 21:38:13 -0700

On 2009-05-19, at 19:44:25, Chris Page wrote:

(Personally, I don't think commands that operate on files should ever work with strings, because they're ambiguous. I think you should have to say “file …”, “alias …” or “POSIX file …”.)

I agree because, AppleScript, being the prime illustration of polymorphic functionality, when presented with an 'info for' for a string should return info about the  string. For instance, using the following quote (which I probably pinched from one of Ms Steiner's sigs):

info for "People seem to misinterpret complexity as sophistication. -- Niklaus Wirth"

we might expect a result like:

{byte count:148, character count:74, encoding:"US-ASCII", editable:true, insertion point:0, paragraph count:1, word count:9, attributes:{{range:{1, 74}, font-family:"Chalkboard", font-size:10.0, font-weight:bold, font-style:normal, text-decoration:none}}}


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
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: Info for
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Info for (From: Chris Page <email@hidden>)

  • Prev by Date: Re: Info for
  • Next by Date: MS Word - Delete all hyper links
  • Previous by thread: Re: Info for
  • Next by thread: Re: Info for
  • Index(es):
    • Date
    • Thread