Move images to an external folder

Hi again!

I want to move all the images that are in Resource area, to an external folder named Assets so, how can I do it? How can I make a reference to that new folder and from where?

Thanks!

There's not a way to do this for the working .hype document; all resources are copied into the .hype document itself. (It does try its best to maintain a link to the original to ask you to update or not if you want). Note that Hype v4 includes "External Editor" support, so you can at least control-click the resource in the resources library panel and choose an app to make some quick edits in.

(I will also note: It is unsupported and will probably break things if you start modifying stuff in the .hype document package from the Finder)

If you are referring to in an export, there's not a built-in way to do this, but Export Scripts are intended to modify the output in such a manner. On the Export Scripts page there's one called "Organized Assets" which puts different types of resources into different folders (images/ js/ media/ etc.). You can rename the folders by modifying the script. The basic steps would be:

  1. Install the Organized Assets script
  2. In Hype's Exporting preferences, select the script and choose "Show in Finder"
  3. Open the OrganizedAssets.hype-export.py file in a text editor of your choice
  4. Find the line that says "images/" and change it to "Assets"
  5. Safe the export script, and then in Hype export your document via the "File > Export as HTML5 > OrganizedAssets…" menu item

great!
Thanks a lot!

1 Like