File tree Expand file tree Collapse file tree 5 files changed +9
-7
lines changed
tests/test/fixtures/photoshop/document Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -115,8 +115,8 @@ IN.Book = (function (my) {
115115 /**
116116 * Function to make a package of a book
117117 * @param directories_path_str
118- * @param book
119- * @param options
118+ * @param [ book]
119+ * @param [ options]
120120 * @return {string }
121121 */
122122 my . package = function ( directories_path_str , book , options ) {
@@ -169,7 +169,8 @@ IN.Book = (function (my) {
169169 */
170170
171171 // There is 3 new parameters in CC
172- if ( app . version >= 10 ) {
172+ if ( parseFloat ( app . version ) >= 10 ) {
173+
173174 book . packageForPrint (
174175 options . to ,
175176 options . copyingFonts ,
@@ -185,8 +186,10 @@ IN.Book = (function (my) {
185186 options . versionComments ,
186187 options . forceSave
187188 ) ;
189+
188190 }
189191 else {
192+
190193 book . packageForPrint (
191194 options . to ,
192195 options . copyingFonts ,
@@ -199,6 +202,7 @@ IN.Book = (function (my) {
199202 options . versionComments ,
200203 options . forceSave
201204 ) ;
205+
202206 }
203207
204208 if ( ! File ( current_folder + "/" + book . name ) . exists ) {
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ PS.Application = (function (my) {
3939 */
4040 my . restore = function ( ) {
4141 app . preferences = user_preferences ;
42-
4342 }
4443
4544
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ PS.Document = (function (my) {
6969 * @memberOf PS.Document
7070 * @param {string } file_path the new document path
7171 * @param {Document } [document] the document to save
72- * @todo add try catch to make an error if the destination path do not exist
7372 */
7473 my . save_to_PSD = function ( file_path , document ) {
7574
Original file line number Diff line number Diff line change 4646 // test attribute profile
4747 var doc_to_attribute = PS . Document . open ( SCRIPT_FOLDER + '/testProfileAttribution.psd' ) ;
4848
49- PS . Document . attribute_profile ( 'eciRGB v2' , doc_to_attribute ) ;
49+ PS . Document . assign_profile ( 'eciRGB v2' , doc_to_attribute ) ;
5050
5151 PS . Document . save_to_TIFF ( results_folder + '/testProfileAttribution.tif' ) ;
5252
You can’t perform that action at this time.
0 commit comments