Skip to content

Instantly share code, notes, and snippets.

@ff6347
Created May 10, 2012 17:38
Show Gist options
  • Save ff6347/2654645 to your computer and use it in GitHub Desktop.
Save ff6347/2654645 to your computer and use it in GitHub Desktop.
Alert selection in illustrator
app.activeDocument.selection;
// InDesign & Illustrator
var firstListItem = app.activeDocument.selection[0]; // first object in selection
if(firstListItem instanceof TextFrame){ /* check the type */
alert("I am a " + firstListItem.constructor.name); // and name it
}
@ff6347
Copy link
Author

ff6347 commented May 11, 2012

This Gist is part of MT4D coming soon on fabiantheblind.info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment