|
|
Display folder item counts via folder action script
Hold it - what's with the dependency on "comment of theFolder"? Seems like you have to store the name of the folder in the comment ahead of time. A more robust solution would find if there is already a count attached and if necessary remove it, then add the new count.
Display folder item counts via folder action script
I fixed the need to put the name in the comment with a simple addition to the script. It looks at the comment and if it is blank copies in the name. This makes sure you never lose the folder name.
I played around with trying to strip the "(xx)" at the end of the name string but it seemed to break the script. This is my first look into Applescript so I'm sure it is quite easy to play around with strings but I just couldn't figure it out.
I also don't know how to step through a script and see what values the variables have. If I could do this than I would have some idea where the script was failing. It did fail gracefully in that it just did nothing.
|
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.09 seconds |
|