• 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: Please explain this!? More....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please explain this!? More....


  • Subject: Re: Please explain this!? More....
  • From: Jon Pugh <email@hidden>
  • Date: Fri, 23 Nov 2001 13:21:24 -0800

At 7:27 PM +0100 11/23/2001, Harald E Brandt wrote:
>It's just too much debugging I am doing rather than writing correct from the beginning.

Welcome to AppleScript.

>if there is a strictly logical execution model, I would like to get that into my head! It would decimate debugging time....

The key is to understand the general structure of an object specifier and the AppleEvent it gets stuffed into, since that gives you the conceptual model that all scriptable applications follow. I could drone on about it, but I haven't the time. I suppose you should read the ASLG:

<http://developer.apple.com/techpubs/macosx/Carbon/interapplicationcomm/AppleScript/applescript.html>


I personally use the "write a little bit that works" technique to accumulate little segments into a working script. Thus, I use two script windows, one with the big saved script, and one with the current snippet that I'm getting to work the way I want it to.

I haven't found a better way to write working AppleScripts in the nine years I've been using AppleScript.

Jon

Man, how time flies.


References: 
 >Re: Please explain this!? More.... (From: Paul Berkowitz <email@hidden>)
 >Re: Please explain this!? More.... (From: Harald E Brandt <email@hidden>)

  • Prev by Date: Re: Please explain this!? More....
  • Next by Date: Number of days since 1/1/0001
  • Previous by thread: Re: Please explain this!? More....
  • Next by thread: Re: Please explain this!? More....
  • Index(es):
    • Date
    • Thread