Skip to content

Instantly share code, notes, and snippets.

View jeffcollier's full-sized avatar

Jeff Collier jeffcollier

  • Atlanta, GA, USA
View GitHub Profile
@jeffcollier
jeffcollier / SaveIconsForiOSIcons.jsx
Last active August 28, 2023 09:17 — forked from jeremieweldin/SaveIconsForiOSIcons.jsx
Adobe Illustrator automation script for exporting an icon artboard to all the sizes needed for iOS apps. [I upgraded this hyper-helpful script from Jeremie Weldin for iOS 7 images sizes. To apply, open your icon file in Illustrator, select File | Scripts | Others..., and browser to the directory containing this file. -Jeff]
var destFolder = null;
destFolder = Folder.selectDialog( 'Select the folder where you want to save the exported files.', app.activeDocument.path );
var baseDestName = app.activeDocument.name;
if (baseDestName.indexOf('.') < 0)
{
//nothing
} else {
var dot = baseDestName.lastIndexOf('.');