TagBot Import Tags

Summary: Imports tag names from TagBot.
Requires: EagleFiler, TagBot, Property List Tools
Install Location: ~/Library/Scripts/Applications/EagleFiler/

Description

This script creates a tag in the current EagleFiler library for each tag that you’ve created in TagBot.

Download in Compiled Format | Download in Text Format

Script

set theTags to my tagBotTags()
my makeTags(theTags)

on makeTags(theTags)
    
tell application "EagleFiler"
        
tell library document 1
            
repeat with theName in theTags
                
get tag theName
            
end repeat
        
end tell
    
end tell
end makeTags

on tagBotTags()
    
set appSupportFile to path to application support from user domain
    
set appSupportPath to appSupportFile's POSIX path
    
set plistPath to appSupportPath & "Big Robot/tagstore.plist"
    
set theFile to POSIX file plistPath
    
return read property list theFile
end tagBotTags

Last Modified: 2007-10-17