Re: Applescript coding
Re: Applescript coding
- Subject: Re: Applescript coding
- From: Shane Stanley <email@hidden>
- Date: Tue, 19 May 2015 21:50:58 +1000
On 19 May 2015, at 7:52 pm, Jean-Christophe Helary <email@hidden> wrote:
>
> I like Script Editor very much so far
You'll recover...
> but I've been using TextWrangler/BBedit a lot in recent years (and BBEdit Lite before that), and I was wondering about the lack of support for Applescript syntax in them. The available file formats include Assembler, Action Script and Ansi C and that's all for the letter A. Am I missing something ?
AppleScript is compiled according to multiple dictionaries, not just syntax. And it's complicated by the fact that terms can consist of multiple words, not to mention that the compiler has more than its share of quirks. Xcode has a shot at it, and the result is dreadful -- terms like "missing value" end up with one word in one color and the other in something different.
If you're serious, Script Debugger is *the* full featured AppleScript editor.
>
> Also, I tried to code AS in Xcode and there does not seem to be a way to run the code the way one does in Script Editor. Am I missing something here too ?
No -- that's the way Xcode works. You can use it to build AppleScriptObjC projects, which are just Cocoa apps written in AppleScript -- but it has no compile or run commands for individual scripts (or any other sort of file, for that matter). Even there, for sanity's sake you should use Open with External Editor. And if you want an editor specifically for AppleScriptObjC, I naturally have to recommend my own ASObjC Explorer.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden