on adding folder items to this_folder after receiving these_items
repeat with this_item from 1 to (count of these_items)
set sayIt to this_item as string
say sayIt
end repeat
end adding folder items to
My little newbie brain tells me this should work, but my 'puter doesn’t agree.
This should work but it will say the entire path of the item. Is that what you want?
on adding folder items to this_folder after receiving these_items
repeat with this_item from 1 to (count of these_items)
set sayIt to (item this_item of these_items) as string
say sayIt
end repeat
end adding folder items to
This one should say only the file name.
on adding folder items to this_folder after receiving these_items
repeat with this_item from 1 to (count of these_items)
set sayIt to name of (info for (item this_item of these_items)) as string
say sayIt
end repeat
end adding folder items to
I was looking for the folder action to just say the name as in your second example.
The “path to” example can come in handy someday also.
As you can see I’m not making anything useful yet, but I gotta start somewhere.
At least I know what I did wrong now.
Thank you very much for your help.
-G