Apple Previews New Script Editor 21
DrC writes "Apple has released a preview update to the venerable Script Editor, rewritten using Cocoa. It looks like an impressive upgrade." The preview release is included with the Dec 2002 Developer Tools as a separate install, too.
Re:The editor? (Score:2, Informative)
Re:The editor? (Score:5, Informative)
As a general guideline, when you aren't aware of what's going on you should post questions, not statements.
Re:The editor? (Score:2)
Posts like Parent suggest a a new /. mod type may be in order: "Uninformed".
OS X has PERL. If you want to write code to allow apps in OS X to interact with one another without passing large amounts of information, you use AppleScript. If you want to do a lot of textual heavy lifting, you use PERL. You want to write an application, you can use Objective C, Java, or use C with the Carbon libraries.
Advantages of AppleScript over sh, awk, sed, etc? (Score:3, Interesting)
Re:Advantages of AppleScript over sh, awk, sed, et (Score:5, Informative)
For example, it's valid to say:
if you run this, it'll copy whatever you have selected in the Finder to ~/Foo
The downside is that you have to rely on the developer of the application you want to control to have created the proper hooks.
Re:Advantages of AppleScript over sh, awk, sed, et (Score:2)
Cheers.
p.s. Can Java apps receive Apple Events?
Re:Advantages of AppleScript over sh, awk, sed, et (Score:5, Informative)
Oh, and another reason is that there are various applications with good AppleScript integration, notable the Finder. For example, you can create "Folder actions", which are scripts that are automatically executed when you open a folder, or drag something into it etc.
One more thing I should note is that the underlying system (OSA) is quite flexible. In particular, an applications "dictionary" (which contains a description of all objects reachable via IPC and their properties etc) is fairly language-agnostic. It's for example probably possible to write a perl OSA-plugin, which would allow the user to use the Script Editor to write an run perl scripts to control applications via AppleEvents. In fact, if the plugin has handlers for converting AEs to script, the user can "record" scripts. (the system intercepts AEs caused by manual user actions, and translates them into script. pretty cool)
So there's more to AppleScript than meets the eye. See also Inside Macintosh: InterApplication Communication [apple.com] and other AE/AS/OSA related docs [apple.com].
Re:Advantages of AppleScript over sh, awk, sed, et (Score:4, Interesting)
AppleScript = Slow (Score:1)
Re:AppleScript = Slow (Score:4, Insightful)
Use the right tool for the job.
Other Applescript news (Score:3, Informative)
applescripting csh and csh'ing applescript (Score:4, Informative)
There's no need to bicker about scripting languages when they can call each other.
It's all good.
What the world needs is fewer karma whores and more good friends.
Go ahead, friend.
Re:applescripting csh and csh'ing applescript (Score:4, Informative)
And the reverse is also possible: executing shell scripts directly from AppleScripts using the "do shell script" command.
GUI Scripting (Score:3, Interesting)
AppleScript STILL mysteriously unpromoted... (Score:2)
When HyperCard was introduced, it included a very decent tutorial and reference manual in stack form, and a good print manual was available from Apple.
AppleScript may not be the greatest thing since sliced bread but it is darned good.
Peace, Perl users. Relax, TCL users. No argument, REALbasic or VB fans. I'm not criticizing your favorite languages. I'm just saying AppleScript is darn good--and is beautifully integrated into the Mac OS. Not everyone wants or needs a Mac-OS-oriented scripting language, but there IS one, and it's lovely.
Why, oh why hasn't Apple produced a good set of AppleScript books--comparable to, say, those REALsoftware has for REALbasic? Why doesn't it try to SELL them as a checkoff option on their build-to-order menu?
It's great that it wasn't lost (along with so much else good System 7.5 technology). It's great that they recoded it native. It's great that it's in OS X. But it is still a hidden treasure.
Right now, about 0.001% of all Apple users know and use AppleScript. It should be more like 1%.