Applescript and emacs :)
Applescript and emacs :)
- Subject: Applescript and emacs :)
- From: Jean-Christophe Helary <email@hidden>
- Date: Wed, 29 Mar 2017 22:34:54 +0900
I suppose not a lot of you use emacs to write Applescript, otherwise the apples-mode, which seems to be the most advanced Applescript mode for emacs around, would have been upgraded a serious while ago.
I've just sent a pull request to adapt the thing to OSX 10.10+/emacs 25+, by changing the editor name to "Script Editor" and by adding a few prefixes to deprecated cl functions. That's my first pull request ever :-) (Champagne !!!) and considering how the author has *not* been active on github for the past 6 years, I also fear the request will fall on deaf hears (if it falls anywhere at all...) but it's there anyway.
The mode calls SE to open dictionaries but otherwise relies on osacompile/osadecompile to do its work. I've run my XML thing from there just for testing and that worked like a charm (of course, from an .applescript file).
The syntax coloring is not as perfectly perfect as SE/SD (for a discussion on that, check the SD forum ;-) but it's still very helpful and very nicely puts contrast where needed.
There is access to snippets of code, through yasnippet-mode, and I've created a pull request also to add the apples-mode snippets to the official yasnippet repository that's regularly updated in the elpa archive.
As far as I can tell from just a few hours of trying the thing, emacs+apples-mode+yasnippet-mode is vastly less annoying than AS and as powerful as emacs can be, it does not come with all the Script Debugger wonders, but it's FOSS.
Et voilĂ !
Jean-Christophe
_______________________________________________
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