Re: Finder: using "on adding folder items to..."
Re: Finder: using "on adding folder items to..."
- Subject: Re: Finder: using "on adding folder items to..."
- From: Nigel Garvey <email@hidden>
- Date: Wed, 22 Oct 2003 20:35:28 +0100
email@hidden wrote on Wed, 22 Oct 2003 10:14:03 CEST:
>
Hello! When I use the command "on adding folder items to" in this
>
script, and try to attach it to a folder, it doesn't work. What
>
is wrong with that? (I use OS 9 on a Imac 1rst
>
generation).Thanks...Here's the script, very close from the
>
example given in Apple Help:
>
>
on adding folder items to this_folder after receiving added_items
>
tell application "Finder"
>
activate
>
set the item_count to the number of items ,
>
in the added_items
>
set the folder_name to the name of this_folder
>
display dialog "Hey, " & (item_count as text) & ,
>
" items have been added to the [[emph -]] folder " & ,
>
the folder_name
>
beep
>
beep
>
beep
>
end tell
>
end adding folder item
It works OK here. Make sure that the folder is open when you add the
items to it. (This is necessary in OS 9.)
NG
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.