Thread: Empty Value
View Single Post
You just need two passes:

Code:
tell application id "OGfl"
	tell front window
		set lstShapes to selection
		set oShape to first item of lstShapes
		
		set lstNoSourceLines to (incoming lines of oShape where its source is missing value)
		-- Process these in one pass,
		
		set lstOtherLines to (incoming lines of oShape where its source is not missing value)
		--	and these in another ...
		
	end tell
end tell
Try, in applescript, to delegate as much of the logic as possible to where/whose clauses. This can drastically reduce the Apple Event count, which tends to be the main bottleneck in the execution speed of a script. It can cut down programmer time as well ...

(See the Filter section under Reference Forms in the online Applescript documentation).

--

Last edited by RobTrew; 2011-04-11 at 02:47 AM..