• 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: Scope riddle I can't seem to solve. (Probably very easy to solve for an experienced coder)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scope riddle I can't seem to solve. (Probably very easy to solve for an experienced coder)


  • Subject: Re: Scope riddle I can't seem to solve. (Probably very easy to solve for an experienced coder)
  • From: Christopher Stone <email@hidden>
  • Date: Wed, 19 Mar 2014 17:26:09 -0500

On Mar 19, 2014, at 06:48, Alastair Leith <email@hidden> wrote:
Okay I got it done this way:

tell me
paste_cells_into_Excel_and_Process(cellText, rowCounter)
end tell
______________________________________________________________________

Hey Alastair,

There's no need to use a tell-block unless it enhances readability or multiple statements are involved.

my paste_cells_into_Excel_and_Process(cellText, rowCounter)

OR

paste_cells_into_Excel_and_Process(cellText, rowCounter) of me

I thought I'd already tried that but obviously not correctly :-)

That happens from time to time.  ;-)

I'm very interested if anyone has any philosophical, style guide or optimisation type answers and/or preferences to the question of when to use tell blocks. And how to use tell blocks in nested or unnested ways (pref for parallel or series usage).

What AppleScript books do you have?

The two books I recommend most often are:

AppleScript: The Definitive Guide: Scripting and Automating Your Mac

Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X

--
Best Regards,
Chris

 _______________________________________________
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

References: 
 >Scope riddle I can't seem to solve. (Probably very easy to solve for an experienced coder) (From: Alastair Leith <email@hidden>)
 >Fwd: Scope riddle I can't seem to solve. (Probably very easy to solve for an experienced coder) (From: Alastair Leith <email@hidden>)

  • Prev by Date: Re: ID of a Disk
  • Next by Date: Re: Scope riddle I can't seem to solve. (Probably very easy to solve for an experienced coder)
  • Previous by thread: Re: Scope riddle I can't seem to solve. (Probably very easy to solve for an experienced coder)
  • Next by thread: Re: Fwd: Scope riddle I can't seem to solve. (Probably very easy to solve for an experienced coder)
  • Index(es):
    • Date
    • Thread