applescript problem

Hi All,

I’m having a small issue with an applescript. What I am trying to do is have the script modify the settings of one of the effects in a set of selected objects.
Here is what I have so far:

tell application "Intaglio"
	activate
	set elements to the (every graphic in the selection)
	repeat with theElement in elements
		set intensity of (effect whose name is "3D Lighting") of theElement to 0.5
	end repeat
end tell

The problem is trying to get a reference to the right effect.
This (effect whose name is “3D Lighting”) doesn’t seem to work. I get: “Intaglio got an error: Expected a reference.”
So what do I need to do to get to the right effect?


Intaglio mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Effects are listed by index, not by name. For example, you could do something like “delete effect 1 of graphic 1” but not “delete effect named 3D lighting”. One issues is that you could have multiple effects named “3D Lighting”.


Intaglio mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options