Skip to content

Commit

Permalink
Humanized error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
bomberstudios committed Sep 18, 2012
1 parent 33d2eda commit ecb906a
Show file tree
Hide file tree
Showing 95 changed files with 96 additions and 96 deletions.
2 changes: 1 addition & 1 deletion Commands/Align/Center on Canvas - Both.jsf
Expand Up @@ -4,7 +4,7 @@ Centers the selected object(s) on the canvas, both horizontally and vertically.
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(e){
Expand Down
2 changes: 1 addition & 1 deletion Commands/Align/Center on Canvas - Horizontal.jsf
Expand Up @@ -4,7 +4,7 @@ Centers the selected object(s) on the canvas, horizontally.
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(e){
Expand Down
2 changes: 1 addition & 1 deletion Commands/Align/Center on Canvas - Vertical.jsf
Expand Up @@ -4,7 +4,7 @@ Centers the selected object(s) on the canvas, vertically.
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(e){
Expand Down
2 changes: 1 addition & 1 deletion Commands/Align/Space Horizontal.jsf
Expand Up @@ -4,7 +4,7 @@ Distributes the selected elements horizontally, with the same distante beetween
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

if (fw.selection.length > 0) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Align/Space Vertical.jsf
Expand Up @@ -4,7 +4,7 @@ Distributes the selected elements vertically, with the same distante beetween th
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

if (fw.selection.length > 0) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Alpha/Stroke Alpha 10.jsf
Expand Up @@ -7,7 +7,7 @@ Set the selected objects’ stroke alpha to 10%
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(item) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Alpha/Stroke Alpha 100.jsf
Expand Up @@ -6,7 +6,7 @@ Set the selected objects’ stroke alpha to 100%
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(item) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Alpha/Stroke Alpha 20.jsf
Expand Up @@ -6,7 +6,7 @@ Set the selected objects’ stroke alpha to 20%
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(item) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Alpha/Stroke Alpha 30.jsf
Expand Up @@ -6,7 +6,7 @@ Set the selected objects’ stroke alpha to 30%
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(item) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Alpha/Stroke Alpha 40.jsf
Expand Up @@ -6,7 +6,7 @@ Set the selected objects’ stroke alpha to 40%
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(item) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Alpha/Stroke Alpha 50.jsf
Expand Up @@ -6,7 +6,7 @@ Set the selected objects’ stroke alpha to 50%
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(item) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Alpha/Stroke Alpha 60.jsf
Expand Up @@ -6,7 +6,7 @@ Set the selected objects’ stroke alpha to 60%
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(item) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Alpha/Stroke Alpha 70.jsf
Expand Up @@ -6,7 +6,7 @@ Set the selected objects’ stroke alpha to 70%
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(item) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Alpha/Stroke Alpha 80.jsf
Expand Up @@ -6,7 +6,7 @@ Set the selected objects’ stroke alpha to 80%
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(item) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Alpha/Stroke Alpha 90.jsf
Expand Up @@ -6,7 +6,7 @@ Set the selected objects’ stroke alpha to 90%
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.each(function(item) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Alpha/Stroke Alpha To.jsf
Expand Up @@ -5,7 +5,7 @@ Set the selected objects’ stroke alpha
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};
var target_alpha = orangecommands.params || prompt('Set stroke alpha to:', 100);

Expand Down
2 changes: 1 addition & 1 deletion Commands/Canvas/Canvas Height.jsf
Expand Up @@ -5,7 +5,7 @@ Sets the height of the canvas.
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

var default_height = fw.getDocumentDOM().height,
Expand Down
2 changes: 1 addition & 1 deletion Commands/Canvas/Canvas Size.jsf
Expand Up @@ -5,7 +5,7 @@ Sets the size of the canvas.
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

var default_width = fw.getDocumentDOM().width,
Expand Down
2 changes: 1 addition & 1 deletion Commands/Canvas/Canvas Width.jsf
Expand Up @@ -5,7 +5,7 @@ Sets the width of the canvas.
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

var default_width = fw.getDocumentDOM().width,
Expand Down
2 changes: 1 addition & 1 deletion Commands/Color/Canvas Color.jsf
Expand Up @@ -7,7 +7,7 @@ Set Canvas Color
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

var choice = orangecommands.params || fw.popupColorPickerOverMouse("#00000000", true, false);
Expand Down
2 changes: 1 addition & 1 deletion Commands/Color/Copy Fill Color.jsf
Expand Up @@ -6,7 +6,7 @@ Copies the currently selected object's fill color.
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};
var color = fw.selection[0].pathAttributes.fillColor;
orangecommands.fillColor = color;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Color/Fill Color.jsf
Expand Up @@ -13,7 +13,7 @@ Set fill color. If the selection is a group, every object inside the group will
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

var choice = orangecommands.params || fw.popupColorPickerOverMouse("#00000000", true, false);
Expand Down
2 changes: 1 addition & 1 deletion Commands/Color/Paste Fill Color.jsf
Expand Up @@ -6,7 +6,7 @@ Pastes the color copied using the Copy Fill Color command to all selected object
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

if (orangecommands.fillColor != undefined) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Color/Stroke Color.jsf
Expand Up @@ -14,7 +14,7 @@ Set stroke color.
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

var choice = orangecommands.params || fw.popupColorPickerOverMouse("#00000000", true, false);
Expand Down
2 changes: 1 addition & 1 deletion Commands/Development/All Documents as JPG.jsf
Expand Up @@ -6,7 +6,7 @@ It also changes the Optimize settings for all pages, because I hate the "GIF as
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

fw.documents.each(function(doc){
Expand Down
2 changes: 1 addition & 1 deletion Commands/Development/CSS3/Copy as CSS3.jsf
Expand Up @@ -24,7 +24,7 @@ This command does its best and try to copy the currently selected object(s) attr
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

// sprintf
Expand Down
2 changes: 1 addition & 1 deletion Commands/Development/Clear Custom Data.jsf
@@ -1,7 +1,7 @@
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

var doc = fw.getDocumentDOM();
Expand Down
2 changes: 1 addition & 1 deletion Commands/Development/Document Dump.jsf
@@ -1,7 +1,7 @@
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Document.dump();
2 changes: 1 addition & 1 deletion Commands/Development/Inspect Selection.jsf
@@ -1,7 +1,7 @@
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

function inspect(o){
Expand Down
2 changes: 1 addition & 1 deletion Commands/Development/Inspect.jsf
@@ -1,7 +1,7 @@
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

function inspect(o){
Expand Down
2 changes: 1 addition & 1 deletion Commands/Development/Paginator Pro.jsf
@@ -1,7 +1,7 @@
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
}

var font_family = "Arial",
Expand Down
2 changes: 1 addition & 1 deletion Commands/Development/Sprites/Slices to Image.jsf
@@ -1,7 +1,7 @@
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

var sprite_name = fw.getDocumentDOM().docTitleWithoutExtension;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Effects/Fake Border Inside.jsf
@@ -1,7 +1,7 @@
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

fw.selection.clone().each(function(elem) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Effects/Fake Border.jsf
@@ -1,7 +1,7 @@
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

fw.selection.clone().each(function(elem) {
Expand Down
2 changes: 1 addition & 1 deletion Commands/Effects/Repeat Horizontal.jsf
Expand Up @@ -4,7 +4,7 @@ Repeats the currently selected object(s) horizontally. It asks for the number of
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

var copies = orangecommands.params || prompt("Number of copies",9),
Expand Down
2 changes: 1 addition & 1 deletion Commands/Effects/Repeat Vertical.jsf
Expand Up @@ -4,7 +4,7 @@ Repeats the currently selected object(s) vertically. It asks for the number of c
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

var copies = orangecommands.params || prompt("Number of copies",10),
Expand Down
2 changes: 1 addition & 1 deletion Commands/Effects/Safe Flatten.jsf
Expand Up @@ -6,7 +6,7 @@ This command duplicates the current selection, flattens it, and hides the origin
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://github.com/bomberstudios/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Selection.save();
Expand Down
2 changes: 1 addition & 1 deletion Commands/Export Settings/Set PNG 24 for All Pages.jsf
Expand Up @@ -6,7 +6,7 @@ A command to set the export format of all pages as PNG in 24 bits (something tha
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Pages.each(Document.set_export_as_png_24);
2 changes: 1 addition & 1 deletion Commands/Export Settings/Set PNG 32 for All Pages.jsf
Expand Up @@ -6,7 +6,7 @@ A command to set the export format of all pages as PNG in 32 bits (something tha
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

Pages.each(Document.set_export_as_png_32);
2 changes: 1 addition & 1 deletion Commands/Export/All Documents as JPG in.jsf
Expand Up @@ -6,7 +6,7 @@ It also changes the Optimize settings for all pages, because I hate the "GIF as
try {
fw.runScript(fw.appJsCommandsDir + "/bs.js");
} catch(e){
alert("This command requires the bs.js library\rGet it at http://bomberstudios.com/fireworks/");
alert("There was a problem running this command.\rThis is usually related to an installation problem, so please visit http://orangecommands.com and download an updated installer.\r\rSorry for the inconvenience.");
};

var folder_name = orangecommands.params || fw.browseForFolderURL("Choose an export folder",null);
Expand Down

0 comments on commit ecb906a

Please sign in to comment.