CategoryCode Thoughts

Run Haxe compilation server on Windows Login

Here’s how to have the Haxe compilation server running continuously in Windows.
This speeds up autocompletion in some IDEs, and improves compilation time.

  • Open Windows Task Scheduler
  • Click Create Basic Task
  • Add name “Run Haxe Compilation Server”, or whatever
  • Add name “Run Haxe Compilation Server”, or whatever. Click Next
  • Select “When I log on”. Click Next
  • Select “Start a program”. Click Next
  • Type “haxe” in Program/script input
  • Type “-v –wait 6000” in Add arguments input. Click Next.
  • Select “Open the Properties dialog…” Click Finish
  • Select “Hidden”.
  • Select “Run whether user is logged in or not”. Click Finish

One downside to this is that (at least in FlashDevelop/HaxeDevelop) your old running debugger has to be manually killed between each debug session.

Smart Layer Export manual install

Before trying this I would recommend trying to install using the ZXP Installer tool.

Some people have trouble installing the Smart Layer Export plugin.
I don’t really recommend manually installing, as it means you won’t automatic updates.
Until Adobe fixes the plugin installer though, it’s some people’s only choice.

Here’s how to install the plugin manually.

On Mac OSX

1. Change the file extension of the plugin from zxp to zip
2. Unzip the package (the built-in unzip program doesn’t seem to work well, use Stuffit Expander instead)
3. Copy Smart Layer Export.jsx file into your Scripts folder (Applications/Adobe Illustrator CC 2014/Presets/en_US/Scripts)
3. Copy SmartLayerExport folder into your locale folder (Applications/Adobe Illustrator CC 2014/Presets/en_US)

On Windows

1. Change the file extension of the plugin from zxp to zip
2. Unzip the package
3. Copy Smart Layer Export.jsx file into your Scripts folder (C:\Program Files\Adobe\Adobe Illustrator CC 2014\Presets\en_US\Scripts)
3. Copy SmartLayerExport folder into your locale folder (C:\Program Files\Adobe\Adobe Illustrator CC 2014\Presets\en_US)

If you are using a different language, the “en_US” and “Scripts” part of those paths will be different, but it should be fairly clear which is which.

After copying the files into the correct location you will need to restart Illustrator.

On Mac the location is something like:
/Applications/Adobe Illustrator CC 2014/Presets/en_US

Managing Presets in Smart Layer Export

A user of my Smart Layer Export plugin asked me how to manage presets so I thought I’d just post some tips for everyone.

At the top left of the panel you’ll see the presets area.

Presets

1. Presets Dropdown

First is the Presets Dropdown, which loads a preset and applies it over your current settings.
A note about presets; they don’t have to include all settings, and if they omit particular settings then your current settings will remain after selecting a preset.
This allows for a preset to only affect one part of the panel (for example, only the destination folder) and leave other settings untouched.

2. Add Preset Button

The Add Preset button allows you to create a new Preset.
It will bring up the following dialog box.
AddPreset
Which allows you to name your preset, as well as select which options should be included in it (see above note about partial presets).

3. Import Preset Button

The Import Preset button brings up a file search dialog box which allows you to add exported presets to your list.

4. Export Preset Button

The Export Preset button allows you to save a preset (or the current settings) to a preset file which can then be distributed and imported on other computers.

Accessing internal Preset files

The controls provided are fairly simple and don’t allow for editing/deleting presets.
If you need to edit/delete a plugin, you currently need to access the folder where they are stored on the hard drive.

On Windows, it is here:
C:\Users\\AppData\Roaming\org.tbyrne.smartLayerExport\presets

On Mac OSX, it is here:
/Users//Library/Application Support/org.tbyrne.smartLayerExport/presets

Here you can delete presets as well as edit them in a text editer (if you know XML).

Manually installing Flash2Svg

Before trying this I would recommend trying to install using the ZXP Installer tool, this will give you access to the HTML5-based User Interface, but will still require manual updates.

If you’re having trouble installing Flash2Svg in Flash, here are some instructions to manually install the plugin.
This works in all versions (CS5 – CC 2017, as of writing) but will only give you the older, flash-based UI, not the newer HTML5-based UI.
Also note, the last version of the plugin that is compatible with CS5/CS6 is version 3.36.
This means some of the functionality won’t be there (e.g. embedding assets) but all of the most recent bug fixes will be available.

  • Download the latest ZXP
  • Change the file name of the extension from ZXP to ZIP
  • Extract the contents of the zip archive
  • Copy the SVG.swf and svg-help.xml files from the FLASH folder into this folder:
    C:\Users\{username}\AppData\Local\Adobe\Flash CS5\en_US\Configuration\WindowSWF
  • Copy the Extensible folder (also from the FLASH folder) and copy the whole folder into this folder:
    C:\Users\{username}\AppData\Local\Adobe\Flash CS5\en_US\Configuration\Javascript

Obviously change the version of flash in those paths to the correct one (e.g. ‘Flash CC 2015’).

Mac is very similar, something like:
/Users/{username}/Library/Application Support/Adobe/Flash CS5/…

On both systems you’ll probably have to show hidden folders to get there.

Haxe > Python > Remote debug on Raspberry Pi