Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Getting off (my ASS)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Getting off (my ASS)
Authored by: pmccann on Dec 18, '01 09:54:14AM

Thanks for the applescript James. (aaah, applescript, looks so "English-like", proves so "bloody frustrating-like". While I've done good things with Applescript it has extracted a considerable toll! Tonights mini-episode involved the posted script. To test it I added a "set me to unix_path("space:System Folder") line at the top, and a "display dialog me" at the end. I then puzzled aloud for about two minutes at the "access denied" error message, before remembering that "me" is a reserved word in applescript. )

Anyway, this is not meant to be one of my pathetically negative rambling messages, but distinctly more positive: applescript just became *immensely* more powerful with the shell script capability. Because, for example, perl scripts "are" shell scripts. So as per the above Entourage query, you should be able to use full perl parsing capabilities on your email messages. No more ugly applescript string hacking. (Yes, it's *really* ugly!) Real hashes if you need them. Yum.

In concert with this, you can put very minimal applescript wrappers around, for example, perl scripts, and create GUI apps using ASS. The very thing whose absence I was lamenting no more than a couple of days ago [that is, the inability to run a shell script from applescript except by opening a new terminal window every time]] is now present. There's a nice sample of how to make an ASS (of) yourself via a shell script in

/Developer/Examples/AppleScript Studio/Simple Shell

Yes, Veronica, it *is* simple. Finally, it is true that you cannot deploy ASS applications (yeah, yeah, I actually like the acronym) until 10.1.2 is released, but for local consumption they run fine through projectbuilder.

Cheers,
Paul



[ Reply to This | # ]