• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Podcast folder size error.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Podcast folder size error.


  • Subject: Re: Podcast folder size error.
  • From: "Adam Bell" <email@hidden>
  • Date: Sat, 29 Apr 2006 18:34:07 -0300



On 4/29/06, Joseph White <email@hidden> wrote:
Adam,
Thank you very much.  The script works great!  I wanted a runnable script and this does exactly what I wanted it to do.
 Thanks again.
--JB 

You're welcome. Another way to go with more resolution is to put the size of the folder into the folder name. This script (which I prefer to changing labels) will either add the size of the folder in K bytes to the name of the folder or remove it (so the name isn't permanently changed) so you can quickly scan the size of the folders, then remove the labels by running the script again.

--- Script Begins:

set theWay to button returned of (display dialog "Do you want to add sizes to folder names or remove them" buttons {"Cancel", "Remove", "Add"} default button "Add")
tell application "Finder"
    set fldrs to folders of (selection as alias) as alias list
    repeat with aFolder in fldrs
        set theName to name of aFolder
        if theWay is "Add" then
            set mySize to (size of (info for aFolder)) / 1000 as integer
        else
            set mySize to 0
        end if
        set otid to AppleScript's text item delimiters
        set AppleScript's text item delimiters to "["
        set baseName to text item 1 of theName
        set AppleScript's text item delimiters to otid
        if mySize > 0 then
            set nameEnd to "[" & mySize & "]"
            set name of aFolder to baseName & nameEnd
        else
            if mySize = 0 then set name of aFolder to baseName
        end if
    end repeat
end tel

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Podcast folder size error.
      • From: Laine Lee <email@hidden>
References: 
 >Podcast folder size error. (From: Joseph White <email@hidden>)

  • Prev by Date: Podcast folder size error.
  • Next by Date: Re: Stopping dialogue window from appearing on launch
  • Previous by thread: Podcast folder size error.
  • Next by thread: Re: Podcast folder size error.
  • Index(es):
    • Date
    • Thread