Jump to content

royaljerry

Member
  • Posts

    7
  • Joined

  • Last visited

  • Days Won

    1

royaljerry last won the day on December 16 2015

royaljerry had the most liked content!

Profile Information

  • Location
    Budapest
  • Interests
    Typography, Photo, Graphic Design

Recent Profile Visitors

352 profile views

royaljerry's Achievements

Helping Hand

Helping Hand (3/5)

1

Reputation

  1. 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. 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
  2. This is a file action, i.e. you not simply type into Alfred. Instead, you select the creator textfile (which contains the folder structure), and apply the workflow on it. (As if you applied an “Open Terminal Here” on a folder.) To achieve this, select the textfile, and invoke the file action shortcut, which is, by default, Option+Command+\ More info here: Show list of available Actions for selected Finder item Tutorial (annotated and HD quality) video about the process here I have just updated and annotated the video to avoid the blur-bug of Dropbox-movies. Hope, this helps. Best, Adam
  3. Hi chsweb, check this folder and simply follow follow these steps: Install the workflow you have downloaded (I assume you have already done this): cfs-1.png Check the workflow: cfs-2.png and cfs-3.png Create a textfile (my-folder-structure.txt, name doesn’ matter) with e.g. the following content (whitespaces are visible here because they are important): cfs-4.png Now run the workflow on this file (i.e. this is a file action): cfs-0.png Then press enter. I hope this helps. Feel free to contact me by mail: royaljerry@gmail.com. Best, Adam
  4. Ugh, sorry. Link just updated (and re-checked), thanks for mentioning.
  5. Unfortunately the script generates each folder wth a trailing new line – I’ll fix it today later. Just edited, it should now work.
  6. Create Folder Structure v1.0.1 This script creates a folder structure defined in a text file. Usage Select the definition text file, then open Alfred, and run “Create Folder Structure”. Definition File Syntax Create an UTF-8 encoded text file (e.g. in TextEdit), and start typing folder names, row by row, one after another. Each one must be placed in a unique row. If a subfolder is required, just indent it with a tab. Folder names can contain any legal characters the OS X supports. Example: First Folder Second Folder First Subfolder of Second Folder Second Subfolder of Second Folder First Subsubfolder of Second Subfolder Third Folder Metanames %date% - Creates a folder named after the current date. Download You can download it from this link. Feedback Feel free to contact me at royaljerry@gmail.com http://www.facebook.com/royaljerry
×
×
  • Create New...