If you post a bit in Apple Discussions this is a handy little script that I've just written.
When posting in AD you can either post full URL's like https://www.mac-help.com or mac-help
Unfortunately in AD there is no easy way of doing this...so here's a little script to help.
Please modify for your own needs.
Basically it grabs the current URL from Safari, asks you for your "keyword" (in the example above we used mac-help), then it wraps it up with the correct code and places it on your clipboard...just point your cursor at a text box and paste !
If you add it into your Scripts menu then its instantly accessable.
Cory might like this one !
regards
Ric
When posting in AD you can either post full URL's like https://www.mac-help.com or mac-help
Unfortunately in AD there is no easy way of doing this...so here's a little script to help.
Please modify for your own needs.
Code:
set theKeyword to ""
set theUrl to ""
set theResult to ""
tell application "Safari"
set theUrl to the URL of the front document
end tell
set theKeyword to the text returned of (display dialog "Please enter the key word !" buttons {"OK"} default button 1 default answer "")
set theResult to "<a href=\"" & theUrl & "\">" & theKeyword & "</a>"
set the clipboard to theResult
-----Ric @ www.mac-help.com
Basically it grabs the current URL from Safari, asks you for your "keyword" (in the example above we used mac-help), then it wraps it up with the correct code and places it on your clipboard...just point your cursor at a text box and paste !
If you add it into your Scripts menu then its instantly accessable.
Cory might like this one !
regards
Ric