Help - UI scripting of iSquint yields error

So I’m attempting to applescript an application called iSquint. I’ve used UI Element Inspector to discover the object hierarchy that I need. However, when I run the script I get the error “System Events got an error: NSReceiverEvaluationScriptError: 4”. Research has shown me that this message typically means an element you are referring to can not be found.

Then in the script, the line: "click menu item “Add…” is highlighted, signaling that this is where the foul lies. So I’m stumped here. Anyone have any ideas on what is going on here? And more importantly is there a way to fix it?

Thanks for any input. I’ll attach my current applescript
PS: “Enable access for assistive devices” IS checked.


tell application "iSquint"
	activate
end tell

tell application "System Events"
	tell process "iSquint"
		tell menu bar 1
			tell menu bar item "File"
				tell menu "File"
					click menu item "Add..."
				end tell
			end tell
		end tell
	end tell
end tell

The usual problem with this, Kevin, is that what follows the menu item is not 3 dots ” but a single-character ellipsis (ASCII character 201), which you should be able to type by pressing the option and “;” keys.

So, to avoid the dreaded “NSReceiverEvaluationScriptError: 4” error for this type of issue, try something like:


activate application "iSquint"
tell application "System Events" to tell process "iSquint"
	click menu item "Add." of menu 1 of menu bar item "File" of menu bar 1
end tell


Thanks so much kai.

That worked wonderfully. Now the next question I’m running into is: when this script runs, it launches iSquint and then opens up the “Choose a File” dialog box. Each day - when this script is done - I will want iSquint to open a file that will always be named “Movie.mov” to begin with.

The question is - can I select a file via the UI Scripting?

Thanks again!