• 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: Briskets / English
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Briskets / English


  • Subject: Re: Briskets / English
  • From: Paul Skinner <email@hidden>
  • Date: Wed, 15 May 2002 20:17:26 -0400

On Wednesday, May 15, 2002, at 05:17 PM, Matthew Stuckwisch wrote:

tell application "Finder" to get the startup disk's first folder's item
1's name
--> "Applications"

which is a much closer analogy to dot syntax. I didn't follow that part of
the discussion which omitted this, but didn't realize that the writer just
didn't know about it.

I've been thinking about dot syntax and it's possibilities in AppleScript.
Honestly, it -could- be implemented without breaking ANY scripts. Try this in Script Editor:

on dr.Mario(nursePeach)
--Let's try to compile this
end dr.Mario

I'm trying to see why you want to be able to do that. First I had to realize (not being enamored of a dot syntax language) that you didn't mean Doctor Mario. Now that I read further I see you're talking about replacing the possessive syntax 'x's y' with 'x.y'; so your example (in the possessive syntax) would be...

on dr's Mario(nursePeach)
--Let's try to compile this
end dr's Mario

What is that? It isn't a handler definition. It's not an illustrative variable name word play.

Disregarding my confusion at your example code, I don't see any clear advantage to writing in that syntax. It sure isn't very AppleScripty.
So what's the reason it would be a good thing?

If you compile it, it will error. This being on the latest beta of AS, I don't think it would -too- hard to allow "x.y" for "x's y" since that's almost the difference between "is equal to" and "=", but I'm not an expert at AS's internals so I can't say for sure. Might be a thing for the AS engineers to keep in mind.

Matthew Stuckwisch

My dream is that they are drinking beer and eating pizza and discussing how to make TIDs return lists of any length. :^)... mmhhhh...
--
Paul Skinner

must be dinner time.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Briskets / English
      • From: Matthew Stuckwisch <email@hidden>
References: 
 >Re: Briskets / English (From: Matthew Stuckwisch <email@hidden>)

  • Prev by Date: Re: Quitting a script
  • Next by Date: Re: deep archives
  • Previous by thread: Re: Briskets / English
  • Next by thread: Re: Briskets / English
  • Index(es):
    • Date
    • Thread