|
|
Applescript: PathLabeller
I like seeing stuff from people thinking differently. Nice, simple idea. Don't predict I'll need it, but thanks for the opportunity to practice some Applescript (use it or lose it!).
Here is the script in about as simple a form as I could imagine. No input or conditionals. I suspect you could change the variables in Script Editor as needed or save a few copies for different labels and directories (or add in your own dialog/conditionals) and run it from a launcher, script menu or a contextual menu plug in). It will change the labels of every folder up to but not including the top most folder (this made sense to me, the top most would be the starting point so no need to label it).
Applescript: PathLabeller
Aw hell, it this turned out to be too much fun! Here it is with a "toggle" like action and dialog. This really flies if you use use a launcher app (e.g. Launchbar or Butler). A couple of keystrokes and your whole path lights up or turns off depending on its state
Applescript: PathLabeller
Awesome. I use Launchbar too. Thanks.
Applescript: PathLabeller
Thanks for the groovy script. Have you put it through its paces yet--chosen every label? I get weird probs when I run it:
Applescript: PathLabeller
Heh, I figured out why I get the error message: I need to replace "1.Work" in your script with the name of the topmost folder on my own Mac, which, for my purposes, will be "Documents".
Applescript: PathLabeller
Glad you like it!
Heh, I figured out why I get the error message: I need to replace "1.Work" in your script with the name of the topmost folder on my own Mac, which, for my purposes, will be "Documents".Yup. If you don't name the top most folder correctly it will try to keep labelling up to the root level of your drive and reach and error when it can't get any further. Sorry I wasn't more clear that you needed to change it! The script is pretty bare (no error trapping, etc) so one could add dialogs and handlers to deal with user "mistakes" if they wanted to make it more accessible to others. For example, the script will die if you enter anything other than 0 through 7. With coersion and "try" handlers you could get it to kick back to the user for a valid label entry. You could even get it to accept text (e.g "Red") instead of numbers to be more intuitive, which gets me to your next problem... Still have no idea why the colors/labels are shuffled around, though.That isn't an error. For whatever reason the order you see the labels listed in contextual menus does not match their numerical order! There is probably a "legacy" reason for the integer value while the order in the menu is more pleasing to the eye, or something like that. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|