Re: Handler joy
Re: Handler joy
- Subject: Re: Handler joy
- From: Bryan <email@hidden>
- Date: Wed, 28 Feb 2001 11:53:10 -0500
- Organization: Apex Radiology
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
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users