idleberg / vscode-applescript

Language syntax and snippets for AppleScript
https://marketplace.visualstudio.com/items?itemName=idleberg.applescript
MIT License
72 stars 8 forks source link

Compile a run-only script or app ? #11

Closed nicolinuxfr closed 6 years ago

nicolinuxfr commented 6 years ago

The Script Editor app has an option to export a run-only script or app. When used, the script can only be runned, the source can not be read or modified.

capture d ecran 2018-08-08 a 18 23 37

If it is possible, could we have a similar option when compiling a script from Visual Studio Code ?

idleberg commented 6 years ago

You can configure this extension to support any of these options, but there's no quicker way of changing this. I'll continue to work on this when I'm back from my vacation :wink:

nicolinuxfr commented 6 years ago

Thanks !

I’m not sure I understand however : how can I configure the extension ?

idleberg commented 6 years ago

demo

nicolinuxfr commented 6 years ago

Oh okay I had not seen the update. Great news, I will try this setting.

Thanks again for your work ! 🙏

idleberg commented 6 years ago

If your setup changes with projects, you can now use v0.14's new Create Build Task command to create Visual Studio tasks that are easy to edit.

nicolinuxfr commented 6 years ago

Wow, thanks, I was not expecting that ! I discovered VSCode tasks with your update, and I was able to create a task that exports every script I have in the right directory.

So it is now much quicker than using the standard Script Editor app. 👍