Skip to content

Commit

Permalink
Add new method for 52.2. Fixes #78
Browse files Browse the repository at this point in the history
  • Loading branch information
bomberstudios committed Oct 25, 2018
1 parent 16df543 commit c39ffd8
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
var onRun = function(context) {
var doc = context.document,
page = [doc currentPage],
current_artboard = [page currentArtboard]
current_artboard = [page currentArtboard]

[page deselectAllLayers]
try {
page.deselectAllLayers()
} catch (e) {
page.changeSelectionBySelectingLayers(null)
}

if (current_artboard != null) {
var layers = [current_artboard layers]
Expand Down

0 comments on commit c39ffd8

Please sign in to comment.