Expand multiple file with stuffit expander

Hello,

I use Stuffit expander 12 to expand some files in an applescript. I have just a little problem. Expander expand the first file and after nothing append.

Does someone have an idea ?

code : 

						tell application "StuffIt Expander"

						expand file FileA1 with delete originals
						expand file FileA2 with delete originals
						expand file FileA3 with delete originals
						expand file FileA4 with delete originals
						expand file FileA5 with delete originals
						expand file FileA6 with delete originals

						quit
					
						end tell


Thanks for your help

Hi

Not sure if this helps.

This is what i sometimes use to expand multiple archives in stuff it

on open expander_file
	repeat with i in expander_file
		tell application "StuffIt Expander"
			launch
			expand i
		end tell
	end repeat
	tell application "StuffIt Expander" to quit
end open

Thanks so much. It was so simple to make a repeat, I didn’t think about it.

I had some difficulties to find how to set my variable temp. But now it works. :smiley:

Have a great day


tell application "Finder"
	set temp to (files of entire contents of folder "Temp - Macfree" of startup disk) as alias list
end tell

repeat with i in temp
	tell application "StuffIt Expander"
		launch
		expand i with delete originals
	end tell
end repeat
tell application "StuffIt Expander" to quit