Comments (7)
I think the issue is just with .scpt files, which are binary (although they show the source when first opened). When I create a file.applescript and add the same code I can build and run it fine and it stays plain-text. I've been working with the Script Editor before, that's why I thought .scpt files where the standard. Maybe you should mention in the ReadMe info that the plugin works best with the Applescript scope.
I can work with the editor fine now. Thanks for a great plugin!
from sublime-applescript.
I think I tried every possible combination, but I cannot reproduce this one. You build a plain-text AppleScript file and on completion the scope changes to AppleScript (Binary)? Does the view change as well (e.g. to hex?)
from sublime-applescript.
Well it's a .scpt file I've been working with in Script Editor, compiling and running. I load it in ST3, edit and then build or run it. The scope is AppleScript (Binary) before and after building. When I load it I see the source code, after build it changes to hex.
from sublime-applescript.
Ok, now I get it. You can just save the file and it will be compiled automatically, no need to build it. I'll have to check whether I can prevent building to avoid the issue you mentioned.
from sublime-applescript.
All issues resolved!
from sublime-applescript.
Just for the record: the Sublime Text API does not offer an on_build
event, so I can't prevent binary files from being build a second time (which messes up the file). However, this can be undone running the “AppleScript: Toggle Binary” command.
from sublime-applescript.
There is now a separate .sublime-build
file for binary AppleScript. Using it, you can still run or build as App/Script Bundle.
from sublime-applescript.
Related Issues (10)
- Syntax highlighting does not cover the entire file HOT 2
- "AppleScript: Toggle Binary" and AppleScript (Binary) syntax not working properly HOT 7
- Save cursor position and restore it after recompile binary HOT 1
- Nothing works in ST3 HOT 5
- Removes Applescript Package after Install HOT 10
- Incessantly displays dialogs about binary files when used in windows HOT 1
- edited files not "dirty" HOT 2
- 'Building...' message in status bar HOT 2
- Error loading syntax on startup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublime-applescript.