Created
December 9, 2014 18:21
-
-
Save manolenso/aa506d4d495a3ba36858 to your computer and use it in GitHub Desktop.
jsx: if no document open
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(app.documents.length < 1){ | |
alert("Il n'y a pas de document ouvert! "); | |
}else{ | |
var document = app.activeDocument; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment