<cfset listToSterilize = "id,keywords,yada,yada,yada">
<cfloop list="#listToSterilize#" index="index">
<cfset "#index#" = #htmleditformat(evaluate(index))#>
</cfloop>
bång!
Sunny and Cold
<cfset listToSterilize = "id,keywords,yada,yada,yada">
<cfloop list="#listToSterilize#" index="index">
<cfset "#index#" = #htmleditformat(evaluate(index))#>
</cfloop>
I genuinely feel that people are locking their thinking in, and causing unnecessary confusion, by getting hung up on "MVC practices". When, as I hope I've shown and linked to, the problem space is much more subtle than that and multiple solutions exist. Focus on the problem you are trying to solve. Keep in mind that there are many similar, but different solutions and think about the Django mapping example I did in the previous section. Hopefully you can see that it's ridiculously constraining (not to mention, simply incorrect) to assign labels to broad components in a framework when they work at a much finer-grained level.
The model is the data, the view is the window on the screen, and the controller is the glue between the two. -- ConnellyBarnes
on open theFile
tell application "Finder"
-- get a "/folder/folder/name" (POSIX) path
set thePath to POSIX path of (theFile) as string
-- make work with spaces in the path
set theName to do shell script "perl -e \"print quotemeta ('" & thePath & "');\""
-- decode noname from base64 and save to the Desktop as somename
do shell script "/usr/bin/openssl enc -d -base64 -in " & theName & " -out ~/Desktop/noname_fix"
end tell
end open