Quantcast
Channel: Adobe Community : All Content - All Communities
Viewing all 290743 articles
Browse latest View live

AdobeExpiryCheck utility does n't detect serial licence in our organization


Re: Plan Taking Unauthorised Payment

$
0
0

Hello,

 

I am having the same problem and I have tried everything to cancel, but it isn't clear, or showing in My Plans because its not a Direct Debit, its a card payment.

 

I also have done the free trial and only used a few images.   I have tried to call the number 888 649 2990 from UK and it doesn't work!!!

 

Someone PLEASE HELP!!!

Adobe Acrobat Pro 2017 Download

$
0
0

Where I can Download Adobe Acrobat Pro 2017 on my New Mac OS High Sierra?

 

Thanks in advance.

Crashing report

$
0
0

my flash player crash when i playing game online, What should i do? this is a site where my games or videos crash [moderator: links removed as there's no Flash on the links posted; additionally, self-promoting your site(s) is not allowed on these forums]

Wechsel zum Creative-Cloud Abo vom FotoAbo

$
0
0

Hallo liebe Community,

ich habe vor ein par Tagen mein Adobe Foto Abo gekündigt und wollte eigentlich auf das volle Abo für Schüler und Studenten der Creative Cloud in Anspruch nehmen. Sobald ich allerdings das neu abonnieren möchte, bekomme ich eine Fehler Meldung in der vorab die Stornierung gefordert wird. Dies kann ich allerdings nicht finden.

Habt ihr schon ein ähnliches Problem gehabt und könnt mir weiter helfen?

 

Vielen Dank schonmal vorab und liebe Grüße,

Sabrina

I have a wrong script. Can anyone fix it for me?

$
0
0

var USER_CONFIG= {

      regexlist : {

         "あ" : "あ"

      },

      debug : false

}

var USER_FUNCS = {

      "[]で囲む" : function(textRange,spot){

               textRange.contents = "["+textRange.contents+"]";

     }

};

function searchreplacewordDialog() {

    function get_FILE(t, r) {

        r === undefined && r = "\n";

        t === undefined && t = /\s+/;

        var F = File.openDialog();

        F.open("r");

        var T = F.read();

        F.close();

        T = T.split(r);

        if (t !== false) {

            var z = [];

            for (i = 0, l = T.length; i < l; i++) {

                z.push(T[i].split(t));

            }

            return z;

        }

        return T;

    }

    var L = [];

    var D = MDM({

        type: "dialog",

        title: "検索置換リスト",

        opt: {},

        pos: [0, 0, 350, 300],

        layout: [{

            pos: [0, 0, 350, 300],

            type: "group",

            name: "Group",

            option: {},

            items: [{

                type: "statictext",

                name: "StaticText",

                label: "検索",

                option: {},

                pos: [11, 13, 35, 28]

            }, {

                type: "edittext",

                name: "SEARCHWORD",

                label: "",

                option: {},

                pos: [39, 10, 147, 28]

            }, {

                type: "statictext",

                name: "StaticText",

                label: "置換",

                option: {},

                pos: [150, 13, 174, 28]

            }, {

                type: "edittext",

                name: "REPLACE",

                label: "",

                option: {},

                pos: [177, 10, 285, 28]

            }, {

                type: "button",

                name: "EDIT",

                label: "追加",

                option: {},

                pos: [290, 8, 340, 27]

            }, {

                type: "button",

                name: "DELETE",

                label: "削除",

                option: {},

                pos: [10, 275, 60, 292]

            }, {

                type: "button",

                name: "LOAD",

                label: "読み込み",

                option: {},

                pos: [65, 275, 135, 292]

            }, {

                type: "button",

                name: "SAVE",

                label: "保存",

                option: {},

                pos: [140, 275, 190, 292]

            }, {

                type: "button",

                name: "OK",

                label: "進む",

                option: {},

                pos: [293, 275, 343, 292]

            }],

            label: "Group"

        }]

    });

    var myList = D.wD.add("listbox", [10, 34, 342, 271], "", {

        numberOfColumns: 2,

        showHeaders: true,

        columnTitles: ["検索文字", "置換文字"]

    });

    var myListAdd = function(T) {

        with(myList.add("item", T[0])) {

            subItems[0].text = T[1];

        }

    };

    with(D.items.Group) {

        items.EDIT.onClick = function() {

            var TA = D.items.Group.items.SEARCHWORD.text;

            var TB = D.items.Group.items.REPLACE.text;

            if (TA) {

                var F = myList.find(TA);

                if (F) {

                    if (TB) {

                        F.subItems[0].text = TB;

                    } else {

                        myList.remove(F);

                    }

                } else {

                    if (TB) {

                        myListAdd([TA, TB]);

                    }

                }

            }

        };

        myList.onDoubleClick = function() {

            D.items.Group.items.SEARCHWORD.text = this.selection.text;

            D.items.Group.items.REPLACE.text = this.selection.subItems[0].text;

        };

        items.DELETE.onClick = function() {

            myList.removeAll();

        };

        items.LOAD.onClick = function() {

            var L = get_FILE();

            for (i = 0, l = L.length; i < l; i++) {

                L[i][0] && myListAdd(L[i]);

            }

        };

        items.SAVE.onClick = function() {

            var I = myList.items;

            var S = [];

            for (i = 0, l = I.length; i < l; i++) {

                S.push([I[i].text, I[i].subItems[0].text].join("\t"));

            }

            var SaveFile = File.saveDialog("検索置換リストを保存します。");

            if (!SaveFile) {

                alert("保存をキャンセルしました。");

                return false;

            }

            SaveFile.open("w");

            SaveFile.write(S.join("\n"));

            SaveFile.close();

        };

        items.OK.onClick = function() {

            var I = myList.items;

            for (i = 0, l = I.length; i < l; i++) {

                L.push([I[i].text, I[i].subItems[0].text]);

            }

            D.wD.close(0);

        };

    }

    D.wD.center();

    var X = D.wD.show();

    if (X == 2) {

        return [];

    }

    return L;

}

var r4FUNCS = {

    "半角英数を全角英数にする": function(t, s) {

        var t_temp = "";

        for (var i = 0; i < t.contents.length; i += 1) {

            if (t.contents[i].search(/[0-9A-Za-z_]/) >= 0) {

                t_temp += String.fromCharCode(t.contents[i].charCodeAt(0) + 65248);

            } else {

                t_temp += t.contents[i];

            }

        }

        t.contents = t_temp;

    },

    "全角英数を半角英数にする": function(t, s) {

        var t_temp = "";

        for (var i = 0; i < t.contents.length; i += 1) {

            if (t.contents[i].search(/[a-zA-Z0-9]/) >= 0) {

                t_temp += String.fromCharCode(t.contents[i].charCodeAt(0) - 65248);

            } else {

                t_temp += t.contents[i];

            }

        }

        t.contents = t_temp;

    },

    "半角カナを全角カナにする": function(t, s) {

        var toZenkaku = function(str) {

            var Kana1 = ["ガ", "ギ", "グ", "ゲ", "ゴ", "ザ", "ジ", "ズ", "ゼ", "ゾ", "ダ", "ヂ", "ヅ", "デ", "ド", "バ", "ビ", "ブ", "ベ", "ボ", "パ", "ピ", "プ", "ペ", "ポ", "ヲ", "ァ", "ィ", "ゥ", "ェ", "ォ", "ャ", "ュ", "ョ", "ッ", "ー", "ア", "イ", "ウ", "エ", "オ", "カ", "キ", "ク", "ケ", "コ", "サ", "シ", "ス", "セ", "ソ", "タ", "チ", "ツ", "テ", "ト", "ナ", "ニ", "ヌ", "ネ", "ノ", "ハ", "ヒ", "フ", "ヘ", "ホ", "マ", "ミ", "ム", "メ", "モ", "ヤ", "ユ", "ヨ", "ラ", "リ", "ル", "レ", "ロ", "ワ", "ン"];

            var Kana2 = ["ガ", "ギ", "グ", "ゲ", "ゴ", "ザ", "ジ", "ズ", "ゼ", "ゾ", "ダ", "ヂ", "ヅ", "デ", "ド", "バ", "ビ", "ブ", "ベ", "ボ", "パ", "ピ", "プ", "ペ", "ポ", "ヲ", "ァ", "ィ", "ゥ", "ェ", "ォ", "ャ", "ュ", "ョ", "ッ", "ー", "ア", "イ", "ウ", "エ", "オ", "カ", "キ", "ク", "ケ", "コ", "サ", "シ", "ス", "セ", "ソ", "タ", "チ", "ツ", "テ", "ト", "ナ", "ニ", "ヌ", "ネ", "ノ", "ハ", "ヒ", "フ", "ヘ", "ホ", "マ", "ミ", "ム", "メ", "モ", "ヤ", "ユ", "ヨ", "ラ", "リ", "ル", "レ", "ロ", "ワ", "ン"];

            while (str.match(/[ヲ-ン]/)) {

                for (var i = 0; i < Kana1.length; i += 1) {

                    str = str.replace(Kana1[i], Kana2[i]);

                }

            }

            return str;

        };

        t.contents = toZenkaku(t.contents);

    },

    "○付き数字に変換": function(t, s) {

        var t_temp = "";

        for (var i = 0; i < t.contents.length; i += 1) {

            if (t.contents[i].search(/[0-9]/) >= 0) {

                t_temp += String.fromCharCode(t.contents[i].charCodeAt(0) + 9263);

            } else {

                t_temp += t.contents[i];

            }

        }

        t.contents = t_temp;

    },

    "置換リスト": function(t, s) {

        var temp = t.contents;

        FUNCS_option || FUNCS_option = searchreplacewordDialog();

        var CR = String.fromCharCode(13);

        for (i = 0, l = FUNCS_option.length; i < l; i++) {

            if (FUNCS_option[i][1] == "\n") {

                FUNCS_option[i][1] = CR;

            }

            temp = temp.replace(eval("/" + FUNCS_option[i][0] + "/g"), FUNCS_option[i][1]);

        }

        t.contents = temp;

    },

    "テキスト流し込み": function(t, s) {

        FUNCS_option || FUNCS_option = function() {

            var F = File.openDialog("テキスト選択");

            var A = [];

            F.open("r");

            while (l = F.readln()) {

                A.push(l);

            }

            return A;

        }();

        try {

            temp = FUNCS_option.shift();

            t.contents = temp;

        } catch (e) {

            execError.push(e);

        }

    },

    "縦中横": function(t, s) {

        FUNCS_option || FUNCS_option = prompt("何文字まで縦中横にしますか?", "2");

        if (t.length <= FUNCS_option) {

            t.baselineDirection = BaselineDirectionType.TateChuYoko;

        }

    },

    "割り注": function(t, s) {

        FUNCS_option !== undefined || FUNCS_option = confirm("割り注にしますか?\n「はい」を選ぶと割り注をつけます。\n「いいえ」を選ぶと割り注を解除します", true, "アンダーライン?");

        t.wariChuEnabled = FUNCS_option;

    },

    "アンダーライン": function(t, s) {

        FUNCS_option !== undefined || FUNCS_option = confirm("アンダーラインをつけますか?\n「はい」を選ぶとアンダーラインをつけます。\n「いいえ」を選ぶとアンダーラインを解除します", true, "アンダーライン?");

        t.underline = FUNCS_option;

    },

    "分割禁止": function(t, s) {

        FUNCS_option !== undefined || FUNCS_option = confirm("分割禁止にしますか?", true, "分割禁止");

        t.noBreak = FUNCS_option;

    },

    "字取り": function(t, s) {

        GLOBAL || GLOBAL = {};

        FUNCS_option && GLOBAL.max = FUNCS_option;

        GLOBAL.max || GLOBAL.max = prompt("字取り数を入力してください", "15");

        var tracking = t.contents.length > 1 ? ((GLOBAL.max - t.contents.length) * 1000) / (t.contents.length - 1) : 0;

        t.tracking = tracking;

    },

    "最大文字数調査": function(t, s) {

        afterFunction = function() {

            alert(afterInfo);

            GLOBAL || GLOBAL = {};

            GLOBAL.max = afterInfo;

        };

        afterInfo || afterInfo = 0;

        if (afterInfo < t.contents.length) {

            afterInfo = t.contents.length

        }

    },

    "最小文字数調査": function(t, s) {

        afterFunction = function() {

            alert(afterInfo);

            GLOBAL || GLOBAL = {};

            GLOBAL.max = afterInfo;

        };

        afterInfo || afterInfo = 0;

        if (afterInfo > t.contents.length) {

            afterInfo = t.contents.length

        }

    },

    "半角数字の幅を揃える": function(t, s) {

        t.contents.length == 1 && t.alternateGlyphs = AlternateGlyphsForm.FULLWIDTH;

        t.contents.length == 2 && t.alternateGlyphs = AlternateGlyphsForm.HALFWIDTH;

        t.contents.length == 3 && t.alternateGlyphs = AlternateGlyphsForm.THIRDWIDTH;

        t.contents.length == 4 && t.alternateGlyphs = AlternateGlyphsForm.QUARTERWIDTH;

    },

    "コマ送り": function(t, s) {

        app.redraw();

        t.select(true);

        app.redraw();

        t.select(false);

        confirm("NEXT?");

        app.redraw();

    },

    "検索テスト": function(t, s) {

        GLOBAL || GLOBAL = {};

        GLOBAL.saveRanges || GLOBAL.saveRanges = [];

        GLOBAL.saveRanges.push(t);

        afterFunction = function() {

            for (var i in GLOBAL.saveRanges) {

                GLOBAL.saveRanges[i].select(true);

                app.redraw();

            }

        };

    },

    "コレクト": function(t, s) {

        GLOBAL || GLOBAL = {};

        GLOBAL.saveRanges || GLOBAL.saveRanges = [];

        GLOBAL.saveRanges.push(t.contents);

        afterFunction = function() {

            var SaveFile = File.saveDialog("どこに保存しますか", "*.js");

            if (!SaveFile) {

                return false;

            }

            if (SaveFile.exists) {

                if (!confirm(decodeURI(SaveFile) + "を上書きしてもよろしいですか?")) {

                    return false;

                }

            }

            SaveFile.open("w");

            SaveFile.write(GLOBAL.saveRanges.join("\n"));

            SaveFile.close();

        };

    },

    "頭に文字を追加": function(t, s) {

        FUNCS_option || FUNCS_option = prompt("頭に追加する文字を入力して下さい。", "●");

        t.contents = FUNCS_option.toString() + t.contents;

    },

    "尻に文字を追加": function(t, s) {

        FUNCS_option || FUNCS_option = prompt("尻に追加する文字を入力して下さい。", "円");

        t.contents = t.contents + FUNCS_option.toString();

    },

    "消去": function(t, s) {

        t.remove();

    },

    "()[全角]で囲む": function(t, s) {

        t.contents = "(" + t.contents + ")";

    },

    "()[半角]で囲む": function(t, s) {

        t.contents = "(" + t.contents + ")";

    },

    "番号": function(t, s) {

        FUNCS_option || FUNCS_option = function() {

            return (prompt("開始する数字を入力して下さい。", "1") * 1) >>> 0;

        }();

        t.contents = FUNCS_option+++t.contents;

    }

};

var FUNCS_option = undefined;

var GLOBAL = undefined;

var FUNCS = {};

var debug = false;

try {

    if (USER_FUNCS) {

        doEx.extend(FUNCS, USER_FUNCS);

    }

} catch (e) {

 

 

}

if (typeof doEx !== "function" || debug == true) {

    var _doEx = doEx;

    Function.prototype.curry = function() {

        var slice = Array.prototype.slice;

        var args = slice.apply(arguments);

        var that = this;

        return function() {

            return that.apply(this, args.concat(slice.apply(arguments)));

        };

    };

 

 

    function() {

        doEx = function() {

            return new doEx.prototype.init(Array.prototype.slice.apply(arguments));

        };

        doEx.prototype = {

            init: function() {

                this.log = [];

                this.length = 0;

                var arg = Array.prototype.slice.apply(arguments)[0];

                this.log.push("doEX_init : " + arg.toString());

                for (var i = 0,

                var l = arg.length >>> 0; i < l; i++) {

                    var s = arg[i];

                    try {

                        switch (s.constructor.name) {

                            case "Object":

                                try {

                                    for (var x in s) {

                                        this[x](s[x]);

                                    }

                                } catch (e) {

                                    this.error.push("init_Object_error : " + e);

                                }

                                break;

                            case "Function":

                                return doEx(s());

                                break;

                            case "String":

                                try {

                                    if (typeof this.objectShortName[s] == "string") {

                                        s = this.objectShortName[s];

                                    }

                                    s = app.activeDocument[s];

                                    this.add(s);

                                } catch (e) {

                                    this.error.push("objectShortName_error : " + e);

                                }

                                break;

                            case "Array":

                                this.add(s);

                                break;

                            default:

                                this.add(s);

                        }

                    } catch (e) {

                        this.add(s);

                    }

                }

                return this;

            },

            position: 0,

            constructor: {

                name: "DocumentObjectsExtract"

            },

            add: function(s) {

                try {

                    this.log.push("doEX_add : " + s.toString());

                } catch (e) {

 

 

                }

                var len = this.length >>> 0;

                try {

                    if (typeof s === "string") {

                        s = doEx(s)

                    }

                    if ((s.length >>> 0) !== 0) {

                        s = Array.prototype.slice.call(s, 0);

                        for (var i = 0; i < s.length >>> 0; i += 1) {

                            this[len + i] = s[i];

                        }

                        this.length = len + s.length;

                    } else {

                        this[len] = s;

                        this.length = len + 1;

                    }

                } catch (e) {

                    this[len] = s;

                    this.length++;

                    this.error.push("add_error : " + e);

                }

                this.log.push("length:" + this.length);

                return this;

            },

            toArray: function() {

                return Array.prototype.slice.call(this, 0);

            },

            saveDoc: function(path) {

                this.each(function() {

                    if (this.constructor.name == "Document") {

                        this.saveAs(File(path));

                    }

                });

                return this;

            },

            get: function(num) {

                if (typeof num == "number" && num < this.length && num >= 0) {

                    return this[num];

                }

                return false;

            },

            now: function() {

                return this.get(this.position);

            },

            next: function() {

                return this.get(this.position++);

            },

            prev: function() {

                return this.get(--this.position);

            },

            loop: function() {

                if (this.position >= this.length) {

                    this.position = 0

                }

                return this.get(this.position++);

            },

            dofunc: function(func, arg) {

                if (func == undefined) {

                    return this;

                }

                var res = true;

                if (func.constructor.name == "Function") {

                    res = func.call(this)

                }

                if (res) {

                    return this;

                } else {

                    return {

                        each: function() {

 

 

                        }

                    };

                }

            },

            each: function(fnc, arg) {

                var l = this.length >>> 0;

                var i = -1;

                this.log.push("each : " + this.toArray().toString());

                var res = [];

                if (typeof fnc == "function") {

                    while (++i < l) {

                        if (i in this) {

                            ret = fnc.call(this[i], this[i], arg, i);

                            typeof ret != "undefined" && res.push(ret);

                        }

                    }

                }

                return res.length > 0 ? doEx(res) : this;

            },

            eachReverse: function(fnc, arg) {

                var l = this.length;

                var res = [];

                if (typeof fnc == "function") {

                    for (var i = l; i > 0; i--) {

                        ret = fnc.call(this[i - 1], this[i - 1], arg);

                        typeof ret != "undefined" && res.push(ret);

                    }

                }

                if (res.length > 0) {

                    return doEx(res);

                } else {

                    return this;

                }

            },

            eachR: function(fnc, arg) {

                return this.eachReverse(fnc, arg);

            },

            filter: function() {

                this.log.push("filter : " + Array.prototype.slice.apply(arguments).toString());

                if ((arguments.length >>> 0) == 0) {

                    return this;

                }

                var s = {

                    TRUE: [],

                    FALSE: []

                };

                var caseBy = {

                    function: function(arg) {

                        while (x = this.next()) {

                            arg(x) ? s.TRUE.push(this) : s.FALSE.push(this);

                        }

                    },

                    string: function(arg) {

                        if (typeof this.objectShortName[arg] == "string") {

                            arg = this.objectShortName[arg]

                        }

                        if (typeof this.filters[arg] == "function") {

                            this.filters[arg].call(this, s);

                        } else {

                            var fd = this.attr(arg).toArray();

                            s.TRUE = s.TRUE.concat(fd);

                        }

                    }

                };

                var extractarg = function(args) {

                    for (var i = 0; i < args.length; i += 1) {

                        var arg = args[i];

                        switch (arg.constructor.name) {

                            case "Function":

                                caseBy.

                                function.call(this, arg);

                                break;

                            case "String":

                                var ARG = arg.split(">");

                                for (var j = 0; j < ARG.length; j += 1) {

                                    caseBy.string.call(this, ARG[j]);

                                }

                        }

                    }

                };

                extractarg.call(this, arguments);

                try {

                    if (s.TRUE.length > 0) {

                        return doEx(s.TRUE);

                    } else {

                        var x = doEx();

                        for (var i in x) {

                            x[i] = false

                        }

                        x.length = 0;

                        return x;

                    }

                } catch (e) {

                    this.error.push("filter_error : " + e);

                    return false;

                }

            },

            find: function(text) {

                this.log.push("doEX_find : " + text.toString());

                try {

                    var ARG = text.split(">");

                    var that = this;

                    for (var i = 0; i < ARG.length; i += 1) {

                        var SP = ARG[i].split(",");

                        var it = doEx();

                        for (var j = 0; j < SP.length; j += 1) {

                            it.add(that.attr(SP[j]));

                        }

                        that = it;

                    }

                    this.log.push("doEX_find_return : " + that.toArray().toString());

                    return that;

                } catch (e) {

                    this.error.push("find_command_error : " + text);

                    return this;

                }

            },

            attr: function(x, y) {

                var that = this;

                var it = doEx(that.each(function() {

                    try {

                        if (typeof x == "string" && y !== undefined) {

                            try {

                                if (typeof y == "string") {

                                    return this[x] = y;

                                }

                                if (typeof y == "function") {

                                    this[x] = y.call(this, this);

                                }

                                if (typeof y == "boolean") {

                                    return this[x] = y;

                                }

                            } catch (e) {

                                that.error.push("attr_value_set_error " + e);

                            }

                        }

                        if (typeof x == "object") {

                            for (var i in x) {

                                if (this.hasOwnProperty(i)) {

                                    try {

                                        switch (typeof x[i]) {

                                            case "function":

                                                this[i] = x[i].call(this, this);

                                                break;

                                            default:

                                                this[i] = x[i];

                                        }

                                    } catch (e) {

                                        that.error.push("attr_value_error : " + e);

                                    }

                                }

                            }

                        }

                        if (typeof x == "string") {

                            var gx = this[x];

                            try {

                                if (gx.toString() == "") {

                                    return "";

                                }

                                switch (typeof gx) {

                                    case "string":

                                        return gx;

                                    case "number":

                                        return gx;

                                    case "function":

                                        return x + " is function";

                                    case "undefind":

                                        return undefined;

                                }

                                if (gx.length) {

                                    return app.name.match(/InDe/) ? Array.prototype.slice.call(gx, 0) : Array.prototype.slice.call(gx, 0);

                                } else {

                                    return gx;

                                }

                            } catch (e) {

                                that.error("attr_value_error_x : " + e);

                                return false;

                            }

                        }

                        if (!x && !y) {

                            for (var i in this) {

                                try {

                                    this.hasOwnProperty(i) && $.writeln(i + " : " + this[i]);

                                } catch (e) {

                                    that.error.push("attr_value_error : " + e);

                                }

                            }

                        }

                    } catch (e) {

                        that.error.push("attr_error_ :" + e);

                        return false;

                    }

                })).toArray();

                var rt = [];

                while (r = it.shift()) {

                    rt = rt.concat(r)

                }

                return doEx(rt);

            },

            search: function(x, y) {

                return doEx(this.each(function() {

                    if (this.hasOwnProperty(x)) {

                        if (typeof this[x] == "string") {

                            if (this[x] == y) {

                                return this;

                            }

                        }

                        if (typeof this[x] == "object") {

                            try {

                                if (this[x].constructor.name == y) {

                                    return this;

                                }

                            } catch (e) {

 

 

                            }

                        }

                        if (typeof this[x] == "boolean") {

                            if (this[x] === y) {

                                return this;

                            }

                        }

                    }

                }));

            },

            has: function(x, y) {

                return this.each(function() {

                    if (this[x].toString().match(y)) {

                        return this;

                    }

                });

            },

            select: function(x, t) {

                var wD = new Window("dialog", "SELECT", [200, 100, 410, 170]);

                wD.add("statictext", [10, 13, 55, 30], t || "Select", {});

                var ActionDDList = wD.add("dropdownlist", [60, 10, 190, 30], {});

                wD.add("button", [40, 40, 100, 60], "OK");

                this.each(function() {

                    if (this.constructor.name !== "String") {

                        ActionDDList.add("item", this[x].toString());

                        return;

                    } else {

                        ActionDDList.add("item", this.toString());

                        return;

                    }

                });

                ActionDDList.selection = ActionDDList.items[0];

                var result = wD.show();

                if (result == 2) {

                    return doEx(false);

                }

                return doEx([this[ActionDDList.selection.index]]);

            },

            random: function() {

                return this[Math.round(Math.random() * (this.length - 1))];

            },

            filters: {},

            error: [],

            temp: [],

            log: [],

            duplicate: function(x, y) {

                return this.each(function() {

                    return this.duplicate(x, y);

                });

            },

            translate: function(x, y) {

                return this.each(function() {

                    this.translate(x, y);

                });

            },

            type: function() {

                return this.each(function() {

                    return this.constructor.name;

                });

            },

            debug: function() {

                this.each(function() {

                    $.bp();

                });

            },

            remove: function() {

                this.eachReverse(function() {

                    this.remove();

                });

            },

            test: function(x, fnc, arg) {

                typeof fnc == "function" && fnc.call(this[x], this[x], arg);

            },

            first: function(fnc, arg) {

                typeof fnc == "function" && fnc.call(this[0], this[0], arg);

            },

            last: function(fnc, arg) {

                typeof fnc == "function" && fnc.call(this[this.length - 1], this[this.length - 1], arg);

            },

            saveLog: function() {

 

 

            },

            alertLog: function() {

                alert(this.log.join("\n"));

                this.log = [];

                return this;

            },

            alertError: function() {

                alert(this.error.join("\n"));

                this.log = [];

                return this;

            },

            selector: function() {

 

 

            },

            view: function() {

                var i = 0;

                var that = this;

                var O = {};

                while (O = that.next()) {

                    var D = myDialogMaker({

                        type: "dialog",

                        title: "DataBrowse",

                        opt: {},

                        pos: [0, 0, 400, 400],

                        layout: [{

                            type: "group",

                            name: "Group",

                            label: "Group",

                            pos: [0, 0, 398, 398],

                            option: {},

                            items: [{

                                type: "edittext",

                                name: "T",

                                label: "",

                                option: {},

                                pos: [16, 13, 386, 35]

                            }, {

                                type: "listbox",

                                name: "L",

                                label: "ListBox",

                                pos: [15, 46, 384, 354],

                                option: {

                                    onChange: function() {

                                        this.selection && this.parent.items.T.text = this.selection.key + " : " + this.selection.value;

                                    },

                                    onDoubleClick: function() {

                                        if (this.selection) {

                                            doEx(O[this.selection.key]).view();

                                        }

                                    }

                                }

                            }, {

                                type: "statictext",

                                name: "OT",

                                label: "",

                                pos: [16, 363, 200, 387],

                                option: {}

                            }, {

                                type: "button",

                                name: "E",

                                label: "Next",

                                pos: [250, 363, 300, 387],

                                option: {

                                    onClick: function() {

                                        this.parent.parent.close();

                                    }

                                }

                            }, {

                                type: "button",

                                name: "E",

                                label: "Close",

                                pos: [320, 363, 387, 387],

                                option: {

                                    onClick: function() {

                                        this.parent.parent.close(2);

                                    }

                                }

                            }, {

                                type: "button",

                                name: "E",

                                label: "Load",

                                pos: [200, 363, 250, 387],

                                option: {

                                    onDraw: function() {

                                        this.parent.items.OT.text = O.toString() + "[" + i.toString() + "] of " + that.length;

                                        var L = this.parent.items.L;

                                        L.removeAll();

                                        switch (typeof O) {

                                            case "object":

                                                for (var v in O) {

                                                    try {

                                                        var x = L.add("item", v + " : " + O[v].toString().slice(0, 40));

                                                        x.key = v;

                                                        x.value = O[v].toString();

                                                    } catch (e) {

                                                        var x = L.add("item", v + " : " + e);

                                                        x.key = v;

                                                    }

                                                }

                                                break;

                                            case "string":

                                                var x = L.add("item", O);

                                                x.key = "string";

                                                x.value = O;

                                                break;

                                        }

                                    }

                                }

                            }]

                        }]

                    });

                    D.wD.center();

                    if (D.wD.show() == 2) {

                        break;

                    }

                    i++;

                }

                return this;

            },

            domselect: function() {

                var i = 0;

                var that = this;

                var O = {};

                var sel = [];

                while (O = that.next()) {

                    var D = myDialogMaker({

                        type: "dialog",

                        title: "DataBrowse",

                        opt: {},

                        pos: [0, 0, 400, 400],

                        layout: [{

                            type: "group",

                            name: "Group",

                            label: "Group",

                            pos: [0, 0, 398, 398],

                            option: {},

                            items: [{

                                type: "edittext",

                                name: "T",

                                label: "",

                                option: {},

                                pos: [16, 13, 386, 35]

                            }, {

                                type: "listbox",

                                name: "L",

                                label: "ListBox",

                                pos: [15, 46, 384, 354],

                                option: {

                                    onChange: function() {

                                        this.selection && this.parent.items.T.text = this.selection.key + " : " + this.selection.value;

                                    },

                                    onDoubleClick: function() {

                                        if (this.selection) {

                                            sel = sel.concat(Array.prototype.slice.call(O[this.selection.key], 0));

                                            this.parent.parent.close();

                                        }

                                    }

                                }

                            }, {

                                type: "statictext",

                                name: "OT",

                                label: "",

                                pos: [16, 363, 200, 387],

                                option: {}

                            }, {

                                type: "button",

                                name: "E",

                                label: "Next",

                                pos: [250, 363, 300, 387],

                                option: {

                                    onClick: function() {

                                        if (this.selection) {

                                            sel = sel.concat(Array.prototype.slice.call(O[this.selection.key], 0));

                                        }

                                        this.parent.parent.close();

                                    }

                                }

                            }, {

                                type: "button",

                                name: "E",

                                label: "Close",

                                pos: [320, 363, 387, 387],

                                option: {

                                    onClick: function() {

                                        this.parent.parent.close(2);

                                    }

                                }

                            }, {

                                type: "button",

                                name: "E",

                                label: "Load",

                                pos: [200, 363, 250, 387],

                                option: {

                                    onDraw: function() {

                                        this.parent.items.OT.text = O.toString() + "[" + i.toString() + "] of " + that.length;

                                        var L = this.parent.items.L;

                                        L.removeAll();

                                        switch (typeof O) {

                                            case "object":

                                                for (var v in O) {

                                                    try {

                                                        var x = L.add("item", v + " : " + O[v].toString().slice(0, 40));

                                                        x.key = v;

                                                        x.value = O[v].toString();

                                                    } catch (e) {

                                                        var x = L.add("item", v + " : " + e);

                                                        x.key = v;

                                                    }

                                                }

                                                break;

                                            case "string":

                                                var x = L.add("item", O);

                                                x.key = "string";

                                                x.value = O;

                                                break;

                                        }

                                    }

                                }

                            }]

                        }]

                    });

                    D.wD.center();

                    if (D.wD.show() == 2) {

                        break;

                    }

                    i++;

                }

                return doEx(sel).view();

            },

            hvg: function(Sc) {

                if (!Sc) {

                    Sc = 1;

                } else {

                    Sc = Sc * 1;

                }

                if (app.name == "Adobe Illustrator") {

                    var rulerOrigin_Original = app.activeDocument.rulerOrigin;

                    app.activeDocument.rulerOrigin = [-9600, -9600];

                }

                var hvgObject = {

                    group: [],

                    p_x: 0,

                    p_y: 0,

                    getItem: function(y, x) {

                        try {

                            return this.group[y][x];

                        } catch (e) {

                            return false;

                        }

                    },

                    loop: function() {

                        var N = this.next();

                        if (N === false) {

                            this.p_x = 0;

                            this.p_y = 0;

                            N = this.next();

                        }

                        return N;

                    },

                    next: function() {

                        if (this.group[this.p_y].length > this.p_x) {

                            var get = this.getItem(this.p_y, this.p_x);

                            this.p_x++;

                        } else {

                            this.p_y++;

                            this.p_x = 0;

                            if (this.group.length > this.p_y) {

                                var get = this.getItem(this.p_y, this.p_x);

                                this.p_x++;

                            } else {

                                return false;

                            }

                        }

                        if (get.toString() == "[object Object]") {

                            get = this.next()

                        }

                        return get;

                    },

                    rotate: function() {

                        var temp = [];

                        for (var i = 0; i < hvgObject.group.length; i += 1) {

                            hvgObject.group[i].reverse();

                            for (var j = 0; j < hvgObject.group[i].length; j += 1) {

                                if (!temp[j]) {

                                    temp.push([]);

                                }

                                temp[j].push(hvgObject.group[i][j]);

                            }

                        }

                        hvgObject.group = temp;

                        return this;

                    },

                    reverse: function() {

                        var temp = [];

                        for (var i = 0; i < hvgObject.group.length; i += 1) {

                            hvgObject.group[i].reverse();

                        }

                        return this;

                    },

                    order: function(A) {

                        var temp = [];

                        if (A == undefined) {

                            A = function() {

                                var o = "Z";

                                var r = "1";

                                var D = myDialogMaker({

                                    type: "dialog",

                                    title: "取得する順番の選択",

                                    opt: {},

                                    pos: [0, 0, 200, 150],

                                    layout: [{

                                        pos: [0, 0, 200, 150],

                                        type: "group",

                                        name: "Group",

                                        option: {},

                                        items: [{

                                            pos: [7, 8, 192, 55],

                                            type: "panel",

                                            name: "X",

                                            option: {},

                                            items: [{

                                                type: "radiobutton",

                                                name: "N",

                                                label: "N",

                                                option: {},

                                                pos: [9, 20, 91, 33]

                                            }, {

                                                type: "radiobutton",

                                                name: "Z",

                                                label: "Z",

                                                option: {

                                                    value: true

                                                },

                                                pos: [95, 20, 177, 33]

                                            }],

                                            label: "処理方向"

                                        }, {

                                            pos: [7, 62, 192, 141],

                                            type: "panel",

                                            name: "Y",

                                            option: {},

                                            items: [{

                                                type: "radiobutton",

                                                name: "LT",

                                                label: "左上",

                                                option: {

                                                    value: true

                                                },

                                                pos: [7, 21, 89, 34]

                                            }, {

                                                type: "radiobutton",

                                                name: "RT",

                                                label: "右上",

                                                option: {},

                                                pos: [95, 21, 177, 34]

                                            }, {

                                                type: "radiobutton",

                                                name: "LB",

                                                label: "左下",

                                                option: {},

                                                pos: [7, 53, 89, 66]

                                            }, {

                                                type: "radiobutton",

                                                name: "RB",

                                                label: "右下",

                                                option: {},

                                                pos: [95, 53, 177, 66]

                                            }],

                                            label: "開始位置"

                                        }],

                                        label: "Group"

                                    }]

                                });

                                D.wD.center();

                                D.wD.show();

                                if (D.items.Group.items.X.items.N.value) {

                                    o = "N";

                                }

                                if (D.items.Group.items.Y.items.LT.value) {

                                    r = "1"

                                }

                                if (D.items.Group.items.Y.items.RT.value) {

                                    r = "2"

                                }

                                if (D.items.Group.items.Y.items.RB.value) {

                                    r = "3"

                                }

                                if (D.items.Group.items.Y.items.LB.value) {

                                    r = "4"

                                }

                                return o + r;

                            }()

                        }

                        var that = this;

                        var doing = {

                            N2: function() {

                                return that.rotate();

                            },

                            N3: function() {

                                return that.rotate().reverse();

                            },

                            N1: function() {

                                return that.reverse().rotate();

                            },

                            N4: function() {

                                return that.reverse().rotate().reverse();

                            },

                            Z1: function() {

                                return that;

                            },

                            Z2: function() {

                                return that.reverse();

                            },

                            Z3: function() {

                                return that.rotate().rotate();

                            },

                            Z4: function() {

                                return that.rotate().rotate().reverse();

                            }

                        };

                        return doing[A]();

                    },

                    each: function(fnc, args) {

                        if (typeof fnc == "function") {

                            while (i = this.next()) {

                                fnc.call(i, i, args)

                            }

                        }

                        this.p_x = 0;

                        this.p_y = 0;

                        return this;

                    },

                    getRows: function() {

                        return doEx(this.group);

                    },

                    getAll: function() {

                        var o = [];

                        while (i = this.next()) {

                            o.push(i)

                        }

                        return o;

                    },

                    doEx: function() {

                        this.p_x = 0;

                        this.p_y = 0;

                        return doEx(this.getAll());

                    },

                    toArray: function() {

                        return this.getAll();

                    },

                    view: function() {

                        var x = this.group;

                        var p = [];

                        for (var i = 0; i < x.length; i += 1) {

                            var v = [];

                            for (var j = 0; j < x[i].length; j += 1) {

                                v.push(x[i][j].toString() !== "[object Object]" ? "■" : "□");

                            }

                            p.push(v.join(""));

                        }

                        alert("認識した配列の形状\n" + p.join("\n"));

                        return this;

                    },

                    console: function() {

                        var x = this.group;

                        var p = [];

                        for (var i = 0; i < x.length; i += 1) {

                            var v = [];

                            for (var j = 0; j < x[i].length; j += 1) {

                                v.push(x[i][j].toString() !== "[object Object]" ? "■" : "□");

                            }

                            p.push(v.join(""));

                        }

                        $.writeln("認識した配列の形状\n" + p.join("\n"));

                        return this;

                    }

                };

                var orderFunc = {

                    o: function(a, b) {

                        return a.geometricBounds[0] - b.geometricBounds[0];

                    },

                    g: function(a, b) {

                        return b.n - a.n;

                    },

                    h: function(x) {

                        return Math.abs(x.geometricBounds[1] - x.geometricBounds[3]);

                    },

                    c: function(x) {

                        var z = (x.visibleBounds[3] + x.visibleBounds[1]) / 2;

                        return z;

                    }

                };

                var hl = 0;

                this.each(function() {

                    try {

                        if (this.hasOwnProperty("geometricBounds")) {

                            var h = orderFunc.h(this);

                            if (h == 0) {

                                h = 0.1

                            }

                            hl += h;

                        }

                    } catch (e) {

 

 

                    }

                });

                hl = hl / this.length;

                var group = [];

                this.each(function() {

                    try {

                        if (!this.hasOwnProperty("geometricBounds")) {

                            return;

                        }

                        var ic = orderFunc.c(this);

                        for (var i = 0; i < group.length; i += 1) {

                            if (Math.abs(ic - group[i].n) < (hl * Sc)) {

                                group[i].item.push(this);

                                return;

                            }

                        }

                        group.push({

                            n: ic,

                            item: [this]

                        });

                        return;

                    } catch (e) {

                        return e;

                    }

                });

                var temp = [];

                group = group.sort(orderFunc.g);

                for (var i = 0; i < group.length; i += 1) {

                    temp.push(group[i].item.sort(orderFunc.o));

                }

                var getCol = function() {

                    var temp2 = [];

                    var col = [];

                    for (var i = 0; i < temp.length; i += 1) {

                        var wl = {};

                        try {

                            wl = temp[i].shift();

                            col.push(wl);

                        } catch (e) {

                            col.push(wl);

                        }

                    }

                    var cl = 0;

                    var ml = undefined;

                    for (var i = 0; i < col.length; i += 1) {

                        try {

                            if (!ml) {

                                ml = col[i].visibleBounds[0];

                                cl = Math.abs((col[i].visibleBounds[2] + col[i].visibleBounds[0]) / 2);

                            }

                            if (col[i].visibleBounds[0] < ml) {

                                ml = col[i].visibleBounds[0];

                                cl = Math.abs((col[i].visibleBounds[2] + col[i].visibleBounds[0]) / 2);

                            }

                        } catch (e) {

 

 

                        }

                    }

                    for (var i = 0; i < col.length; i += 1) {

                        try {

                            if (Math.abs(((col[i].visibleBounds[2] + col[i].visibleBounds[0]) / 2) - cl) < Math.abs(col[i].visibleBounds[2] - col[i].visibleBounds[0])) {

                                temp2.push(col[i]);

                            } else {

                                if (col[i].visibleBounds[2] == col[i].visibleBounds[0]) {

                                    temp2.push(col[i]);

                                } else {

                                    temp2.push({});

                                    temp[i].unshift(col[i]);

                                }

                            }

                        } catch (e) {

                            temp2.push({});

                        }

                    }

                    return temp2;

                };

                var getL = function() {

                    var l = 0;

                    try {

                        for (var i = 0; i < temp.length; i += 1) {

                            l += temp[i].length;

                        }

                    } catch (e) {

 

 

                    }

                    return l;

                };

                var temp3 = [];

                while (getL()) {

                    temp3.push(getCol());

                }

                var temp4 = [];

                for (var i = 0; i < temp3.length; i += 1) {

                    for (var j = 0; j < temp3[i].length; j += 1) {

                        if (!temp4[j]) {

                            temp4.push([])

                        }

                        temp4[j].push(temp3[i][j]);

                    }

                }

                hvgObject.group = temp4;

                if (app.name == "Adobe InDesign") {

                    hvgObject = hvgObject.rotate().rotate().rotate()

                }

                if (app.name == "Adobe Illustrator") {

                    app.activeDocument.rulerOrigin = rulerOrigin_Original

                }

                return hvgObject;

            },

            isPlural: function() {

                var pluralWords = ["ArtStyles", "Artboards", "Brushes", "CharacterStyles", "Characters", "CompoundPathItems", "DataSets", "Documents", "GradientStops", "GraphItems", "GroupItems", "InsertionPoints", "Layers", "LegacyTextItems", "Lines", "MashItems", "NonNativeItems", "PageItems", "ParagraphStyles", "PathItems", "PathPoints", "Patterns", "PlacedItems", "PluginItems", "RasterItems", "Spots", "Stories", "Swatches", "SymbolItems", "Symbols", "Tags", "TextFonts", "TextFrameItems", "TextRanges", "Variables", "Views", "Words"];

            }

        };

        doEx.extend = function(target, source) {

            for (var property in source) {

                try {

                    target.prototype[property] = source[property];

                } catch (e) {

                    target[property] = source[property];

                }

            }

            return target;

        };

        doEx.prototype.init.prototype = doEx.prototype;

 

 

        function getObjextX(objectType) {

            var X = [];

            for (var x = 0; x < app.activeDocument.layers.length; x += 1) {

                X.concat(Array.prototype.slice.call(app.activeDocument.layers[x][objectType], 0));

            }

            return doEx(X);

        }

        doEx.extend(doEx, {

            concat: Array.prototype.concat

        });

        doEx.view = function() {

            doEx(app.activeDocument).view();

        };

        doEx.selector = function() {

            var select = prompt("What", "selection");

            return doEx(select);

        };

        if (app.name == "Adobe Illustrator") {

            var config_for_illustrator = {

                selected: function() {

                    this.each(function() {

                        "selected" in this && this.selected = true;

                    });

                    return this;

                },

                deselected: function() {

                    this.each(function() {

                        "selected" in this && this.selected = false;

                    });

                    return this;

                },

                filters: {

                    ParentisLayer: function(s) {

                        this.each(function() {

                            if (this.parent.constructor.name == "Layer") {

                                s.TRUE.push(this)

                            }

                        });

                        return s;

                    },

                    layers: function(s) {

                        this.each(function() {

                            this.constructor.name.match(/Document|Layer/) && doEx(this.layers).each(function() {

                                s.TRUE.push(this);

                            });

                        });

                        return s;

                    },

                    placedItems: function(s) {

                        this.each(function(a) {

                            a.constructor.name == "PlacedItem" ? s.TRUE.push(a) : (a.constructor.name == "GroupItem" ? doEx(a.pageItems).each(arguments.callee) : s.FALSE.push(a));

                        });

                        return s;

                    },

                    rasterItems: function(s) {

                        this.each(function(a) {

                            a.constructor.name == "RasterItem" ? s.TRUE.push(a) : (a.constructor.name == "GroupItem" ? doEx(a.pageItems).each(arguments.callee) : s.FALSE.push(a));

                        });

                        return s;

                    },

                    pathItems: function(s) {

                        this.each(function(a) {

                            a.constructor.name == "PathItem" ? s.TRUE.push(a) : (a.constructor.name.match(/CompoundPathItem|GroupItem/) ? doEx(a.constructor.name == "GroupItem" ? a.pageItems : a.pathItems).each(arguments.callee) : s.FALSE.push(a));

                        });

                        return s;

                    },

                    compoundPathItems: function(s) {

                        this.each(function(a) {

                            a.constructor.name == "CompoundPathItem" ? s.TRUE.push(a) : (a.constructor.name == "GroupItem" ? doEx(a.pageItems).each(arguments.callee) : s.FALSE.push(a));

                        });

                        return s;

                    },

                    pathPoints: function(s) {

                        this.filter("pathItems").each(function() {

                            s.TRUE = s.TRUE.concat(Array.prototype.slice.call(this.pathPoints, 0));

                        });

                        return s;

                    },

                    groupItems: function(s) {

                        this.each(function() {

                            if (this.constructor.name == "GroupItem") {

                                s.TRUE.push(this);

                            } else {

                                if (this.constructor.name.match(/Document|Layer/)) {

                                    doEx(this.groupItems).each(function() {

                                        if (this.parent.constructor.name == "Layer") {

                                            s.TRUE.push(this)

                                        }

                                    });

                                }

                            }

                        });

                        return s;

                    },

                    textFrames: function(s) {

                        this.each(function(a) {

                            a.constructor.name == "TextFrame" ? s.TRUE.push(a) : (a.constructor.name == "GroupItem" ? doEx(a.pageItems).each(arguments.callee) : s.FALSE.push(a));

                        });

                        return s;

                    },

                    textRanges: function(s) {

                        this.each(function() {

                            if (this.constructor.name == "TextRange") {

                                s.TRUE.push(this);

                                return;

                            }

                            this.constructor.name.match(/TextFrame|Story/) && doEx(this.textRanges).each(function(tr) {

                                s.TRUE.push(tr);

                            });

                        });

                        return s;

                    },

                    selection: function(s) {

                        this.each(function() {

                            this.selected == true || this.selected == "PathPointSelection.ANCHORPOINT" ? s.TRUE.push(this) : s.FALSE.push(this);

                        });

                        return s;

                    }

                },

                objectShortName: {

                    I: "allPageItems",

                    T: "textFrames",

                    G: "groupItems",

                    P: "pathItems",

                    PP: "pathPoints",

                    S: "selection",

                    PL: "placedItems",

                    L: "layers",

                    R: "rasterItems"

                }

            };

            doEx.extend(doEx, config_for_illustrator);

            for (var i in config_for_illustrator.filters) {

                doEx.prototype[i] = doEx.prototype.filter.curry(i);

            }

        }

        if (app.name == "Adobe InDesign") {

            var config_for_indesign = {

                filters: {

                    selection: function(s) {

 

 

                    },

                    allPageItems: function(s) {

                        this.each(function() {

                            doEx(this.allPageItems).each(function() {

                                s.TRUE.push(this);

                            });

                        });

                        return s;

                    },

                    groupItems: function(s) {

                        this.each(function() {

                            this.constructor.name == "Group" ? s.TRUE.push(this) : s.FALSE.push(this);

                        });

                        return s;

                    },

                    textFrames: function(s) {

                        if (this.constructor.name !== "DocumentObjectsExtract") {

                            return s;

                        }

                        this.each(function() {

                            try {

                                this.constructor.name == "TextFrame" ? s.TRUE.push(this) : (this.constructor.name == "Group" ? doEx(this.textFrames).each(function() {

                                    s.TRUE.push(this);

                                }) : s.FALSE.push(this));

                            } catch (e) {

 

 

                            }

                        });

                        return s;

                    },

                    paragraphs: function(s) {

                        var textFrames = this.filters.textFrames.call(this, {

                            TRUE: [],

                            FALSE: []

                        });

                        doEx(textFrames.FALSE).each(function() {

                            this.constructor.name == "Text" || this.constructor.name == "TextColumn" || this.constructor.name == "Paragraph" || this.constructor.name == "Cell" && textFrames.TRUE.push(this);

                            this.constructor.name == "Table" && doEx(this.cells).each(function() {

                                textFrames.TRUE.push(this);

                            });

                        });

                        doEx(textFrames.TRUE).each(function() {

                            doEx(this.paragraphs).each(function() {

                                s.TRUE.push(this);

                            });

                        });

                        return s;

                    },

                    words: function(s) {

                        var textFrames = this.filters.textFrames.call(this, {

                            TRUE: [],

                            FALSE: []

                        });

                        doEx(textFrames.FALSE).each(function() {

                            this.constructor.name == "Text" || this.constructor.name == "TextColumn" || this.constructor.name == "Paragraph" || this.constructor.name == "Cell" && textFrames.TRUE.push(this);

                            this.constructor.name == "Table" && doEx(this.cells).each(function() {

                                textFrames.TRUE.push(this);

                            });

                        });

                        doEx(textFrames.TRUE).each(function() {

                            doEx(this.words).each(function() {

                                s.TRUE.push(this);

                            });

                        });

                        return s;

                    },

                    characters: function(s) {

                        var textFrames = this.filters.textFrames.call(this, {

                            TRUE: [],

                            FALSE: []

                        });

                        doEx(textFrames.FALSE).each(function() {

                            this.constructor.name == "Text" || this.constructor.name == "TextColumn" || this.constructor.name == "Paragraph" || this.constructor.name == "Cell" && textFrames.TRUE.push(this);

                            this.constructor.name == "Table" && doEx(this.cells).each(function() {

                                textFrames.TRUE.push(this);

                            });

                        });

                        doEx(textFrames.TRUE).each(function() {

                            doEx(this.characters).each(function() {

                                s.TRUE.push(this);

                            });

                        });

                        return s;

                    },

                    tables: function(s) {

                        var textFrames = doEx(this).filters.textFrames.call(this, {

                            TRUE: [],

                            FALSE: []

                        });

                        doEx(textFrames.FALSE).each(function() {

                            if (this.constructor.name == "Table" || this.constructor.name == "Cell") {

                                this.constructor.name == "Cell" && this.tables.length > 0 && textFrames.TRUE.push(this);

                                s.TRUE.push(this);

                            }

                        });

                        doEx(textFrames.TRUE).each(function() {

                            doEx(this.tables).each(function() {

                                var innertable = doEx(this).filters.tables.call(this.cells, {

                                    TRUE: [],

                                    FALSE: []

                                });

                                doEx(innertable.TRUE).each(function() {

                                    this.constructor.name == "Table" && s.TRUE.push(this);

                                });

                                s.TRUE.push(this);

                            });

                        });

                        return s;

                    },

                    cells: function(s) {

                        var tables = this.filters.tables.call(this, {

                            TRUE: [],

                            FALSE: []

                        });

                        doEx(tables.TRUE).each(function() {

                            doEx(this.cells).each(function() {

                                s.TRUE.push(this);

                            });

                        });

                        return s;

                    },

                    rows: function(s) {

                        var tables = this.filters.tables.call(this, {

                            TRUE: [],

                            FALSE: []

                        });

                        doEx(tables.TRUE).each(function() {

                            doEx(this.rows).each(function() {

                                s.TRUE.push(this);

                            });

                        });

                        return s;

                    }

                },

                objectShortName: {

                    I: "pageItems",

                    T: "textFrames",

                    G: "groupItems",

                    P: "pathItems",

                    PP: "pathPoints",

                    S: "selection",

                    PL: "placedItems",

                    L: "layers",

                    R: "rasterItems"

                }

            };

            doEx.extend(doEx, config_for_indesign);

            for (var i in config_for_indesign.filters) {

                doEx.prototype[i] = doEx.prototype.filter.curry(i);

            }

        }

    }();

 

 

    function() {

        var setPosition = function(a, b) {

            return [a[0] + b[0], a[1] + b[1], a[2] + b[2], a[3] + b[3]];

        };

        extend = function(target, source) {

            try {

                for (var property in source) {

                    try {

                        target.prototype[property] = source[property];

                    } catch (e) {

                        target[property] = source[property];

                    }

                }

            } catch (e) {

 

 

            }

            return target;

        };

        myDialogMaker = function(option) {

            return new myDialogMaker.prototype.init(option);

        };

        myDialogMaker.prototype = {

            init: function(option) {

                if (!option) {

                    var F = File.openDialog();

                    F.open("r");

                    eval("option = " + F.read());

                    F.close();

                }

                if (File(option).exists) {

                    var F = File(option);

                    F.open("r");

                    eval("option =" + F.read());

                    F.close();

                }

                this.wD = new Window(option.type, option.title, option.pos, option.properties);

                extend(this.wD, option.option);

                option.layout.length > 0 && this.items = this.buildLayout(this.wD, option.layout);

                return this;

            },

            dialog: function(wD, pos, Config) {

                var D = new Window("dialog", Config.label, Config.pos, Config.option);

                try {

                    Config.layout.length > 0 && D.items = this.buildLayout(D, Config.layout);

                } catch (e) {

 

 

                }

                D.parents = wD;

                return D;

            },

            statictext: function(wD, pos, Config) {

                var sT = wD.add("statictext", pos, Config.label, {});

                return sT;

            },

            edittext: function(wD, pos, Config) {

                if (Config.width && Config.height && Config.size) {

                    if (Config.label) {

                        var sT = this.statictext(wD, setPosition([0, 3, Config.width - (Config.size * 10), 20], pos), Config)

                    }

                    var sET = wD.add(Config.type, setPosition([Config.width - (Config.size * 10), 0, Config.width, Config.height], pos), Config.

                    default, {

                        name: Config.name

                    });

                } else {

                    var Size = 0;

                    if (Config.label) {

                        Size = Config.label.length;

                        var sT = this.statictext(wD, [pos[0], pos[1], (pos[0] * 1) + (Size * 10), pos[3]], Config);

                    }

                    var sET = wD.add(Config.type, [(pos[0] * 1) + (Size * 10), pos[1], pos[2], pos[3]], Config.

                    default, Config.option);

                }

                extend(sET, Config.option);

                return sET;

            },

            checkbox: function(wD, pos, Config) {

                var cB = wD.add("checkbox", [pos[0], pos[1], (pos[2] * 1) + (Config.label.length * 10), pos[3]], Config.label);

                extend(cB, Config.option);

                return cB;

            },

            checkboxies: function(wD, pos, Config) {

                var GP = wD.add("group", pos, Config.label);

                switch (typeof Config.list) {

                    case "object":

                        for (var x in Config.list) {

                            this.checkbox(GP, checkpos, Config.list[x]);

                        }

                        break;

                }

                return GP;

            },

            radiobutton: function(wD, pos, Config) {

                var RB = wD.add("radiobutton", pos, Config.label);

                extend(RB, Config.option);

                return RB;

            },

            button: function(wD, pos, Config) {

                var bT = wD.add("button", pos, Config.label, {

                    name: Config.name

                });

                extend(bT, Config.option);

                return bT;

            },

            iconbutton: function(wD, pos, Config) {

                try {

                    var SI = ScriptUI.newImage(Config.label);

                    var iB = wD.add("iconbutton", pos, SI);

                    extend(iB, Config.option);

                    return iB;

                } catch (e) {

                    return this.button(wD, pos, Config);

                }

            },

            dropdownlist: function(wD, pos, Config) {

                var ddl = wD.add("dropdownlist", pos);

                Config.list && this.addListItems(ddl, Config.list);

                ddl.selection = ddl.items[0];

                extend(ddl, Config.option);

                return ddl;

            },

            treeview: function(wD, pos, Config) {

                var TB = wD.add("treeview", pos, "");

                Config.list && this.addListItems(TB, Config.list);

                extend(TB, Config.option);

                return TB;

            },

            listbox: function(wD, pos, Config) {

                var TB = wD.add("listbox", pos, "", Config.option);

                Config.list && this.addListItems(TB, Config.list);

                extend(TB, Config.option);

                return TB;

            },

            flashplayer: function(wD, pos, Config) {

                var FP = wD.add("flashplayer", pos);

                extend(FP, Config.option);

                return FP;

            },

            progressbar: function(wD, pos, Config) {

                var PB = wD.add("progressbar", pos);

                extend(PB, Config.option);

                return PB;

            },

            addListItems: function(TG, LIST) {

                switch (LIST.constructor.name) {

                    case "Function":

                        LIST(TG);

                        break;

                    case "Array":

                        for (var x in LIST) {

                            TG.add("item", LIST[x]);

                        }

                        break;

                    case "Object":

                        for (var x in LIST) {

                            TG.add("item", x);

                        }

                        break;

                }

            },

            slider: function(wD, pos, Config) {

                var SL = wD.add("slider", pos, "");

                extend(SL, Config.option);

                return SL;

            },

            group: function(wD, pos, Config) {

                var GP = wD.add("group", pos, Config.label);

                GP.items = this.buildLayout(GP, Config.items);

                extend(GP, Config.option);

                return GP;

            },

            panel: function(wD, pos, Config) {

                var GP = wD.add("panel", pos, Config.label);

                GP.items = this.buildLayout(GP, Config.items);

                extend(GP, Config.option);

                return GP;

            },

            save: function() {

 

 

            },

            items: {},

            getItem: function(name) {

                return this.items.hasOwnProperty(name) ? this.items[name] : false;

            },

            temp: {},

            buildLayout: function(wD, layout) {

                var layout_L = layout.length;

                var myitems = {};

                for (var xi = 0; xi < layout_L; xi += 1) {

                    var ret = myDialogMaker.prototype[layout[xi].type](wD, layout[xi].pos, layout[xi]);

                    layout[xi].hasOwnProperty("name") && typeof layout[xi].name == "string" && myitems[layout[xi].name] = ret;

                }

                return myitems;

            },

            showLayout: function() {

                var m = function(i) {

                    var z = [];

                    for (var x in i) {

                        try {

                            z.push(x);

                            if (i[x]) {

                                x = m(i[x].items)

                            }

                        } catch (e) {

 

 

                        }

                        z.push(x);

                    }

                    return z;

                };

                alert(m(this.items).toSource());

            }

        };

        myDialogMaker.prototype.init.prototype = myDialogMaker.prototype;

    }();

    var buildDialogLayout = myDialogMaker.prototype.buildLayout;

    var addListItems = myDialogMaker.prototype.addListItems;

    var MDM = myDialogMaker;

    var MDME = function(skin, event) {

        var ui = MDM(skin);

        if (!event) {

            var F = File.openDialog();

            F.open("r");

            eval("event = " + F.read());

            F.close();

        }

        if (File(event).exists) {

            var F = File(event);

            F.open("r");

            eval("event =" + F.read());

            F.close();

        }

        for (var i in event) {

            doEx.extend(ui.items.Group.items[i], event[i]);

        }

        return ui;

    };

 

 

    function setFont(o, f, t, s) {

        var g = o.graphics;

        var FontStyle = {

            REGULAR: ScriptUI.FontStyle.REGULAR,

            BOLD: ScriptUI.FontStyle.BOLD,

            ITALIC: ScriptUI.FontStyle.ITALIC,

            BOLDITALIC: ScriptUI.FontStyle.BOLDITALIC

        };

        g.font = ScriptUI.newFont(f, FontStyle[t] || ScriptUI.FontStyle.REGULAR, s);

    }

 

 

    function setFontStyle(o, f, t, s, pt, c, w) {

        setFont(o, f, t, s);

        setFGC(o, pt, c, w);

    }

 

 

    function setFGC(o, t, c, w) {

        try {

            var g = o.graphics;

            g.foregroundColor = g.newPen(g.PenType.SOLID_COLOR, c, w || 1);

        } catch (e) {

 

 

        }

    }

 

 

    function setBGC(o, t, c) {

        try {

            var g = o.graphics;

            g.backgroundColor = g.newBrush(g.BrushType.SOLID_COLOR, c);

        } catch (e) {

 

 

        }

    }

 

 

    function drawRact(target, rac) {

        var x = 0;

        var y = 0;

        var z = {};

        try {

            target.graphics.newPath();

            target.graphics.rectPath(rac[0], rac[1], rac[2], rac[3]);

            z = target.graphics.newBrush(target.graphics.BrushType.SOLID_COLOR, [rac[4][0], rac[4][1], rac[4][2], 1]);

            target.graphics.fillPath(z);

        } catch (e) {

 

 

        }

    }

 

 

    function drawRactData(target, racdata) {

        var x = 0;

        var y = 0;

        var z = {};

        var rac = {};

        try {

            for (var i = 0; i < racdata.length; i += 1) {

                rac = racdata[i];

                target.graphics.newPath();

                target.graphics.rectPath(rac[0], rac[1], rac[2], rac[3]);

                z = target.graphics.newBrush(target.graphics.BrushType.SOLID_COLOR, [rac[4][0], rac[4][1], rac[4][2], 1]);

                target.graphics.fillPath(z);

            }

        } catch (e) {

 

 

        }

    }

 

 

    function drawText(target, t, point) {

        var x = 0;

        var y = 0;

        try {

            x = typeof point[0] == "number" ? point[0] : 0;

            y = typeof point[1] == "number" ? point[1] : 0;

        } catch (e) {

 

 

        }

        try {

            target.graphics.drawString(t.text, target.graphics.newPen(target.graphics.PenType.SOLID_COLOR, [t.color[0], t.color[1], t.color[2], t.color[3]], 1), x, y, target.graphics.font);

        } catch (e) {

 

 

        }

    }

 

 

    function drawMosaicPict(target, picData, point) {

        var decodeFromCharCode = function(s) {

            var z = [];

            for (var i = 0,

            var l = s.length; i < l;) {

                z.push((s.slice(i, ++i).charCodeAt(0) - 255) / 100);

            }

            return z;

        };

        var px = 0;

        var py = 0;

        try {

            px = typeof point[0] == "number" ? point[0] : 0;

            py = typeof point[1] == "number" ? point[1] : 0;

        } catch (e) {

 

 

        }

        try {

            var r = g = b = 0;

            var z = {};

            if (typeof picData.data == "string") {

                picData.data = decodeFromCharCode(picData.data);

            }

            for (var i = 0; i < picData.height; i += 1) {

                for (var j = 0; j < picData.width; j += 1) {

                    target.graphics.newPath();

                    target.graphics.rectPath((j * picData.pictsize) + px, (i * picData.pictsize) + py, picData.pictsize, picData.pictsize);

                    if (picData.type == "mono") {

                        r = g = b = picData.data[(i * picData.width) + j];

                    } else {

                        r = picData.data.r[(i * picData.width) + j];

                        g = picData.data.g[(i * picData.width) + j];

                        b = picData.data.b[(i * picData.width) + j];

                    }

                    z = target.graphics.newBrush(target.graphics.BrushType.SOLID_COLOR, [r, g, b, 1]);

                    target.graphics.fillPath(z);

                }

            }

        } catch (ex) {

            $.writeln("xxx : " + ex);

        }

    }

 

 

    function MosaicButton(targetButtom, mozpic) {

        targetButtom.onDraw = function() {

            drawMosaicPict(this, mozpic.normal, mozpic.point);

        };

        try {

            if (mozpic.mouseover) {

                targetButtom.addEventListener("mouseover", function(e) {

                    e.target.onDraw = function() {

                        drawMosaicPict(this, mozpic.mouseover, mozpic.point);

                    };

                    e.target.notify("onDraw");

                }, false);

                targetButtom.addEventListener("mouseout", function(e) {

                    e.target.onDraw = function() {

                        drawMosaicPict(this, mozpic.normal, mozpic.point);

                    };

                    e.target.notify("onDraw");

                }, false);

            }

        } catch (e) {

 

 

        }

    }

}

try {

    History || History = [];

} catch (e) {

    var History = [];

}

var RegexTFConfig = {

    regexlist: {},

    debug: false

};

try {

    if (USER_CONFIG) {

        doEx.extend(RegexTFConfig, USER_CONFIG);

    }

} catch (e) {

 

 

}

try {

    RegexTF(RegexTFConfig);

} catch (e) {

    alert(e);

}

 

 

function(APP) {

    var RegexTF = function(config) {

        if (app.documents.length == 0) {

            alert("ドキュメントが開いていません。\nドキュメントを開いて下さい。");

            return;

        }

        $.localize = true;

        var D = MDM(LAYOUT());

        var undoCounter = 0;

        var error = [];

        var execError = [];

        var execLog = [];

        var DEBUG = true;

        var VALUES = {

            number: 0,

            text: ""

        };

        var afterInfo = undefined;

        var afterFunction = undefined;

        var temp = {};

        doEx.extend(FUNCS, r4FUNCS);

        var KeyStatus = {

            optKeyPressed: false,

            shiftKeyPressed: false,

            ctrlKeyPressed: false,

            altKeyPressed: false

        };

 

 

        function modecheck() {

 

 

        }

        var FFLtemp = {};

        var FontFamilyList = [];

        for (var i = 0; i < app.textFonts.length; i += 1) {

            if (!FFLtemp.hasOwnProperty(app.textFonts[i].family)) {

                FFLtemp[app.textFonts[i].family] = [app.textFonts[i].style];

                FontFamilyList.push(app.textFonts[i].family);

            } else {

                FFLtemp[app.textFonts[i].family].push(app.textFonts[i].style);

            }

        }

        var SWATCHIES = doEx(app.activeDocument.swatches).attr("name").toArray();

        var Pstyle = doEx(app.activeDocument.paragraphStyles).attr("name").toArray();

        var Wstyle = doEx(app.activeDocument.characterStyles).attr("name").toArray();

        var AKI = {

            "ベタ": "0",

            "自動": "-1",

            "八分": "0.125",

            "四分": "0.25",

            "二分": "0.5",

            "全角": "1"

        };

        var LISTS = {

            regexlist: {

                "--------": "",

                "ワイルドカード": ".*",

                "ひらがな": "[ぁ-ん]+",

                "カタカナ": "[ァ-ンー]+",

                "ひらカタ": "[ぁ-んァ-ンー]+",

                "半角カタカナ": "[ヲ-ン]+",

                "半角数字": "[0-9]+",

                "半角英字": "[a-zA-Z]+",

                "半角英数": "[a-zA-Z0-9]+",

                "全角英数": "[a-zA-Z0-9]+",

                "2桁の半角数字": "d{1,2}(?!D+)",

                "漢字": "[一-龠]+",

                "行頭": "^",

                "行末": "$",

                "す。(肯定的先読み)": "す(?=。)",

                "否定的先読み": "す(?!。)",

                "後読み": "サポートされてません。"

            },

            akiLeft: AKI,

            akiRight: AKI,

            fontName: FontFamilyList,

            fc: SWATCHIES,

            sc: SWATCHIES,

            Pstyle: Pstyle,

            Wstyle: Wstyle,

            hook: FUNCS,

            alternateGlyphs: {

                "標準字形": AlternateGlyphsForm.DEFAULTFORM,

                "エキスパート字形": AlternateGlyphsForm.EXPERT,

                "全角字形": AlternateGlyphsForm.FULLWIDTH,

                "半角字形": AlternateGlyphsForm.HALFWIDTH,

                JIS04: AlternateGlyphsForm.JIS04FORM,

                JIS78: AlternateGlyphsForm.JIS78FORM,

                JIS83: AlternateGlyphsForm.JIS83FORM,

                JIS90: AlternateGlyphsForm.JIS90FORM,

                "プロポーショナル": AlternateGlyphsForm.PROPORTIONALWIDTH,

                "等幅4分字形": AlternateGlyphsForm.QUARTERWIDTH,

                "等幅等幅3分": AlternateGlyphsForm.THIRDWIDTH,

                "トラディショナル": AlternateGlyphsForm.TRADITIONAL

            }

        };

        config.regexlist && doEx.extend(LISTS.regexlist, config.regexlist);

        typeof config.debug == "boolean" && DEBUG = config.debug;

 

 

        function temps(val, s) {

            s || s = {};

            for (var i in s) {

                val = val.replace(eval("/" + i + "/g"), s[i]);

            }

            return val;

        }

 

 

        function inputToVal(s) {

            if (s.match(/pt/)) {

                return s.match(/\d+/) * 1;

            }

            if (s.match(/mm/)) {

                return (s.match(/\d+/) * 1) / 0.35277778;

            }

            if (s.match(/Q/)) {

                return ((s.match(/\d+/) * 1) / 0.35277778) / 4;

            }

            return s;

        }

 

 

        function valCalculate(s, t) {

            t || t = {};

            var temp = temps(s, t).replace(/\d+(mm|pt|Q)/g, function(v) {

                return inputToVal(v);

            });

            try {

                return eval(temp);

            } catch (e) {

                return false;

            }

        }

 

 

        function get_FILE(t, r) {

            r === undefined && r = "\n";

            t === undefined && t = /\s+/;

            var F = File.openDialog();

            F.open("r");

            var T = F.read();

            F.close();

            T = T.split(r);

            if (t !== false) {

                var z = [];

                for (i = 0, l = T.length; i < l; i++) {

                    z.push(T[i].split(t));

                }

                return z;

            }

            return T;

        }

        for (var i in LISTS) {

            additem(D.items.Group.items[i], LISTS[i]);

        }

        for (var i in LISTS) {

            D.items.Group.items[i].selection = D.items.Group.items[i].items[0];

        }

        D.items.Group.items.regexT.text = "正規表現";

        D.items.Group.items.targetT.text = "処理対象";

        D.items.Group.items.locked_c.text = "ロックオブジェ無視";

        var getKeyStatus = function() {

            D.wD.text = "正規表現を使ってテキスト属性の操作DELUX";

            return;

            D.items.Group.items.exec.shortcutKey = "D";

            D.items.Group.items.exec.onShortcutKey = function(e) {

                alert("D");

            };

            D.items.Group.items.decoi.onDraw = function(e) {

                try {

                    KeyStatus.optKeyPressed = e.optKeyPressed ? true : false;

                    if (e.optKeyPressed) {

                        D.wD.text = "連続実行モード";

                    }

                    KeyStatus.shiftKeyPressed = e.shiftKeyPressed ? true : false;

                } catch (er) {

 

 

                }

            };

        };

        D.wD.onClose = function() {

            if (History.length == 0) {

                return;

            }

            try {

                var SaveFile = File(app.activeDocument.path + "/autosave_ConvertHistory.js");

                SaveFile.encoding = "UTF-8";

                SaveFile.open("w");

                SaveFile.write("LoadHistory(" + History.toSource() + ");");

                SaveFile.close();

            } catch (e) {

                alert(e);

            }

        };

        D.wD.onShow = function() {

            additem(D.items.Group.items.history, History);

        };

        with(D.items.Group) {

            items.Group.items.selection.value = true;

            items.regexlist.onChange = function() {

                D.items.Group.items.regex.text = LISTS.regexlist[D.items.Group.items.regexlist.selection.text];

            };

            items.fontName.onChange = function() {

                var S = D.items.Group.items.style;

                S.removeAll();

                var L = FFLtemp[this.selection.text];

                additem(S, L);

                S.selection = S.items[0];

            };

            items.history.onChange = function() {

                if (KeyStatus.optKeyPressed) {

                    D.items.Group.items.history.remove([D.items.Group.items.history.selection]);

                } else {

                    setValue(History[(D.items.Group.items.history.selection.text.match(/^([0-9]+?):/)[1] * 1) - 1]);

                }

            };

            items.undo.onClick = function() {

                if (undoCounter > 0) {

                    app.undo();

                    app.redraw();

                    undoCounter--;

                    History.pop();

                    D.items.Group.items.history.removeAll();

                    setValue(History[History.length - 1]);

                } else {

                    alert("これ以上アンドゥは出来ません。");

                }

            };

            items.close.onClick = function() {

                D.wD.close();

            };

            items.save.onClick = function() {

                if (History.length == 0) {

                    return;

                }

                var SaveFile = File.saveDialog("変換履歴を保存します。", "ConvertHistory.js");

                SaveFile.encoding = "UTF-8";

                SaveFile.open("w");

                SaveFile.write("LoadHistory(" + History.toSource() + ");");

                SaveFile.close();

                alert(decodeURI(SaveFile.toString()) + "に変換履歴を保存しました。");

            };

            items.load.onClick = function() {

                var LoadFile = File.openDialog("読み込む変換履歴を選択して下さい。");

                var LoadHistory = function(H, F) {

                    History = H;

                    if (F !== undefined) {

                        doEx.extend(FUNCS, F);

                    }

                    alert(H.length + "個の変換履歴を読み込みました。");

                };

                $.evalFile(LoadFile);

                if (History.length > 0) {

                    setValue(History[0]);

                    D.items.Group.items.history.removeAll();

                    additem(D.items.Group.items.history, History);

                }

            };

            items.exec.onClick = function(e) {

                var Hist = {};

                var VAL = {};

                var replaceCount = 0;

                execError = [];

                execLog = [];

                var Exec = function() {

                    var gv = getValue();

                    VAL = gv[0];

                    Hist = gv[1];

                    Hist.regex = D.items.Group.items.regex.text;

                    Hist.target = D.items.Group.items.Group.items.selection.value ? "selection" : "document";

                    try {

                        Hist.style = D.items.Group.items.style.selection.text;

                    } catch (e) {

 

 

                    }

                    var Target = {};

                    if (D.items.Group.items.Group.items.selection.value) {

                        if (app.activeDocument.selection.toString() === "[TextRange]") {

                            Target = doEx([app.activeDocument.selection]);

                        } else {

                            Target = doEx("selection").filter("textFrames");

                            if (Target.length > 1) {

                                execLog.push("位置情報の取得前 : " + Target.length);

                                Target = Target.hvg().doEx();

                                execLog.push("位置情報の取得後 : " + Target.length);

                            }

                        }

                    } else {

                        Target = doEx(app.activeDocument.stories).find("textFrames").each(function() {

                            try {

                                if (this.hasOwnProperty("previousFrame")) {

                                    if (this.previousFrame !== null) {

                                        return false;

                                    }

                                }

                            } catch (e) {

 

 

                            }

                            return this;

                            var LOCKED = [];

                            var P = function(o) {

                                return o;

                                if (o.locked) {

                                    return o;

                                }

                                return o.parent instanceof Layer ? o.parent : arguments.callee(o.parent);

                            }(this);

                            if (D.items.Group.items.locked_c.value === true && P.locked === true) {

                                return false;

                            }

                            return this;

                        });

                    }

                    if (Target.length == 0) {

                        execError.push("なにも選択していないようです");

                        return false;

                    }

                    execLog.push("オブジェクトの数 : " + Target.length);

                    execLog.push("オブジェクトの型 : " + Target.attr("typename").toArray().join(","));

                    var RES = Target.each(textReplacePatterns, [

                        ["/" + D.items.Group.items.regex.text + "/mg", function() {

                            return function cz(tr, spot) {

                                if (VAL.hasOwnProperty("characterStyle")) {

                                    try {

                                        VAL.characterStyle.applyTo(tr, true);

                                    } catch (e) {

                                        execError.push(e);

                                    }

                                }

                                if (VAL.hasOwnProperty("paragraphStyle")) {

                                    try {

                                        VAL.paragraphStyle.applyTo(tr, true);

                                    } catch (e) {

                                        execError.push(e);

                                    }

                                }

                                if (VAL.hasOwnProperty("hook")) {

                                    try {

                                        FUNCS[VAL.hook](tr, spot);

                                    } catch (e) {

                                        execError.push(VAL.hook + " : " + e);

                                    }

                                }

                                replaceCount++;

                                try {

                                    doEx.extend(tr, VAL);

                                    return tr;

                                } catch (e) {

                                    execError.push("override_error : " + e);

                                }

                            };

                        }]

                    ]).toArray();

                    return true;

                };

                if (KeyStatus.optKeyPressed) {

                    if (confirm("連続実行モードで実行しますか?") !== true) {

                        return;

                    }

                    if (History.length < 1) {

                        D.items.Group.items.load.onClick();

                    }

                    var tempH = [];

                    while (h = History.shift()) {

                        setValue(h);

                        var res = Exec();

                        app.redraw();

                        FUNCS_option = undefined;

                        if (res !== false) {

                            undoCounter++;

                        } else {

                            tempH.push(h);

                        }

                    }

                    additem(D.items.Group.items.history, tempH);

                    alert("連続実行が終了しました。");

                    return;

                }

                if (D.items.Group.items.regex.text.length == 0) {

                    alert("正規表現が入力されていません。\n");

                    return;

                }

                try {

                    var res = Exec();

                    app.redraw();

                    Hist.FUNCS_option = FUNCS_option;

                    History.push(Hist);

                    FUNCS_option = undefined;

                    D.items.Group.items.history.removeAll();

                    additem(D.items.Group.items.history, History);

                    res && undoCounter++;

                    if (typeof afterFunction == "function") {

                        afterFunction();

                        afterFunction = undefined;

                        app.redraw();

                        undoCounter++;

                    }

                    alert("処理が終わりました。\n該当した変更箇所は:" + replaceCount + "箇所でした。\n" + "Error:" + execError.length + "個\n" + execError.join("\n"));

                } catch (e) {

                    app.redraw();

                    FUNCS_option = undefined;

                    alert("実行エラー  : " + e + "\n" + "Error:" + execError.length + "個\n" + execError.join("\n"));

                }

                DEBUG && $.writeln(execLog.join("\n"));

            };

        }

        var ITEMS = {

            fontName: {

                text: localize({

                    ja: "書体",

                    en: "Font"

                }),

                pname: "textFont",

                convertValue: function(v) {

                    return doEx(app.textFonts).search("family", v).search("style", D.items.Group.items.style.selection.text)[0];

                },

                setValue: function(v) {

                    var V = D.items.Group.items.fontName.find(v);

                    if (V !== null) {

                        D.items.Group.items.fontName.selection = V;

                        D.items.Group.items.fontName.onChange();

                        D.items.Group.items.fontName.enabled = true;

                        D.items.Group.items.fontName_c.value = true;

                        return true;

                    }

                    return false;

                }

            },

            size: {

                text: localize({

                    ja: "サイズ",

                    en: "Size"

                })

            },

            verticalScale: {

                text: localize({

                    ja: "垂直比率",

                    en: "verticalScale"

                }),

                defaultValue: "100",

                test: ["number", "renge:[1~10000]"]

            },

            horizontalScale: {

                text: localize({

                    ja: "水平比率",

                    en: "horizontalScale"

                }),

                defaultValue: "100",

                test: ["number", "range:[1~10000]"]

            },

            Tsume: {

                text: localize({

                    ja: "ツメ",

                    en: "Tsume"

                }),

                test: ["number"]

            },

            kerning: {

                text: localize({

                    ja: "カーニング",

                    en: "kerning"

                }),

                test: ["number"]

            },

            tracking: {

                text: localize({

                    ja: "トラッキング",

                    en: "traking"

                }),

                test: ["number"]

            },

            akiLeft: {

                text: localize({

                    ja: "アキ左",

                    en: "akiLeft"

                }),

                pname: "akiLeft",

                convertValue: function(v) {

                    return LISTS.akiLeft[v];

                },

                test: ["number"],

                setValue: function(v) {

                    return true;

                }

            },

            akiRight: {

                text: localize({

                    ja: "アキ右",

                    en: "akiRight"

                }),

                pname: "akiRight",

                convertValue: function(v) {

                    return LISTS.akiRight[v];

                },

                test: ["number"],

                setValue: function(v) {

                    return true;

                }

            },

            baselineShift: {

                text: localize({

                    ja: "ベースラインシフト",

                    en: "baselineShift"

                }),

                test: ["number"]

            },

            rotation: {

                text: localize({

                    ja: "文字回転",

                    en: "rotation"

                }),

                test: ["number", "range:[-180~180]"]

            },

            fc: {

                text: localize({

                    ja: "塗りの色",

                    en: "fillColor"

                }),

                pname: "fillColor",

                convertValue: function(v) {

                    return doEx(app.activeDocument.swatches).search("name", v)[0].color;

                },

                setValue: function(v) {

                    var V = D.items.Group.items.fc.find(v);

                    if (V !== null) {

                        D.items.Group.items.fc.selection = V;

                        return true;

                    } else {

                        return false;

                    }

                }

            },

            sc: {

                text: localize({

                    ja: "線の色",

                    en: "strokeColor"

                }),

                pname: "strokeColor",

                convertValue: function(v) {

                    return doEx(app.activeDocument.swatches).search("name", v)[0].color;

                },

                setValue: function(v) {

                    var V = D.items.Group.items.sc.find(v);

                    if (V !== null) {

                        D.items.Group.items.sc.selection = V;

                        return true;

                    } else {

                        return false;

                    }

                }

            },

            Wstyle: {

                text: localize({

                    ja: "文字スタイル",

                    en: "wordStyle"

                }),

                pname: "characterStyle",

                convertValue: function(v) {

                    return doEx(app.activeDocument.characterStyles).search("name", v)[0];

                },

                setValue: function(v) {

                    var V = D.items.Group.items.Wstyle.find(v);

                    if (V !== null) {

                        D.items.Group.items.Wstyle.selection = V;

                        return true;

                    } else {

                        return false;

                    }

                }

            },

            Pstyle: {

                text: localize({

                    ja: "段落スタイル",

                    en: "paragraphStyle"

                }),

                pname: "paragraphStyle",

                convertValue: function(v) {

                    return doEx(app.activeDocument.paragraphStyles).search("name", v)[0];

                },

                setValue: function(v) {

                    var V = D.items.Group.items.Pstyle.find(v);

                    if (V !== null) {

                        D.items.Group.items.Pstyle.selection = V;

                        return true;

                    } else {

                        return false;

                    }

                }

            },

            hook: {

                text: localize({

                    ja: "Func",

                    en: "hook"

                }),

                pname: "hook",

                convertValue: function(v) {

                    return v;

                },

                setValue: function(v) {

                    var V = D.items.Group.items.hook.find(v);

                    if (V !== null) {

                        D.items.Group.items.hook.selection = V;

                        return true;

                    } else {

                        return false;

                    }

                }

            },

            alternateGlyphs: {

                text: localize({

                    ja: "異字体",

                    en: "aGlyphs"

                }),

                pname: "alternateGlyphs",

                convertValue: function(v) {

                    return LISTS.alternateGlyphs[v];

                },

                setValue: function(v) {

                    var V = D.items.Group.items.alternateGlyphs.find(v);

                    if (V !== null) {

                        D.items.Group.items.alternateGlyphs.selection = V;

                        return true;

                    } else {

                        return false;

                    }

                }

            }

        };

        var check = function(x) {

            D.items.Group.items[x].enabled = this.value ? true : false;

        };

        for (var i in ITEMS) {

            try {

                D.items.Group.items[i].enabled = false;

                if (ITEMS[i].defaultValue !== false && ITEMS[i].defaultValue) {

                    D.items.Group.items[i].text = ITEMS[i].defaultValue;

                }

                D.items.Group.items[i + "_c"].value = false;

                D.items.Group.items[i + "_c"].text = ITEMS[i].text;

                D.items.Group.items[i + "_c"].onClick = check.curry(i);

                D.items.Group.items[i + "_c"].size = [75, 15];

            } catch (e) {

                error.push(e);

            }

        }

        if (error.length > 0) {

            alert("ScriptUI ERROR\n" + error.join("\n"))

        }

        getKeyStatus();

        D.wD.center();

        D.wD.show();

 

 

        function textReplacePatterns(textFrame, pattern) {

            var Type = textFrame.constructor.name;

            var Count = 0;

            var Para = undefined;

            execLog.push("オブジェクトタイプ : " + Type);

            if (Type !== "TextFrame") {

                Para = [textFrame];

                var ContFlag = false;

            } else {

                try {

                    if (textFrame.previousFrame) {

                        var n = 0;

 

 

                        function(o) {

                            try {

                                if (o.previousFrame) {

                                    n += o.previousFrame.textRanges.length;

                                    arguments.callee(o.previousFrame);

                                }

                            } catch (e) {

                                throw "previousFrame Error  Calcurate Eor: "

                            }

                            return false;

                        }(textFrame);

                        Count += n;

                        Para = [textFrame];

                    }

                } catch (e) {

 

 

                }

                Para || Para = textFrame.paragraphs;

                var ContFlag = true;

            }

            for (j = 0, t = Para.length; j < t; j++) {

                for (var i = 0; i < pattern.length; i += 1) {

                    execLog.push("正規表現 (" + i + ") : " + pattern[i][0]);

                    try {

                        var PATTERN = eval(pattern[i][0]);

                    } catch (e) {

                        execError.push(" RegeExp String Error : " + e);

                        return;

                    }

                    try {

                        execLog.push(" 処理テキスト (" + j + ") : " + Para[j].contents);

                        Para[j].contents.replace(PATTERN, function() {

                            try {

                                try {

                                    spot = arguments[arguments.length - 2] + Count;

                                } catch (e) {

                                    execError.push(" textRangeError spot : " + arguments[arguments.length - 2] + " / " + spot + " / " + Count);

                                }

                                execLog.push("  検索ヒット : " + arguments[0] + " : " + spot + " : " + arguments[arguments.length - 2] + " : " + Count);

                                try {

                                    TR = Para[j].textRanges.length < 1 ? Para[j].textRanges : Para[j].textRanges[spot];

                                } catch (e) {

                                    throw "textRanges index error :" + Para[j].textRanges.length + " : " + spot

                                }

                                try {

                                    TR.length = arguments[0].length;

                                } catch (e) {

                                    throw "textRange length error  :" + arguments[0].length

                                }

                            } catch (e) {

                                execError.push(" textRangeError : " + e);

                            }

                            var getReplaceString = function(PT, FT) {

                                var ReplaceString = "";

                                switch (typeof PT) {

                                    case "object":

                                        ReplaceString = PT.hasOwnProperty(FT) ? PT[FT]:

                                            FT;

                                            break;

                                        case "function":

                                            ReplaceString = PT(FT);

                                            break;

                                        case "string":

                                            ReplaceString = PT;

                                            break;

                                        default:

                                            ReplaceString = PT.toString();

                                            break;

                                }

                                return ReplaceString;

                            };

                            var RS = getReplaceString(pattern[i][1], arguments[0]);

                            switch (typeof RS) {

                                case "function":

                                    RS(TR, spot);

                                    break;

                                default:

                                    TR.contents = RS.toString();

                                    break;

                            }

                            return TR.contents;

                        });

                    } catch (e) {

                        execError.push(" Replace Section Error : " + Para[j].contents);

                    }

                }

                ContFlag && Count += Para[j].contents.length + 1;

            }

        }

 

 

        function getValues() {

            return VAL;

        }

 

 

        function getValue() {

            var VAL = {};

            var Hist = {};

            for (var i in ITEMS) {

                if (D.items.Group.items[i].enabled) {

                    switch (D.items.Group.items[i].type) {

                        case "edittext":

                            Hist[i] = VAL[i] = D.items.Group.items[i].text;

                            break;

                        case "dropdownlist":

                            VAL[ITEMS[i].pname] = ITEMS[i].convertValue(D.items.Group.items[i].selection.text);

                            Hist[i] = D.items.Group.items[i].selection.text;

                            break;

                    }

                }

            }

            return [VAL, Hist];

        }

 

 

        function setValue(VAL) {

            var Error = [];

            try {

                FUNCS_option = VAL.FUNCS_option;

            } catch (e) {

                Error.push("VAL.FUNCS_option:error");

                FUNCS_option = undefined;

            }

            D.items.Group.items.regex.text = VAL.regex;

            D.items.Group.items.Group.items[VAL.target].value = true;

            for (var i in ITEMS) {

                try {

                    D.items.Group.items[i].enabled = false;

                    if (ITEMS[i].defaultValue !== false && ITEMS[i].defaultValue) {

                        D.items.Group.items[i].text = ITEMS[i].defaultValue;

                    }

                    D.items.Group.items[i + "_c"].value = false;

                } catch (e) {

                    error.push(e);

                }

            }

            for (var i in VAL) {

                if (i.match(/regex|target/) !== null) {

                    continue;

                }

                if (i.match(/fontName|^style/) !== null) {

                    switch {

                        case "fontName":

                            if (ITEMS[i].setValue(VAL[i])) {

 

 

                            } else {

                                Error.push(i + ":" + VAL[i]);

                            }

                            break;

                        case "style":

                            if (D.items.Group.items.style.find(VAL[i]) !== null) {

                                D.items.Group.items.style.selection.text = D.items.Group.items.style.find(VAL[i]);

                            } else {

                                Error.push(i + ":" + VAL[i]);

                            }

                            break;

                    }

                    continue;

                }

                try {

                    if (i !== "FUNCS_option") {

                        switch (D.items.Group.items[i].type) {

                            case "dropdownlist":

                                if (ITEMS[i].setValue(VAL[i])) {

                                    try {

                                        D.items.Group.items[i + "_c"].value = D.items.Group.items[i].enabled = true;

                                    } catch (e) {

                                        alert(e);

                                    }

                                } else {

                                    D.items.Group.items[i + "_c"].value = D.items.Group.items[i].enabled = false;

                                    Error.push(" A :" + i + " : " + VAL[i]);

                                }

                                break;

                            case "edittext":

                                D.items.Group.items[i].text = VAL[i];

                                D.items.Group.items[i + "_c"].value = true;

                                D.items.Group.items[i].enabled = true;

                                break;

                        }

                    }

                } catch (e) {

                    Error.push(e);

                }

            }

            if (Error.length > 0) {

                alert("以下の設定値でエラーがありました。\n" + Error.join("\n"));

            }

        }

 

 

        function additem(t, list) {

            if (list === undefined) {

                return;

            }

            if (list instanceof Array) {

                for (var i = 0; i < list.length; i += 1) {

                    switch (typeof list[i]) {

                        case "object":

                            var io = t.add("item", i + 1.toString() + ":" + list[i].toSource().replace(/^(.+?{60}).*$/, "$1..."));

                            break;

                        default:

                            t.add("item", list[i]);

                    }

                }

            } else {

                for (var i in list) {

                    var r = t.add("item", i);

                    r.value = list[i];

                }

            }

        }

 

 

        function uniq(arr) {

            for (var i = 0,

            var l = arr.length; i < l; i++) {

                for (var j = 0; j < i; j += 1) {

                    if (arr[i] === arr[j]) {

                        arr.splice(i--, l-- && 1);

                    }

                }

            }

            return arr;

        }

 

 

        function miniPalette() {

            return {

                type: "palette",

                title: "RegexTF",

                opt: {},

                pos: [0, 0, 245, 28],

                layout: [{

                    pos: [2, 1, 243, 26],

                    type: "group",

                    name: "Group",

                    option: {},

                    items: [{

                        type: "iconbutton",

                        name: "icon",

                        label: "アイコン",

                        option: {},

                        pos: [3, 2, 100, 23]

                    }, {

                        type: "dropdownlist",

                        name: "changer",

                        label: "list",

                        option: {},

                        pos: [103, 5, 185, 20]

                    }, {

                        type: "button",

                        name: "execute",

                        label: "拡大",

                        option: {},

                        pos: [188, 4, 237, 21]

                    }],

                    label: "Group"

                }]

            };

        }

 

 

        function LAYOUT() {

            return {

                type: "dialog",

                title: "RegexTF",

                opt: {},

                pos: [0, 0, 300, 400],

                layout: [{

                    pos: [7, 5, 293, 394],

                    type: "group",

                    name: "Group",

                    option: {},

                    items: [{

                        type: "edittext",

                        name: "regex",

                        label: "",

                        option: {},

                        pos: [70, 16, 173, 33]

                    }, {

                        type: "dropdownlist",

                        name: "regexlist",

                        label: "DropDownList",

                        option: {},

                        pos: [180, 16, 220, 33]

                    }, {

                        type: "statictext",

                        name: "historyT",

                        label: "History",

                        option: {},

                        pos: [230, 0, 280, 15]

                    }, {

                        type: "dropdownlist",

                        name: "history",

                        label: "DropDownList",

                        option: {},

                        pos: [230, 16, 280, 33]

                    }, {

                        type: "statictext",

                        name: "regexT",

                        label: "Regex",

                        option: {},

                        pos: [14, 19, 65, 33]

                    }, {

                        type: "statictext",

                        name: "targetT",

                        label: "Target",

                        option: {},

                        pos: [47, 38, 92, 51]

                    }, {

                        pos: [92, 34, 279, 55],

                        type: "group",

                        name: "Group",

                        option: {},

                        items: [{

                            type: "radiobutton",

                            name: "document",

                            label: "Document",

                            option: {},

                            pos: [6, 4, 88, 17]

                        }, {

                            type: "radiobutton",

                            name: "selection",

                            label: "SELECTION",

                            option: {},

                            pos: [99, 4, 181, 17]

                        }],

                        label: "Group"

                    }, {

                        type: "checkbox",

                        name: "locked_c",

                        label: "Locked",

                        option: {

                            value: true

                        },

                        pos: [155, 57, 278, 70]

                    }, {

                        type: "checkbox",

                        name: "fontName_c",

                        label: "FontName",

                        option: {},

                        pos: [7, 76, 75, 87]

                    }, {

                        type: "dropdownlist",

                        name: "fontName",

                        label: "DropDownList",

                        option: {},

                        pos: [97, 73, 278, 88]

                    }, {

                        type: "dropdownlist",

                        name: "style",

                        label: "DropDownList",

                        option: {},

                        pos: [97, 94, 278, 109]

                    }, {

                        type: "checkbox",

                        name: "size_c",

                        label: "Size",

                        option: {},

                        pos: [6, 122, 74, 133]

                    }, {

                        type: "checkbox",

                        name: "hook_c",

                        label: "",

                        option: {},

                        pos: [145, 116, 200, 133]

                    }, {

                        type: "dropdownlist",

                        name: "hook",

                        label: "",

                        option: {},

                        pos: [210, 116, 280, 133]

                    }, {

                        type: "edittext",

                        name: "size",

                        label: "",

                        option: {},

                        pos: [80, 116, 124, 133]

                    }, {

                        type: "statictext",

                        name: "StaticText",

                        label: "pt",

                        option: {},

                        pos: [128, 117, 140, 132]

                    }, {

                        type: "checkbox",

                        name: "verticalScale_c",

                        label: "VertivalScale",

                        option: {},

                        pos: [6, 144, 74, 155]

                    }, {

                        type: "edittext",

                        name: "verticalScale",

                        label: "",

                        option: {},

                        pos: [80, 141, 124, 158]

                    }, {

                        type: "statictext",

                        name: "StaticText",

                        label: "%",

                        option: {},

                        pos: [128, 143, 138, 158]

                    }, {

                        type: "checkbox",

                        name: "horizontalScale_c",

                        label: "HorizontalScale",

                        option: {},

                        pos: [144, 144, 223, 155]

                    }, {

                        type: "edittext",

                        name: "horizontalScale",

                        label: "",

                        option: {},

                        pos: [227, 141, 271, 158]

                    }, {

                        type: "statictext",

                        name: "StaticText",

                        label: "%",

                        option: {},

                        pos: [273, 143, 283, 158]

                    }, {

                        type: "checkbox",

                        name: "kerning_c",

                        label: "Kerning",

                        option: {},

                        pos: [6, 170, 74, 181]

                    }, {

                        type: "edittext",

                        name: "kerning",

                        label: "",

                        option: {},

                        pos: [80, 167, 124, 184]

                    }, {

                        type: "statictext",

                        name: "StaticText",

                        label: "%",

                        option: {},

                        pos: [128, 194, 138, 205]

                    }, {

                        type: "checkbox",

                        name: "tracking_c",

                        label: "Tracking",

                        option: {},

                        pos: [144, 170, 223, 181]

                    }, {

                        type: "edittext",

                        name: "tracking",

                        label: "",

                        option: {},

                        pos: [226, 167, 279, 184]

                    }, {

                        type: "checkbox",

                        name: "Tsume_c",

                        label: "Tsume",

                        option: {},

                        pos: [6, 194, 74, 205]

                    }, {

                        type: "edittext",

                        name: "Tsume",

                        label: "",

                        option: {},

                        pos: [80, 191, 124, 208]

                    }, {

                        type: "checkbox",

                        name: "alternateGlyphs_c",

                        label: "aGlyphs",

                        option: {},

                        pos: [144, 194, 223, 205]

                    }, {

                        type: "dropdownlist",

                        name: "alternateGlyphs",

                        label: "DropDownList",

                        option: {},

                        pos: [226, 191, 279, 208]

                    }, {

                        type: "checkbox",

                        name: "akiLeft_c",

                        label: "AkiLeft",

                        option: {},

                        pos: [6, 217, 74, 228]

                    }, {

                        type: "dropdownlist",

                        name: "akiLeft",

                        label: "DropDownList",

                        option: {},

                        pos: [79, 215, 136, 231]

                    }, {

                        type: "checkbox",

                        name: "akiRight_c",

                        label: "AkiRight",

                        option: {},

                        pos: [144, 217, 223, 228]

                    }, {

                        type: "dropdownlist",

                        name: "akiRight",

                        label: "DropDownList",

                        option: {},

                        pos: [225, 215, 280, 231]

                    }, {

                        type: "checkbox",

                        name: "baselineShift_c",

                        label: "BL",

                        option: {},

                        pos: [6, 242, 74, 253]

                    }, {

                        type: "edittext",

                        name: "baselineShift",

                        label: "",

                        option: {},

                        pos: [80, 239, 124, 256]

                    }, {

                        type: "checkbox",

                        name: "rotation_c",

                        label: "R",

                        option: {},

                        pos: [144, 242, 223, 253]

                    }, {

                        type: "edittext",

                        name: "rotation",

                        label: "",

                        option: {},

                        pos: [226, 239, 279, 256]

                    }, {

                        type: "checkbox",

                        name: "fc_c",

                        label: "FillColor",

                        option: {},

                        pos: [6, 271, 74, 282]

                    }, {

                        type: "dropdownlist",

                        name: "fc",

                        label: "DropDownList",

                        option: {},

                        pos: [79, 269, 134, 285]

                    }, {

                        type: "checkbox",

                        name: "sc_c",

                        label: "StrokeColor",

                        option: {},

                        pos: [144, 271, 223, 282]

                    }, {

                        type: "dropdownlist",

                        name: "sc",

                        label: "DropDownList",

                        option: {},

                        pos: [226, 269, 279, 285]

                    }, {

                        type: "checkbox",

                        name: "Wstyle_c",

                        label: "charactorStyle",

                        option: {},

                        pos: [7, 303, 75, 314]

                    }, {

                        type: "dropdownlist",

                        name: "Wstyle",

                        label: "DropDownList",

                        option: {},

                        pos: [96, 301, 276, 316]

                    }, {

                        type: "checkbox",

                        name: "Pstyle_c",

                        label: "paragraphStyle",

                        option: {},

                        pos: [7, 328, 75, 339]

                    }, {

                        type: "dropdownlist",

                        name: "Pstyle",

                        label: "DropDownList",

                        option: {},

                        pos: [96, 326, 276, 341]

                    }, {

                        type: "button",

                        name: "exec",

                        label: "Execute",

                        option: {},

                        pos: [7, 362, 69, 379]

                    }, {

                        type: "button",

                        name: "undo",

                        label: "UNDO",

                        option: {},

                        pos: [72, 362, 122, 379]

                    }, {

                        type: "button",

                        name: "load",

                        label: "LOAD",

                        option: {},

                        pos: [126, 362, 176, 379]

                    }, {

                        type: "button",

                        name: "save",

                        label: "SAVE",

                        option: {},

                        pos: [180, 362, 230, 379]

                    }, {

                        type: "button",

                        name: "close",

                        label: "CLOSE",

                        option: {},

                        pos: [233, 362, 279, 379]

                    }, {

                        type: "button",

                        name: "decoi",

                        label: "decoi",

                        option: {},

                        pos: [0, 0, 0, 0]

                    }],

                    label: "Group"

                }]

            };

        }

    };

    APP.RegexTF = RegexTF;

 

 

    function BT(target, f, rf) {

        var Bt = new BridgeTalk();

        Bt.target = target;

        Bt.body = uneval(f) + "();";

        Bt.onResult = function(bt) {

            rf(bt.body);

        };

        Bt.onError = function(e) {

            alert(e.body);

        };

        Bt.send();

    }

}(this);

Illustrator CCを既に年間購入しているのに、サブスクリプションの更新が表示され使用できない。

$
0
0

今年の5月に12ヶ月の学生版Illustrator CCを購入し、つい数日前までは普通に使用できていました。

しかし、先ほど使用しようとしたところ、「サブスクリプションを更新する」とポップアップが出てきて、再試行を繰り返しクリックしても何も変わりません。

つい先日も同じポップアップが表示され、その時は再試行・続行をクリックしたら何事もなく使用できました。

 

Adobeアカウントのプランを見てみると、「プランの有効期限が切れました。プランを再開するには、お支払いの詳細を更新してください。」との記載がありました。おそらくこれは、5月に買い換えるまで使用していたもののことかなと思います。

 

こちらのフォーラムやヘルプに記載のあった、ログアウトしてログインし直す・PC自体を再起動する も試しましたが変わりありません。

 

引き換えコードは既に手元にないため、諦めた方が良いのでしょうか。

Indesign CC 2018 application frame does not work in majove (although plugins applied)

$
0
0

Indesign 2018 wont show if application frame is turned on in mojave (10.14 (18A391)- not beta) although the plugin updates for indesign/incopy applied.

The application starts, than stays blank and i have to turn application frame off for the menu bar and the elements to show.

Strangely, indesign CC2017 works without a problem.


How do I remove password protection from a pdf?

$
0
0

I have been retained to edit an educational program but the original Word files have been lost. All I have is pdf's and most of them are password protected. I know the password, but I can't figure out how/where to enter it in order to remove the protection and convert the files to Word. Please help, there are hundreds of pages and I don't want to have to retype them all from scratch! (I have a MacBook, and Acrobat Reader DC).

Animation option

$
0
0

Where is the animation option on my CC2018?  I have Timeline but can't figure out how to animate.  Also can someone give me a link to the best and easiest-to-learn instructions on animating with CC2018?  I am familiar with animation with other programs so at least I know a little.

Thanks.

Live Preview Shows design then changes to displaying DIV regions

$
0
0

Help please.

 

I have a layout that uses a HTML5 bootstrap theme. On my old workstation dreamweaver shows everything fine, however, my new Mac with dreamweaver shows the layout when I refresh the view with F5, then changes to showing dotted lines and div shapes.

 

What is going on? Why does it not do that on my old Mac running exactly the same version of dreamweaver CC?

 

Please see screen shots attached.

 

Thanks

 

load 1.pngload 2.png

Unable to install Creative Cloud & Adobe Products

$
0
0

Hello everyone, i'm facing a big issue while installing Creative Cloud and Adobe products.

 

First, i was trying to update my Adobe products and Creative Cloud but always fails. Then, i uninstalled CC with the Creative Cloud Uninstaller and uninstalled every products of Adobe. I run the the CloudCleanerTook to make sure that all is clean.

 

After that, i tried to reinstall CC but always fails at 7% with error code: P207. I googled the error code and i have tried to fix the issue:

- Desactivating my AntiVirus(BitDefender), My firewall (Both BitDefender & Windows).

- Deleted all cache files and every folder that is related to Adobe.

- Checking my host file but everything was clean.

- Cleaning my Registry with CCleaner.

- Changing my DNS and connect to a VPN.

- I have also checked some links provided by Adobe here : Resolve connection errors with Adobe Creative Cloud and Creative Suite applications and everything works fine.

- I tried to install Adobe Products individually without CC.

 

But nothing works...

 

I found a log file named DLM.log here: C:\Users\[MYUSERNAME]\AppData\Local\Temp\CreativeCloud\ACC\AdobeDownload and i have found Erro Code 12180, 12150 and 12002. Here is a link for the file: http://www.filedropper.com/dlm

 

Thank you.

Photoshop CC 2018

$
0
0

Hello,

after I installed the PS CC 2018 I'm getting sick..... The brushes are totally uncomfortable to work with. There are very slowly....The shurtcuts don't work.... I mean shift+[ and shift+], they work exactly like [ and ]. I cannot change the shortcuts. I cannot even install the older version 2015... Please, help me....

I wonder if I can translate the content automatically with OOTB(Out-Of-The-Box) Microsoft Translation Tool when user rollout a new site using Multisite Manager.

$
0
0

Good morning, Everybody!

 

My name is Chung Yong, Eom.

I am a java web developer at Montreal in Canada.

At the first time , I develop the E-commerce web site with AEM.

 

I have 2 main requirements:

 

  1. I need to translate the content automatically when user rollout a new site using Multisite Manager (i.e. from /content/kemin/english to /content/kemin/japan)
  2. I need to use OOTB(Out-Of-The-Box) Microsoft Translation Tool as the machine translation tool.

 

I wonder if I can translate the content automatically with OOTB(Out-Of-The-Box) Microsoft Translation Tool when user rollout a new site using Multisite Manager.

 

If it is possible, I would like to know how I can do it step by step.

If it is not possible, I would like to know why I can not do it.

 

Regards

Chung Yong.

Animate CC slows down drastically when I click on any text box

$
0
0

Hey guys,

 

It's been happening for quite a while now and I have no idea what to do and it's making my job way slower.

Every time I click with the selection tool on any text box, it takes 1 to 2 MINUTES (!!!) to actually select the text, and then another 1 or 2 minutes when I try to edit the text box.

All other elements work normally, this happens only with the text, so it's very weird.

 

 

Ps: I'm using a 27" up-to-date iMac with OS X El Capitan and 24GB RAM, so this makes no sense to me.

Please help me find a solution.

 

Thank you!


Santa Rejected as Non Compliant...not sure why.

$
0
0

I'm adapting old OLD illustration work for Adobe Stock as the 99% of my work is done as work for hire and I'm unable to license it.

This was an old Christmas card design-for my own personal use. I changed the size to meet the 4MP requirement.

It's Photoshop, not vector.

 

I'm stumped. I've had one pass and one fail so far.

Thanks for your help!

L

 

 

 

SantaElf_AS.jpg

Touch UI Richtext (RTE) sourceedit is not saving

$
0
0

Hi,

 

I just want to know if someone experiencing their Touch UI's RTE is not saving when it is viewed in sourceedit mode.

 

We have multifield with description that has sling:resourceType: cq/gui/components/authoring/dialog/richtext

 

Every time we want to edit a text inside using sourceedit and click check mark to save, it actually doesn't save.

 

It will save only once you click sourceedit icon again then you see the result then that's the time you click the check mark.

 

Another point is whenever your toggle sourceedit and click outside, you won't be able to see the toolbar again unless you close the dialog box.

Error writing to PDF XmpMetadata. Argument exception

$
0
0

Hello,

I am trying to write metadata to a PDF file but get this exception using XMPMetadata:
Error writing to PDF XmpMetadata. Argument exception. \u001f', hexadecimal value 0x1F, is an invalid character

Could I please get some help in getting this resolved?

Thanks

Adobe Bridge CC Programmabsturz bei Klick auf "In CameraRAW öffnen"

$
0
0

Wenn ich in Adobe Bridge CC 2018 ein Foto auswähle und dann auf die Option "In CameraRAW öffnen" klicke hängt sich das Programm auf, bzw. es stürzt ab und ein Absturzbericht wird generiert, den ich schon einige Male rausgeschickt habe.

Wo liegt das Problem ?

Grüße

Sebastian Krüger

Error writing to PDF XmpMetadata, PDFFileInfo is not Initialized

$
0
0

Hello,

I am trying to write metadata to a PDF file but get this exception using XMPMetadata:
"PdfFileInfo is not initialized. Use constructors with parameters or properties for initialization. (Reason: Value does not fall within the expected range.: \u0001)".

Any idea what does this mean?

Thanks

Viewing all 290743 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>