|
|
10.4: Print a folder's contents via Automator
I missed OS 9's ability to print out a folder hierarchy just by highlighting a bunch of disclosed folders in list view, hitting copy, and hitting paste in SimpleText. It would put out a tabbed hierarchy of all of the folders. Very nice, very neat.
I tried to recreate that effect with an applescript, and it works pretty well. I have two problems: I can't get it to work as part of the Automator workflow (it doesn't seem to like that I defined a few functions of my own), and I don't know how to get it to avoid duplicate folder hierarchies for multiple folders in the same path. In other words:
/Users/me/foo/ & /Users/me/bar/
instead of: and I don't know how to get it to do what I want. Any thoughts?
My script is extremely ugly, and I'm sure it could be much more optimized, but I'm pushing my skills to have gotten this far. Anyway, here it is, for those who are interested. By the way, I'm sorry that the code makes the page huge, but I don't know how to enclose it in anything. I remember seeing comments before that have some sort of frame with scrollbars embedded in the page, and that contains their code, but I don't know how to do that. Any suggestions on that are greatly appreciated!
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks 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.07 seconds |
|