Insertion Point for Toast Files?

I’ve been looking for a way to insert my files in between two other files in a Toast project.

Could anyone give me some pointers how to do this please?

Here’s what I’ve tried - without luck so far:



tell application "Finder" to set files_to_add to every file of sourceFolder as alias list
set mov1 to "mov1"
set mov2 to "mov2"

tell application "Toast 10 Titanium"
	open thefile
	set toast_project to current disc
	add to toast_project items files_to_add
	set insertion point of files_to_add to {"mov1", "mov2"} 
	delay 3
	write toast_project with asynchronous completion without asking
	delay 3
	tell application "System Events"
		keystroke return
		try
			tell application "Toast 10 Titanium" to quit without saving
		end try
	end tell
end tell

I’ve tried searching these forums for “Insertion Point” but can’t really put together anything I’ve found yet, so any help would be very much appreciated.

Thanks in advance

OK,

. . . . so after some rigorous Google searching (many hours) I find that toast does not have the “Insertion Point” command in it’s Applescript dictionary.
Is there another way around this?

Thanx

I don’t script Toast so I’m not certain, but couldn’t you get the current list of files from Toast, then manipulate that list in applescript to anything you want, then insert that rearranged list back into Toast? So the idea is to basically manipulate stuff in applescript instead of in Toast.

regulus6633,

Thanks for the interesting suggestions . . . . I’m pretty new to all this AppleScripting, but I think I see where you’re heading!
I’ll have a try when I get home after work this evening, and let you know how it goes!

Thanks