Or am I just an idiot (the latter isn't out of the question) ?
I've worked through the currency converter and the mail search apps
from Apple's own docs, as well as the demo's in the book "Beginning
Applescript:Programmer to programmer" and none of them run the way
they're supposed to!
For example, when I do a "Build and run" for the finished project
"Mail Search", I get an error dialog as follows on launch:
NSContainerSpecifierError (2)
Now I'll guess this is an indication that I've specified something
bad, but I'm using Apple's sample code here! I pasted it, I didn't
copy it!
So, to test this, I duplicated the demo app, just to see if my
linking in Interface Builder might be the cause of the fault. I
copied the Mail Search source folder from the examples folder in the
developer tools folder, and renamed the folder "Mail Search 2". I
did the same for the project file, so that it would have a
different name from the one I hand linked but cut and pasted apple's
applescript code for. I double clicked the project file to launch it
in XCode, and clicked "Build and Run" and ... BANG!
ContainerSpecifierError (2).
I can understand the that DTS might thinki it's fun to distribute
defective sample code. But honestly, guys, I have 15 years on this
platform. I've used applescript since '94, Macromedia Lingo since
'95, Javascript, UserTalk, hacked a piece of perl here and there,
typed a little C and oodles of shell script. I'm not a nitwit (I
hope) but how can I develop applications that grow your market and
mine if the sample code is broken?