I tried it and it works.
I just replaced "aperture, photoshop" with "Scrivener" and followed the instructions to save the script as an application.
The Dock hides when I open Scrivener and is available if I move my cursor down to the bottom of the screen, when I move the cursor away from the bottom of the screen the dock disappears again.
If I open another application whilst Scrivener is open the dock stays in view but disappears when I close the alternative application.
As noted in the thread, you have to Force Quit to close the script.
Just to point out, I'm new to AppleScript and have only followed the instructions in the post that I linked to, I was curious and wanted to see how it worked.
There are plenty of tutorials on 'net if you want to go check out what the code means before trying it out.
Personally, I'm quite taken with it and intend to pursue 'scripting' further.
