Re: Handler joy
Re: Handler joy
- Subject: Re: Handler joy
- From: JollyRoger <email@hidden>
- Date: Wed, 28 Feb 2001 12:14:18 -0600
Oh man do I feel stupid... :)
The number of items in the folder I have been using for testing happens to
be exactly the same as the number of characters in the path! Duh!
So, yes, this won't work unless you make the path an alias first. Sorry for
wasting your time - I'm a dolt! :)
JR
on 2/28/2001 10:53 AM, Bryan at email@hidden wrote:
>
No, I tried it in Smile too, and I have virtually every OSAX ever written,
>
installed.
>
I get the number of characters in the name.
>
But when I change the handler to read:
>
>
get the number of items of (list folder pFolder)
>
>
it works. At least in Smile, it does.
>
(It may need a 'tell application "Finder" ' on some systems.)
>
>
Bryan Kaufman
>
>
JollyRoger wrote:
>
>
> on 2/28/2001 4:35 AM, Cal at email@hidden wrote:
>
>
>
>> Jolly Roger <email@hidden> replied:
>
>>
>
>>> Not sure. This works fine for me:
>
>>>
>
>>> -- begin script
>
>>> property ProcessedFolder : "Mac HD:"
>
>>>
>
>>> return my CheckProcessed(ProcessedFolder)
>
>>>
>
>>> -- get the number of items of ProcessedFolder
>
>>>
>
>>> on CheckProcessed(pFolder)
>
>>> get the number of items of pFolder
>
>>> end CheckProcessed
>
>>> -- end script
>
>>
>
>> Not really, Roger. (Actually, it depends on your definition of
>
>> "works fine". If you mean, "it runs and gives me some sort of
>
>> answer" then yes. But if you mean "it runs and gives the number of
>
>> items in a folder, then no.)
>
>
>
> Cal,
>
>
>
> It gives me the number of items in the folder. I ran it from within Smile -
>
> think that makes a difference? Hmm, no, I just ran it from within Script
>
> Editor and it worked there too. So why is it working for me, but not for
>
> you guys?
>
>
>
> JR