Useful little FrameMaker applescript...
Useful little FrameMaker applescript...
- Subject: Useful little FrameMaker applescript...
- From: David Crowe <email@hidden>
- Date: Thu, 30 Jan 2003 08:16:09 -0700
The following little applescript creates a URL hypertext link in FrameMaker:
tell application "FrameMaker 6.0"
tell the selection
set character tag of it to "www"
set theURL to text of it
if theURL = "" then
return -- Do nothing if no text selected
else if theURL does not start with "
http://" then
set theURL to "
http://" & theURL
end if
make new marker at (end of container of it) with
properties {marker type:"Hypertext", marker text:"message URL " &
theURL}
end tell
end tell
It is best used in conjunction with QuicKeys or something like that,
so that it can be executed from a keystroke.
Note that you must have a Character Format with the name "www"
defined for this to work. This way the hypertext link can have the
characteristics that you like to see.
- David Crowe
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.