You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> JXA support is now deprecated and has been moved to a separate extension. Please refer to the [deprecation notice](https://github.com/idleberg/vscode-jxa/discussions/2) for details.
9
+
> JXA support is now deprecated and has been moved to a separate extension.
10
+
> Please refer to the
11
+
> [deprecation notice](https://github.com/idleberg/vscode-jxa/discussions/2) for
12
+
> details.
10
13
11
14
Language syntax, snippets and build system for AppleScript.
12
15
@@ -22,19 +25,24 @@ Launch Quick Open, paste the following command, and press <kbd>Enter</kbd>
22
25
23
26
### CLI
24
27
25
-
With [shell commands](https://code.visualstudio.com/docs/editor/command-line) installed, you can use the following command to install the extension:
28
+
With [shell commands](https://code.visualstudio.com/docs/editor/command-line)
29
+
installed, you can use the following command to install the extension:
26
30
27
31
`$ code --install-extension idleberg.applescript`
28
32
29
33
### Packaged Extension
30
34
31
-
Download the packaged extension from the [release page](https://github.com/idleberg/vscode-applescript/releases) and install it from the command line:
35
+
Download the packaged extension from the
36
+
[release page](https://github.com/idleberg/vscode-applescript/releases) and
Alternatively, you can download the packaged extension from the [Open VSX Registry](https://open-vsx.org/) or install it using the [`ovsx`](https://www.npmjs.com/package/ovsx) command-line tool:
43
+
Alternatively, you can download the packaged extension from the
44
+
[Open VSX Registry](https://open-vsx.org/) or install it using the
@@ -44,49 +52,51 @@ $ ovsx get idleberg.applescript
44
52
45
53
### Building
46
54
47
-
On macOS, you can make use of the following build commands through the [command-palette](https://code.visualstudio.com/docs/editor/codebasics#_command-palette):
55
+
On macOS, you can make use of the following build commands through the
|`showNotifications`|`true`| Show build notifications indicating success or failure |
72
+
|`alwaysShowOutput`|`false`| Specify whether to show the output panel on errors only or on each build |
73
+
|`convertErrorRange`|`false`| Convert error range to line/column |
74
+
|`defaultBuildTask`|`"script"`| Specify the default build task when creating a new task file |
75
+
|`allowMultiTermination`|`false`| Allows the selection of multiple processes to be terminated |
76
+
|`osacompile.executeOnly`|`false`| Save the resulting script as execute-only |
77
+
|`osacompile.stayOpen`|`false`| Stay open after run handler |
78
+
|`osacompile.startupScreen`|`false`| Show startup-screen |
79
+
|`osascript.outputStyle`| - | The flags argument is a string consisting of any of the modifier characters `e`, `h`, `o`, and `s`|
69
80
70
81
#### File Encoding
71
82
72
-
In prior versions of macOS, the default character encoding for AppleScript text files was [Mac Roman](https://www.wikiwand.com/en/Mac_OS_Roman); it is now UTF-8.
83
+
In prior versions of macOS, the default character encoding for AppleScript text
84
+
files was [Mac Roman](https://www.wikiwand.com/en/Mac_OS_Roman); it is now
85
+
UTF-8.
73
86
74
-
If you are using this extension to edit old AppleScript text files, and your VS Code cannot open the files, you may need to change VS Code's default encoding for AppleScript files in the settings.
87
+
You can tweak the default file encoding in your Visual Studio Code settings.
75
88
76
89
**Example:**
77
90
78
91
```json
79
92
{
80
93
"[applescript]": {
81
-
"files.encoding": "utf16le"
94
+
"files.encoding": "macroman"
82
95
}
83
96
}
84
97
```
85
98
86
-
**Note:**
87
-
88
-
However, if an AppleScript file has been edited and compiled in Apple's Script Editor app, it saves the compiled binary into the same AppleScript file, making it unreadable in VS Code. To recover from this, open the AppleScript file in Apple's Script Editor app, and either copy the content from its UI, or use its File > Export to export the file as text-only file.
89
-
90
99
## License
91
100
92
-
This work is licensed under [The MIT License](https://opensource.org/licenses/MIT).
101
+
This work is licensed under
102
+
[The MIT License](https://opensource.org/licenses/MIT).
0 commit comments