Adobe Photoshop CS has a feature that allows you to make your own "Howto" Help menu items. If you've got CS and would like to know more about how to do this, click this link. I thought that it might be interesting to add some menu items that link to hints and tips on my own site. Replacing the existing .howto file would be too risky if the client had already customised the file. So an AppleScript that appended the file was a better option.
Read the rest of the hint for the how-to ... along with a warning about a potential exposure using this added menu.
Here's the script:
set thePath to "/Applications/Adobe Photoshop CS/Help/Additional How To Content/Add_001.howto"
set m1 to "
\"Martin's Menus\" \"Open Photoshop Folder\" file:///Applications/Adobe%20Photoshop%20CS/" ¬
as Unicode text
set m2 to "
\"Martin's Menus\" \"Open Plug-Ins Folder\" file:///Applications/Adobe%20Photoshop%20CS/Plug-Ins/" ¬
as Unicode text
set m3 to "
\"Martin's Menus\" \"Launch Terminal\" file:///Applications/Utilities/Terminal.app" ¬
as Unicode text
set m4 to "
\"Martin's Menus\" \"Visit Idea Web Site\" http://www.idea-digital.com/index.html" ¬
as Unicode text
set theHowto to POSIX file thePath as alias
open for access theHowto with write permission
write m1 & m2 & m3 & m4 to theHowto starting at eof
close access theHowto
display dialog ¬
"You need to restart Photoshop to use your new menu options." ¬
giving up after 6
Once Photoshop is restarted, you'll find a new menu optioin at the bottom of the Help menu which gives you another four options. One is a link to my web site, two are local folder links that will open the Photoshop folder and the Plug-Ins folder in the Finder. And with the script taking about half a second to run, you can see that it's very easy to send people your own customised menu settings :-). However, now we get to the warning.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20041022082806727