• 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: Can someone please explain (Language Guide)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can someone please explain (Language Guide)


  • Subject: Re: Can someone please explain (Language Guide)
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 10 Jan 2008 09:56:48 +0100

On 10/01/08 9:20, Skeeve wrote:

I'm having difficulties understanding something on http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/AppleScript.d9.html#29901


(quote) "directParameterVariable (an identifier) is a parameter variable (also called a formal parameter) that represents the actual value of the direct parameter. You use this identifier to refer to the direct parameter in the body of the subroutine definition. As with application commands, the direct parameter must be first."


can someone please give me an example definition and an example call of such a subroutine/handler?


Not really useful in this case, but should give the idea:

   on getItem of ThisList at Pos
       return item Pos of ThisList
   end getItem

   getItem of {"a", "b", "c"} at 2
   --> "b"

HTH,
Axel
_______________________________________________
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: Can someone please explain (Language Guide)
      • From: Skeeve <email@hidden>
References: 
 >Can someone please explain (Language Guide) (From: Skeeve <email@hidden>)

  • Prev by Date: tell or not to tell
  • Next by Date: Re: tell or not to tell
  • Previous by thread: Can someone please explain (Language Guide)
  • Next by thread: Re: Can someone please explain (Language Guide)
  • Index(es):
    • Date
    • Thread