Skip to content

Commit 361c1ac

Browse files
author
Bastien Eichenberger
committed
add text threading support
1 parent 02d536e commit 361c1ac

File tree

10 files changed

+11
-5
lines changed

10 files changed

+11
-5
lines changed

public-scripts/ImportLayers/.bowerrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "dependencies/"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea
2+
3+
app/log

public-scripts/ImportLayers/app/ImportLayersApp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ try {
4949
//@include "includes/mainView.jsx"
5050

5151
if (app.documents.length === 0 || app.documents.length > 1) {
52-
alert('Please open the source document before you run this script');
52+
alert(TRANS.INIT.OPEN);
5353
exit();
5454
}
5555

Binary file not shown.

public-scripts/ImportLayers/app/includes/mainView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/** * Function to build the view * @return {Object} the view object with all ui elements */var mainView = function () { /*********************************************** * Public ***********************************************/ var that = {}; that.ui = new UI(TRANS.VIEW.TITLE.printf(CONSTANTS.VERSION.toString()), { alignChildren: 'left', resizeable: true } ); // pans that.pans = {}; that.row = that.ui.group('row', {orientation: 'row', alignChildren: 'top'}); that.column_left = that.row.group('row', {orientation: 'column', alignChildren: 'left'}); that.pans.layers = that.column_left.panel(TRANS.VIEW.LAYERS, { orientation: 'column', alignChildren: 'left' }); that.pans.items = that.column_left.panel(TRANS.VIEW.ITEMS, {orientation: 'column'}); that.pans.target = that.column_left.panel(TRANS.VIEW.TARGETS, { orientation: 'column' }); // groups that.grps = {}; that.grps.items_1 = that.pans.items.group('actions', { orientation: 'column', alignChildren: 'left', alignment: ['left', 'center'] }); that.grps.target = that.pans.target.group(TRANS.VIEW.TARGETS, { orientation: 'row', alignChildren: 'left', alignment: ['left', 'center'], size: [600, 50] }); that.grps.nav = that.ui.group('nav', {orientation: 'row', alignment: 'right'}); that.items_textframes = that.grps.items_1.add('checkbox', 'Textframes'); that.items_graphics = that.grps.items_1.add('checkbox', 'Graphics'); that.items_others = that.grps.items_1.add('checkbox', 'Others'); // controls target that.target_add = that.grps.target.add('button', TRANS.VIEW.BTN_TARGET); that.target_path = that.grps.target.add('statictext', TRANS.VIEW.BTN_TARGET_PLACEHOLDER, undefined, {size: [600, 50]}); // nav that.stop = that.grps.nav.add('button', 'stop', undefined, {name: 'cancel'}); that.run = that.grps.nav.add('button', TRANS.VIEW.RUN, undefined, {name: 'ok'}); return that;}
1+
/** * Function to build the view * @return {Object} the view object with all ui elements */var mainView = function () { /*********************************************** * Public ***********************************************/ var that = {}; that.ui = new UI(TRANS.VIEW.TITLE.printf(CONSTANTS.VERSION.toString()), { alignChildren: 'left', resizeable: true } ); // pans that.pans = {}; that.row = that.ui.group('row', {orientation: 'row', alignChildren: 'top'}); that.column_left = that.row.group('row', {orientation: 'column', alignChildren: 'left'}); that.pans.layers = that.column_left.panel(TRANS.VIEW.LAYERS, { orientation: 'column', alignChildren: 'left' }); that.pans.items = that.column_left.panel(TRANS.VIEW.ITEMS, {orientation: 'column'}); that.pans.target = that.column_left.panel(TRANS.VIEW.TARGETS, { orientation: 'column' }); // groups that.grps = {}; that.grps.items_1 = that.pans.items.group('actions', { orientation: 'column', alignChildren: 'left', alignment: ['left', 'center'] }); that.grps.target = that.pans.target.group(TRANS.VIEW.TARGETS, { orientation: 'row', alignChildren: 'left', alignment: ['left', 'center'], size: [600, 50] }); that.grps.nav = that.ui.group('nav', {orientation: 'row', alignment: 'right'}); that.items_textframes = that.grps.items_1.add('checkbox', 'Textframes'); that.items_graphics = that.grps.items_1.add('checkbox', 'Graphics'); that.items_others = that.grps.items_1.add('checkbox', 'Others'); that.repair_textframes = that.grps.items_1.add('checkbox', 'Repair text frames'); // controls target that.target_add = that.grps.target.add('button', TRANS.VIEW.BTN_TARGET); that.target_path = that.grps.target.add('statictext', TRANS.VIEW.BTN_TARGET_PLACEHOLDER, undefined, {size: [600, 50]}); // nav that.stop = that.grps.nav.add('button', 'stop', undefined, {name: 'cancel'}); that.run = that.grps.nav.add('button', TRANS.VIEW.RUN, undefined, {name: 'ok'}); return that;}

public-scripts/ImportLayers/app/includes/translations/EN.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var TRANS = {
44
SUPPORT: "This script works on Photoshop 13.0 (CS6) \n" +
55
"Install the correct version and try again",
66
CANCEL: "The Script has been forced to cancel",
7-
OPEN: "Please close all documents"
7+
OPEN: "Have exactly one document open to run the script successfully."
88
},
99

1010
VIEW: {

public-scripts/ImportLayers/app/includes/translations/FR.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var TRANS = {
44
SUPPORT: "Ce script fonctionne sur InDesign 13.0 (CS6) ou supérieur \n" +
55
"Installer une autre version et réessayer",
66
CANCEL: "Le script a été forcé a quitté",
7-
OPEN: "Please close all documents"
7+
OPEN: "Have exactly one document open to run the script successfully."
88
},
99

1010
VIEW: {

public-scripts/ImportLayers/app/log/log.log

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
2.38 MB
Binary file not shown.
2.38 MB
Binary file not shown.

0 commit comments

Comments
 (0)