I'm temporarily putting HS+ aside as I test DWMX2004, but I thought I'd share a few of my favorite tools for HS+/CFS:
SyncDir - This is a wonderful little script. Let's say you have a file open. By using this script, you can make the folder dialog quickly change to the location of the file. Written by Nick Bradbury.
Convert Special Characters - Allows you to convert < to <. The page also describes writing your own scripts.
UDF Browse - This tool lets you browse CFLib, and even insert UDF code, without having to open your browser.
Finally, a small script I wrote myself that just inserts the date. This is a bit less useful now that HS+ 5.5 supports meta values in snippets, but I still use it to manually mark the Last Updated field of a file.
For a list of additional scripts, check out http://scripts.hsguide.com/.
Archived Comments
Holy cow!
Why didn’t someone tell me this was possible before? ? I don’t know how I missed that my beloved Cold fusion Studio was able to be extended this way. I took Raymond Camden's “now” script and made it into the super comment maker I have always wanted CFS to do.
It now outputs:
<!--- Comment by your name here on 9/25/2003: --->
The one question I have is why do I have to add 1 to the month to get it to be correct? Is it my PC?
function Main() {
var date;
var str;
var app;
var doc;
date = new Date();
str = "<!--- Comment by Me on " + (date.getMonth()+1) + "/" + date.getDate() + "/" + date.getYear() + ": --->";
app = Application;
// app.MessageBox(str,'Current Date',0);
doc = app.ActiveDocument;
doc.InsertText(str, true);
}
Arrays start with 0, so if the month is 0, it's the same as the 1st month, which is January.
DWMX is *really* a bad code editor. I know a lot of people complain about it's speed, and I have some issues with that, but mainly its just the lack of general features that you take for granted. I posted <a href="http://mx.blogs.com/blog/20...">my beef</a> already. I still open DWMX2004 every so often (I have a week or so left in my trial) just to get the CFMX tag support.
I wish Macromedia would let you trial HS+. Does it support CFMX 6.1 tags the same as DWMX2004?
And thanks for CFS tools, I was clueless about these as well. I want to try and get something to remove the characters that MS Word adds for ... and -- and begining and end "; I get text sent to me all the time with these items.
Completely off topic: Looking forward to taking your class at MAX this year, I also attended your Security session last year in FL.
Sorry for the delay in responding. I'm finding DW to be an ok editor. I'm kinda liking it. Not sure if I'll make the switch though. HS+ does support the 6.1 tags/functions.
Glad you enjoyed my security session. At MAX, be sure to come up and say (and remind me who you are, I'm horrible with names. ;)
ErikG, macromedia does have trial downloads of HomeSite, and it does support CFMX tags, though it may be a separate download to add them... (don't recall at the moment)
BTW, there are more HS/CFS scripts and extensions at:
http://www.wilk4.com/asp4hs/