Jump to content

Create Project


Recommended Posts

I have updated my project creator workflow with Python 3.x, which creates a folder structure defined in a text file. This post is an update from my 10 years old entry.

 

Prerequisites

  • Python 3.x
  • Alfred Powerpack

Usage

 

Create an UTF-8 encoded text file – the definition file, select it in Finder (or any file manager app), get Alfred actions panel (with the hotkey set in Preferences → Features → Universal Actions → Selection Hotkey), and run RJ: Create Project. The folder structure will be created where the definition file resides.

 

image.thumb.png.95262152f93a18eba1a0748f608656c3.png

 

Syntax

  • One line represents a folder.
  • Lines on the same indention level represent sibling folders.
  • A positive indention to the previous line represents a subfolder.
  • A negative indention to the previous line represents a parent folder.
  • Indentions must be written with TAB characters.
  • The script will replace the %date% string in the definition file with the actual date.

 

Example 1

 

Contents of the definition file:

 

root-folder-1
root-folder-2
	sub-folder-1
	sub-folder-2
	sub-folder-3
		sub-sub-folder-1
		sub-sub-folder-2
	sub-folder-4
root-folder-3

 

Example 2

 

Contents of the definition file:

 

root-folder-1
root-%date%-folder-2
	sub-folder-1
	sub-folder-2
		sub-sub-%date%-folder-1
		sub-sub-folder-2
	%date%
root-folder-3

 

Downloads

 

RJ: Create Project

 

GitHub

 

Project GitHub Page

 

Link to comment
On 10/12/2023 at 2:46 AM, royaljerry said:

I have updated my project creator workflow with Python 3.x, which creates a folder structure defined in a text file. This post is an update from my 10 years old entry.

 

Prerequisites

  • Python 3.x
  • Alfred Powerpack

Usage

 

Create an UTF-8 encoded text file – the definition file, select it in Finder (or any file manager app), get Alfred actions panel (with the hotkey set in Preferences → Features → Universal Actions → Selection Hotkey), and run RJ: Create Project. The folder structure will be created where the definition file resides.

 

image.thumb.png.95262152f93a18eba1a0748f608656c3.png

 

Syntax

  • One line represents a folder.
  • Lines on the same indention level represent sibling folders.
  • A positive indention to the previous line represents a subfolder.
  • A negative indention to the previous line represents a parent folder.
  • Indentions must be written with TAB characters.
  • The script will replace the %date% string in the definition file with the actual date.

 

Example 1

 

Contents of the definition file:

 

root-folder-1
root-folder-2
	sub-folder-1
	sub-folder-2
	sub-folder-3
		sub-sub-folder-1
		sub-sub-folder-2
	sub-folder-4
root-folder-3

 

Example 2

 

Contents of the definition file:

 

root-folder-1
root-%date%-folder-2
	sub-folder-1
	sub-folder-2
		sub-sub-%date%-folder-1
		sub-sub-folder-2
	%date%
root-folder-3

 

Downloads

 

RJ: Create Project

 

GitHub

 

Project GitHub Page

 

Very nice and simple. 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...