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
function slugify(text) | |
{ | |
return text.toString().toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
.replace(/\-\-+/g, '-') // Replace multiple - with single - | |
.replace(/^-+/, '') // Trim - from start of text | |
.replace(/-+$/, ''); // Trim - from end of text | |
} |
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
// script.name = scaleStrokes.jsx; | |
// script.description = scales selected objects strokes only; | |
// script.required = one or more selected objects | |
// script.parent = CarlosCanto // 5/7/12; | |
// script.elegant = false; | |
// script.updates = preview ON by default // 5/7/12 | |
#target Illustrator | |
#targetengine 'main' | |
var unscale = 0; |