Newbie Questions
Newbie Questions
- Subject: Newbie Questions
- From: Luke Burton <email@hidden>
- Date: Tue, 27 May 2003 21:23:22 +1000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I have a series of painful newbie questions. Please don't hesitate to
beat me with the relevant sections of the FAQ if I've missed the
obvious.
Some general ones first.
* Where is intellisense? Is there really, honestly,
cross-your-heart-and-hope-to-die no intellisense in Project Builder for
AppleScript? This is a de facto feature in every non-commandline IDE
I've used for the past few years now. I'm hoping there's a button I can
press to turn it on ;)
* Where is context sensitive help? Can I select a word then be whisked
to the AppleScript dictionary entry for it?
* Is there a shortcut key to check syntax for your current AppleScript
file in Project Builder? Or do I have to mouse over to the tick symbol
all the time?
Now some ones pertaining to my first play application.
on clicked theObject
if the name of theObject is equal to "Action" then
tell application "Mail"
repeat with myMailbox in mailboxes of account "Personal"
using terms from application "ApplescriptTest"
set myRef to reference of text field "editBox" of window
"mainWindow"
set myString to contents of myRef
set myString to myString & (name of myMailbox)
set contents of myRef to myString
end using terms from
end repeat
end tell
end if
end clicked
* I had real problems figuring out the nested 'tell' / 'using'
statements here. What are the rules on this stuff? Can you import
'namespaces' in the same way that you can in C++, Java, Perl, C#, etc?
* When I run this app, I get "Mail got an error.
NSCannotCreateScriptCommand Error (10)". How on earth would I begin to
debug this? I do not know how to find where this is being emitted in my
AppleScript. I ripped the sections pertinent to Mail into Script Editor
and they executed just fine.
* The idiom for appending text to the "editBox" I have set up here
seems clunky. Is there a more elegant way?
Finally, my motivation. I am interested in having a script parse my
incoming mails and send them off to CRM114 on the command line in OS X
(Google for info on CRM114. But the author says "if Perl is a swiss
army knife, CRM114 is a razor sharp kitana that can talk"). I'd like to
use CRM144's text categorisation abilities to guess where my mail
should be sorted (guesses will be approved and trained over time). And
to kill spam a bit more effectively.
Rgz,
Luke.
- --
Luke Burton.
(PGP keys:
http://www.hagus.net/pgp)
If it looks like a duck, quacks like a duck, and walks
like a duck, it's probably just a tool of the conspiracy.
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.2
iQA/AwUBPtNKsICXGdaqw+o1EQKMqwCfU7kHR1Zi0U6QzvYCDGHAreya9k4An2HW
DH1sJaFg64emAwwri1l8kMj+
=qKgB
-----END PGP SIGNATURE-----
_______________________________________________
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.