Calling an action in Illustrator

Hello,
OK…I am trying to see if I can load an action that is in illustrator … in photoshop, the library has something called do action.
I don’t see that in illustrator?
Is it possible to call an action in illustrator?
thanks!
babs

Actually I found it…its called do script…
Here is my script, but the problem is it says “the object play action is not currently available”.

Does anyone know how to add this?
thanks



on adding folder items to this_folder after receiving these_items
	repeat with an_item in these_items
		tell application "Adobe Illustrator"
			activate
			open an_item
			do script "Delete Unused Panel Items" from "Default_Set"
		end tell
	end repeat
end adding folder items to

I was given some advice on this problem and told to create an action to play the other action…
This is what I came up with, but it still is not working, and giving me the play issue.


on adding folder items to this_folder after receiving these_items
	repeat with an_item in these_items
		tell application "Adobe Illustrator"
			activate
			open an_item
			do script "start delete" from "Babs"
			do script "Delete Unused Panel Items" from "Default"
			
			delay 3
		end tell
	end repeat
end adding folder items to

I also tried to create one action that plays them both.
Any one out there familiar with scripting actions in illustrator…I could send you my actions…
thanks!!

babs