now browsing by tag

 
 

File manager

File manager

This script started as a request (https://plus.google.com/+JaroslavGrochal/posts/2CRLTSe588K), but it is usable and maybe useful, so I’m sharing it as a separate post.

The script populates a panel with the files of a specified folder. You can launch the files and navigate opening folders or going ‘up’ the folder hierarchy.

It also lets you create new empty files and folders.

If someone want to improve it, here are a list of features currently unsupported but that will be a good addition: custom menu when long tapping, ability to delete items, custom icons for non-folder files, ability to create bookmarks and save the current path as a variable (or display it somewhere). And also a bit of optimization, the current script is optimized but can be a bit slow with folders with many items.

To set it up create a panel somewhere and check it’s id (long tap the panel, and the menu should say “Panel #00001a”, the id is ‘1a’) Then write this id on the script using the 0x prefix (second line: var containerId=0x1a) and change the default path if you want.

Important! The panel will be filled with the items. All things inside will be removed when the script runs.

I also highly recommend changing some properties of the panel: one column, 10-15 rows, disable snap to pages, enable scroll as far as the items go and set labels position at the right.

You may create a shortcut to run this script, that will open the default path, our you can add a different path as the data in the shortcut to create manual bookmarks.

]]>