thanks for further comments / help by everyone
– and sorry to everyone in here in case some things sound utterly confusing.
I guess this might be partly related to the fact that I am neither native scripter/coder nor native english speaker.
but to try helping with some clarifications/reactions:
I.@chrillek
Why? The end performSmartRule is not really more expensive than the first part.
… that simply because I wasn´t aware
I wasn´t trying to be code-economical here, or anything likewise. that is why I said ‘thank you’ for the pointer by a knowledgable person.
II.
I don’t understand what you mean here:
BUT I include that very same script that works as menu-launched script – and here it still doesn´t , even if enclosed that way…
Before you said my pointer “helped”, now it still doesn’t work? So in what way did it help?
Then you say it doesn’t work even if enclosed, but before you said you didn’t use the end part, so you didn’t really enclose it?
This is utterly confusing.
it´s like this:
a) the pointer helped because I wasn´t aware there is a closing line (see 1). so initially I only partially adapted the script to the the DT-environment (as I know by now)
b) then I enclosed the script that Pete graciously shared with those two lines at beginning and end (as you pointed out) - and it still didn´t work (– unlike triggering the original script from Pete in its original form via menu)
III. now with @pete31 new version it works!
– so, thanks again Pete! I guess you know that you are really helpful for someone like me!
and I might add: I wouldn´t have gotten there any other way given my (non-existent) script-skills!
– especially I can see now the
end PerformSmartRule
is positioned in a way (not at the end) that I could never ever have figured out myself as a novice.
I really appreciate you putting up your time, and being helpful on all levels!
so, I am quite happy now. thanks, especially to Pete!
oliver
ps @pete31
@lerone regarding MetaImage.app, maybe you can get a refund?
… shows you are a really attentive person. thx for minding even these sideline details.
MetaImage is one of those accidental captures, meaning I will keep it anyways. it is very helpful in a lot of photo metadata contexts, and helpful bec it´s small, swift + agile. I use it for GPS-tagging for files in DT and other programs, as it is the most convenient way by far. and it has some more advantages in handling IPTC/EXIF and a host of other metadata. so, recommended to OSX/photo-people… 