Dragging

How do I do dragging in my script? Do I need a scripting extension?

: øystein, norway

Hi nordlys3,

What do you mean by implementing «dragging in your script»? If you want to process Finder items, which were dropped onto your script, then you need to use an «on open»-handler in your script:


on open droppeditems
	repeat with droppeditem in droppeditems
		set iteminfo to info for droppeditem
		tell me
			activate
			display dialog (name of iteminfo)
		end tell
	end repeat
end open

Nope, sorry that I was not more precise.

What I need to do in my GUI script, is drag an interface item (a text field in a outline row) across the screen and drop it on a table.

: øystein