• 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
Fwd: Podcast folder size error.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Podcast folder size error.


  • Subject: Fwd: Podcast folder size error.
  • From: "Adam Bell" <email@hidden>
  • Date: Sun, 30 Apr 2006 02:10:37 -0300

I sent this directly to Laine instead of to the list, and have had a further thought:

Does it work for you if you put it this way?:

set fldrs to (folders of (selection as alias)) as alias list

---------- Forwarded message ----------
From: Adam Bell <email@hidden>
Date: Apr 30, 2006 1:58 AM
Subject: Re: Podcast folder size error.
To: Laine Lee <email@hidden>



On 4/30/06, Laine Lee <email@hidden > wrote:
On 4/29/06 4:34 PM, "Adam Bell" <email@hidden> wrote:

I had trouble with an error at this line (can't make [...] into type [event
code for alias list]):

set fldrs to folders of (selection as alias) as alias list

So I changed it to this, which seemed to do what I expected it to although
the Finder selection hadn't changed:

    set thes to selection
    set fldrs to {}
    repeat with i in thes
        if kind of (info for i as alias) is "Folder" then
            set fldrs to fldrs & (i as alias)
        end if
    end repeat

Why is that? Thanks.

I don't know Laine, and what makes it  even stranger is that if I copy the line from the list to my script editor preceding it with 'tell application "Finder" to', it fails for me too. If I simply type it in my script editor: just this much:

'tell application "Finder" to set fldrs to folders of (selection as alias) as alias list'

it works perfectly - returning a list of the folders in any selected folder that actually has internal folders and returns a list of zero items if the selected folder doesn't have any or if the selection is a file.

Even more interesting; after the first try, that is if I type it into either the Script Editor or Script Debugger 4.0.2, it works. If I open a new script document, then copy the line again from the list and compile it, it compiles and works!

The upshot is: I can't answer your question unless it is because I am running 10.4.6 and you are not or there is something else very spooky going on having to do with copying it from a browser window (in my case, Camino)

Adam

--
Some minds remain open long enough for a truth to both enter and leave without processing.


--
Some minds remain open long enough for a truth to both enter and leave without processing.
 _______________________________________________
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: 
 >Re: Podcast folder size error. (From: "Adam Bell" <email@hidden>)
 >Re: Podcast folder size error. (From: Laine Lee <email@hidden>)

  • Prev by Date: Re: Podcast folder size error.
  • Next by Date: Re: Podcast folder size error.
  • Previous by thread: Re: Podcast folder size error.
  • Next by thread: Re: Podcast folder size error.
  • Index(es):
    • Date
    • Thread