ArcView has capability to makes a hotlink to any file supported by ArcView, particularly TIF image. However, sometimes we need to make hotlinks to other format, JPG for example, or any other format such as DOC, XLS, CDR, etc. Don’t worry, there are many scripts we can use such as LINKTOWORD script. Frome the name we can guess what the script for. However, please don’t be wrong. This script can be used to open virtually every format as long as we have software to open it. This example is going to show you how to make a hotlink to JPG format using Adobe Photoshop. It seems to be not so realistic using the giant software just to preview the JPG format right? The point is I want to show the example.
- Download the SCRIPT di http://www.gistutorial.net/linktoword-ave
- Open ArcView
- Choose SCRIPT module. Usually at the bottom part of your ArcView project modules.
- Click NEW to create a new SCRIPT baru. An empty script window will appear.
- Load the script you have just downloaded by Clik on SCRIPT menu > LOAD TEXT FILE. You can use the LOAD TEXT FILE icon (number three from right upper-right).
- Find the script file you have downloade. Click OK.
- A script will be shown now on your window.
- Define the software we will use to open the hotlink file. This example uses Adobe Photoshop. Find the EXE file from Adobe Photoshop and determine the absolute path/address. For example, in my computer, the address is C:\Program Files\Adobe\Adobe Photoshop CS3\Photoshop.exe
- Change the software address with Adobe Photoshop. Perhaps, on line number 18
I change
sWord = “C:\Program Files\Microsoft Office\Office\winword.exe”
with
sWord = “C:\Program Files\Adobe\Adobe Photoshop CS3\Photoshop.exe”
- Decide the FIELD we will use for link address. In this example is the JPG addresses. Field may be exist or is going to be created. For example, I will use field Kabas my hotlink. Therefore on line-28
I change
linkField = v.Findfield(“worddoc”)
with
linkField = v.Findfield(“Kab”)

translation will continue soon…
- Ganti nama SCRIPT dengan cara… Klik menu SCRIPT > PROPERTIES.
- Nama default adalah Script1. Saya sarankan untuk memberi nama dengan angka terlebih dahulu agar script kita mudah dicari. Saya contohkan untuk mengganti nama script dengan nama 1saya. Nama creator dll dibiarkan saja. Klik OK.
- Kompilasi SCRIPT dengan cara Klik menu SCRIPT > COMPILE (atau Klik pada ikon Compile berupa tanda centang). Setelah dikompilasi, script tidak perlu di RUN.
- Sampai tahap ini kita sudah membuat script dengan nama 1saya yang isinya merujuk ke software ACDSee dan nama FIELD Kab sebagai link.
- Tutup jendela SCRIPT
- Buka View, tambahkan data yang akan diberi LINK (atau mungkin data sudah ada di dalam project)
- Pilh THEME yang akan diberi LINK (dalam hal ini Theme Kab.shp)
- Klik menu THEME > PROPERTIES
- Scroll ke bawah ke modul HOTLINK. Klik pada modul HOTLINK.
- Pilih FIELD : Kab
- Pilih Predefined Action : User Script
- Pilih script : 1saya
- Klik OK untuk menutup jendela properties

- Buka TABLE dari Theme yang akan diberi LINK
- Yakinkan bahwa FIELD yand didefinisikan pada SCRIPT dan THEME PROPERTIES ada
- Edit FIELD tersebut sesuai dengan alamat absolut file yang akan di LINK (dibuka). Contohnya adalah sebagai berikut.

- Buka View
- Klik pada ikon HOTLINK (seperti petir warna hitam)

- Klik pada fitur-fitur yang memiliki LINK (sesuai tabel)
- Jika kita berhasil membuka file JPG dengan Adobe Photoshop berarti kita sudah sukses.
Contoh APR, AVE, JPG, dan Data dapat didownload di http://www.gistutorial.net/arcview-hotlink. (Data spasial tidak valid, jumlah link hanya 1 (satu) buah di Kabupaten Banjar)