Creating hyperlinks in Word 2004
Creating hyperlinks in Word 2004
- Subject: Creating hyperlinks in Word 2004
- From: Matt Deatherage <email@hidden>
- Date: Tue, 16 Aug 2005 17:06:47 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Can it be done?
tell application "Microsoft Word"
activate
set d to content of selection
set t to text object of selection
set h to make new hyperlink object at t
set content of hyperlink address of h to ¬
"http://dictionary.reference.com/search?q=" & d
end tell
...always gives "Microsoft Word got an error: Can't make class hyperlink object."
I don't know if I can't make an object at that place, or if I can't make one at all. The Word 2004 AppleScript reference is woefully silent on the subject, as is Google. Can I do this or not?
- --
Matt Deatherage <email@hidden>
GCSF, Incorporated <http://www.macjournals.com>
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.2 (Build 2425)
iQA/AwUBQwJjeOQJS+YigHjzEQKVQQCg25WUXVDi/oo7JlOvSrFEUesXhocAoKBL
NT3/8typIO4TrRARikyK6AAn
=eFxV
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden