Results 1 to 1 of 1

Thread: converting folders to tags

  1. #1

    Default converting folders to tags

    An AppleScript to append the containing folder for each selected record to the existing tag set -- "container-to-tag":

    tell application "EagleFiler"
    set _records to selected records of browser window 1
    repeat with _record in _records
    if _record's container's name is not "Files" then
    set _record's assigned tag names to (_record's assigned tag names & _record's container's name)
    end if
    end repeat
    end tell


    An elaborated version that appends the complete hierarchy of containing folders -- "container-hierarchy-to-tags":

    tell application "EagleFiler"
    set _records to selected records of browser window 1
    repeat with _record in _records
    get name of _record
    set _container to container of _record
    set _containerName to _container's name
    repeat until _containerName is "Files"
    set _record's assigned tag names to (_record's assigned tag names & _containerName)
    set _container to container of _container
    set _containerName to _container's name
    end repeat
    end repeat
    end tell


    Suggested workflow:
    1. Run script.
    2. Move records to higher level (highest if running on all records).
    3. If all records from containing folders have been so moved, trash containing folder(s).

    Usage notes:
    1. [NTIM] Folders are assigned tags.
    2. [IIMAD] Subfolders with identical names in different folders will be given identical tags.
    3. [FYI] Spaces in folder names are converted to underscores.
    Last edited by humanengr; 11-03-2011 at 01:11 AM.

Similar Threads

  1. Tags and Folders
    By Alan Watson in forum EagleFiler
    Replies: 5
    Last Post: 11-23-2010, 03:32 AM
  2. groups, bundles, packages, tags, folders
    By midfield in forum EagleFiler
    Replies: 5
    Last Post: 10-08-2010, 12:15 AM
  3. Nested Tags, Tags and Folders
    By erooke in forum EagleFiler
    Replies: 3
    Last Post: 10-16-2008, 06:11 PM
  4. Converting to IMAP
    By nhweid in forum SpamSieve
    Replies: 3
    Last Post: 07-24-2007, 09:44 AM
  5. hierarchical folders vs. tags
    By thoresson in forum EagleFiler
    Replies: 3
    Last Post: 12-06-2006, 06:51 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •