- View the script in the Script Editor
- Print in the File menu
- Hit the Preview button in the Mac OS X Print dialog
- Select the script contents in the Preview window and Copy.
- Paste into the forum post.
Personally I type them out by hand.
But you can either follow TomHays solution or you can use one of the available plug-ins that allows you to copy script text to the clipboard. The Dracoventions 2empowerFM Developer Assistant is one I have used.
I can't imagine that erolst and everyone else is typing this stuff out by hand in the discussion forum. For the life of me, I don't know how to show script steps without typing them out or doing a screen shot. Is there some secret club you have to belong to in order to do this?
No decoder ring or handshake necessary. You "just" have to be fluent in the language you're writing in.
Of course, if I have an existing script (eg from a sample database I set up to be sure a certain algorithm works), I copy it using the method that Tom described.
print the script to a PDF and copy/paste from the PDF.
Use Advanced to generate an HTML Database Design Report and then copy/paste from it.
Do a screen capture from scripts workspace and upload the image.
That's a great tip! Thanks Tom.