Selecting and Removing Effects from multiple objects

On a drawing with many objects I changed my mind about the effects and wanted to remove them all and start again. The only way to do this was to select them one at at time and remove the drop-shadow. A script to do this kept failing because not all objects had the effects and this caused an error dialog to keep appearing…

So, I’d like to see a “Remove all Core Image effects from all selected objects” command added to Intaglio, or an AppleScript example please.

Thanks

Charles


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

In the forthcoming version 3.0 you’ll be able to select more than one effect at a time to make functions such as this easier.

The following script will delete every effect in every selected graphic:

tell application “Intaglio”
set selectionList to the selection
repeat with theGraphic in selectionList
set effectsCount to count of the effects of theGraphic
repeat with i from 1 to effectsCount
delete effect 1 of theGraphic
end repeat
end repeat
select selectionList
end tell


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

Thanks, it was the ‘repeat with i from 1 to effectsCount’ bit that didn’t occur to me.

C.


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