Skip navigation
pgee70
Currently Being Moderated

Automating CSS Sprite exporting function.

Oct 26, 2013 4:30 AM

Tags: #fireworks_cs6

Using Fireworks CS6.  i have a page of 'glyph' black icons i want to re-colour to themes used in my website.  i have multiple themes, and around 30 colours to re-colour and process.  I have written a script to do this, which is working fine. there is a pastie of this jsf here

 

 

What I can't get working is the automatic saving of the sprite CSS / PNG file. When I record the macro it issues the fw.exportDocumentAs(null, null, null); command when I save as CSS sprite.

 

 

This has a parameter of an exportOptions object but I can't see where the CSS options are in this parameter list.

 

This is the screen i use to manually export the CSS -sprites:

Screen Shot 2013-10-26 at 10.24.15 pm.png

So any tricks on automating this step of the process?  It would be nice just to press a button and have all this work done.

Thanks for reading...

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points