Skip to content

Commit

Permalink
fixed bug in page numbering check warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Randall Bruder committed Oct 29, 2023
1 parent b2a02bc commit 05c0dd4
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [2.3.1] - 2023-10-29

### Fixed

- Fixed a bug in the `Export Interior Pages.jsx` script's page number checking warning.

## [2.3.0] - 2023-10-21

### New
Expand Down
2 changes: 1 addition & 1 deletion InDesign Scripts/Collect Font Files.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Collect Font Files.jsx
// An InDesign Script for Massive Publishing, developed by Randall Bruder
/*
* @@@BUILDINFO@@@ "Collect Font Files.jsx" 2.3.0 16 August 2023
* @@@BUILDINFO@@@ "Collect Font Files.jsx" 2.3.1 29 October 2023
*/

main();
Expand Down
2 changes: 1 addition & 1 deletion InDesign Scripts/Export Cover Variants - All.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Export Cover Variants - All.jsx
// An InDesign Script for Massive Publishing, developed by Randall Bruder
/*
* @@@BUILDINFO@@@ "Export Cover Variants - All.jsx" 2.3.0 16 August 2023
* @@@BUILDINFO@@@ "Export Cover Variants - All.jsx" 2.3.1 29 October 2023
*/

main();
Expand Down
2 changes: 1 addition & 1 deletion InDesign Scripts/Export Cover Variants - Current Page.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Export Cover Variants - Current Page.jsx
// An InDesign Script for Massive Publishing, developed by Randall Bruder
/*
* @@@BUILDINFO@@@ "Export Cover Variants - Current Page.jsx" 2.3.0 16 August 2023
* @@@BUILDINFO@@@ "Export Cover Variants - Current Page.jsx" 2.3.1 29 October 2023
*/

main();
Expand Down
2 changes: 1 addition & 1 deletion InDesign Scripts/Export Inside Cover C2 C3.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Export Inside Cover C2 C3.jsx
// An InDesign Script for Massive Publishing, developed by Randall Bruder
/*
* @@@BUILDINFO@@@ "Export Inside Cover C2 C3.jsx" 2.3.0 16 August 2023
* @@@BUILDINFO@@@ "Export Inside Cover C2 C3.jsx" 2.3.1 29 October 2023
*/

main();
Expand Down
2 changes: 1 addition & 1 deletion InDesign Scripts/Export Interior Pages - RGB JPGs.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Export Interior Pages - RGB JPGs.jsx
// An InDesign Script for Massive Publishing, developed by Randall Bruder
/*
* @@@BUILDINFO@@@ "Export Interior Pages - RGB JPGs.jsx" 2.3.0 16 August 2023
* @@@BUILDINFO@@@ "Export Interior Pages - RGB JPGs.jsx" 2.3.1 29 October 2023
*/

main();
Expand Down
10 changes: 5 additions & 5 deletions InDesign Scripts/Export Interior Pages.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Export Interior Pages.jsx
// An InDesign Script for Massive Publishing, developed by Randall Bruder
/*
* @@@BUILDINFO@@@ "Export Interior Pages.jsx" 2.3.0 16 August 2023
* @@@BUILDINFO@@@ "Export Interior Pages.jsx" 2.3.1 29 October 2023
*/

main();
Expand Down Expand Up @@ -126,11 +126,11 @@ function main() {

if (links_where_number_doesnt_match_page_number.length > 1) {
var links_string = links_where_number_doesnt_match_page_number.join("\r\n");
confirm("Error\r\nSome of the interior pages in this document might be placed on the wrong pages?\r\n\r\nCheck links:\r\n" + links_string + "\r\nand see if they're placed on the correct pages.\r\n\r\nDo you want to continue the export?", true);
return;
if (confirm("Error\r\nSome of the interior pages in this document might be placed on the wrong pages?\r\n\r\nCheck links:\r\n" + links_string + "\r\nand see if they're placed on the correct pages.\r\n\r\nDo you want to continue the export?", true)) {
} else { return; }
} else if (links_where_number_doesnt_match_page_number.length == 1) {
confirm("Error\r\One of the interior pages in this document might be placed on the wrong page?\r\n\r\nCheck the link:\r\n" + links_where_number_doesnt_match_page_number.join("") + "\r\nand see if it's placed on the correct page.\r\n\r\nDo you want to continue the export?", true);
return;
if (confirm("Error\r\One of the interior pages in this document might be placed on the wrong page?\r\n\r\nCheck the link:\r\n" + links_where_number_doesnt_match_page_number.join("") + "\r\nand see if it's placed on the correct page.\r\n\r\nDo you want to continue the export?", true)) {
} else { return; }
}

// Ask user to select a folder to save the PDFs to
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Save All Open Covers as Print Ready TIFFs.jsx
// A Photoshop Script for Massive Publishing, developed by Randall Bruder
/*
* @@@BUILDINFO@@@ "Massive Publishing - Save All Open Covers as Print Ready TIFFs.jsx" 2.3.0 16 August 2023
* @@@BUILDINFO@@@ "Massive Publishing - Save All Open Covers as Print Ready TIFFs.jsx" 2.3.1 29 October 2023
*/

main();
Expand Down

0 comments on commit 05c0dd4

Please sign in to comment.