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
Copy file name to clipboardExpand all lines: README.md
+36-28Lines changed: 36 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@
4
4
5
5
Create CEP Extensions with no build configuration. Closely matches functionality from [Create React App](https://github.com/facebookincubator/create-react-app).
6
6
7
-
*[Getting Started](#getting-started) – How to create a new app.
8
-
*[User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/create-cep-extension-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.
7
+
-[Getting Started](#getting-started) – How to create a new app.
8
+
-[User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/create-cep-extension-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.
9
9
10
10
Create React App works on macOS, Windows, and Linux.<br>
11
11
If something doesn’t work please [file an issue](https://github.com/facebookincubator/create-react-app/issues/new).
@@ -120,31 +120,39 @@ You can then send the ZXP archive to your users to install using a ZXP installer
120
120
121
121
## Environment Variables
122
122
123
-
You can customize the name of the extension and multiple other variables by modifying the `.env` file.
123
+
You can customize the name of the extension and multiple other variables by modifying the `.env` file.
124
124
125
-
````bash
125
+
```bash
126
126
NAME="My Extension"
127
127
BUNDLE_ID="com.mycompany.myextension"
128
-
````
128
+
```
129
129
130
130
### Hosts
131
131
132
132
By default, the extension will target all known Adobe hosts. To target specific hosts, uncomment the `HOSTS` variable to `.env` and modify the list of the hosts you want to target.
133
133
134
134
For example, to target just Illustrator and After Effects, you would add this to your `.env` file:
135
135
136
-
````bash
136
+
```bash
137
137
HOSTS="ILST, AEFT"
138
-
````
138
+
```
139
139
140
140
And to target specific versions:
141
141
142
-
````bash
142
+
```bash
143
143
HOSTS="ILST, IDSN@*, PHXS@6.0, AEFT@[5.0,10.0]"
144
-
````
144
+
```
145
145
146
146
This will target all versions of Illustrator and In Design, Photoshop 6.0, and After Effects 5.0 - 10.0.
147
147
148
+
### Type
149
+
150
+
Sets the type of window. Options are `ModalDialog`, `Modeless`, `Panel` is default.
151
+
152
+
```bash
153
+
UI_TYPE=ModalDialog
154
+
```
155
+
148
156
### Icon
149
157
150
158
To add a custom panel icon, add all [icon files](https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_8.x/Documentation/CEP%208.0%20HTML%20Extension%20Cookbook.md#high-dpi-panel-icons) inside the `public` folder and set their paths inside your `.env` file:
@@ -176,43 +184,43 @@ There are few functions that you can import from the `cep-interface` package to
176
184
177
185
Loads and evaluates the specified file in the src/extendscript directory. Returns a promise with the result.
178
186
179
-
````javascript
180
-
import { loadExtendscript } from'cep-interface'
187
+
```javascript
188
+
import { loadExtendscript } from'cep-interface';
181
189
182
-
loadExtendscript('index.jsx')
183
-
````
190
+
loadExtendscript('index.jsx');
191
+
```
184
192
185
193
### `evalExtendscript(code: string): Promise`
186
194
187
195
Evaluates the specified code. Returns a Promise.
188
196
189
-
````javascript
190
-
import { evalExtendscript } from'cep-interface'
197
+
```javascript
198
+
import { evalExtendscript } from'cep-interface';
191
199
192
-
evalExtendscript('$.writeln("Hello Foo");') // writes "Hello Foo" to the info panel
193
-
````
200
+
evalExtendscript('$.writeln("Hello Foo");');// writes "Hello Foo" to the info panel
201
+
```
194
202
195
203
If you return a JSON string using [json2](https://github.com/douglascrockford/JSON-js) or similar from Extendscript, you can get the parsed result.
Opens the url in the default browser. Will also work when viewing outside the target application in a browser.
218
226
@@ -222,6 +230,6 @@ We'd love to have your helping hand on `create-cep-extension`! See [CONTRIBUTING
222
230
223
231
## Todo
224
232
225
-
* Improve target host configuration per [#4](https://github.com/fusepilot/create-cep-extension/pull/4).
226
-
* Create ````.jsxbin````'s automatically and smoothly. Adobe has made this nearly impossible to do on macOS, so not sure if its worth the trouble. Especially since .jsxbin doesn't really deter hackers.
227
-
* Testing.
233
+
- Improve target host configuration per [#4](https://github.com/fusepilot/create-cep-extension/pull/4).
234
+
- Create `.jsxbin`'s automatically and smoothly. Adobe has made this nearly impossible to do on macOS, so not sure if its worth the trouble. Especially since .jsxbin doesn't really deter hackers.
0 commit comments