Here is an updated script that will do 3 things:
1) Get the values from WeathermanX
2) Create variables in Indigo if they don't exist.
3) Put the values of weatherman into the indigo variables.
This is intended to be a attachment script so use GetWeather in the Applescript area of a trigger to use this.
Note that you might want to change some of the variable names to suite your taste. It's just an example to get you started.
--[url=applescript://com.apple.scripteditor/?action=new&script=using%20terms%20from%20application%20%22Indigo%22%0A%09on%20GetWeather()%0A%09%09--get%20the%20values%20from%20weatherman%0A%09%09tell%20application%20%22WeatherManX%22%0A%09%09%09set%20the%20wind_dir%20to%20the%20Wind%20Direction%20of%20City%20%22Albuquerque,%20NM%22%0A%09%09%09set%20the%20temp%20to%20the%20Current%20Temperature%20of%20City%20%22Albuquerque,%20NM%22%0A%09%09%09set%20the%20wind_speed%20to%20the%20Wind%20Speed%20of%20City%20%22Albuquerque,%20NM%22%20as%20real%0A%09%09%09set%20the%20cond%20to%20the%20Conditions%20of%20City%20%22Albuquerque,%20NM%22%0A%09%09%09set%20the%20dew%20to%20the%20Dewpoint%20of%20City%20%22Albuquerque,%20NM%22%0A%09%09%09set%20the%20baro%20to%20the%20Current%20Pressure%20of%20City%20%22Albuquerque,%20NM%22%0A%09%09%09set%20the%20humid%20to%20the%20Humidity%20of%20City%20%22Albuquerque,%20NM%22%0A%09%09%09set%20the%20vis%20to%20the%20(Visibility%20of%20City%20%22Albuquerque,%20NM%22)%20as%20integer%0A%09%09%09set%20the%20ptrend%20to%20the%20Pressure%20Trend%20of%20City%20%22Albuquerque,%20NM%22%0A%09%09%09set%20the%20wether%20to%20the%20Weather%20of%20City%20%22Albuquerque,%20NM%22%0A%09%09end%20tell%0A%09%09--create%20variable%20if%20they%20don't%20exsit%0A%09%09if%20not%20(variable%20%22wind_dir%22%20exists)%20then%20make%20new%20variable%20with%20properties%20%7Bname%3A%22wind_dir%22,%20value%3A%22unknown%22%7D%0A%09%09if%20not%20(variable%20%22temp%22%20exists)%20then%20make%20new%20variable%20with%20properties%20%7Bname%3A%22temp%22,%20value%3A%22unknown%22%7D%0A%09%09if%20not%20(variable%20%22wind_speed%22%20exists)%20then%20make%20new%20variable%20with%20properties%20%7Bname%3A%22wind_speed%22,%20value%3A%22unknown%22%7D%0A%09%09if%20not%20(variable%20%22cond%22%20exists)%20then%20make%20new%20variable%20with%20properties%20%7Bname%3A%22cond%22,%20value%3A%22unknown%22%7D%0A%09%09if%20not%20(variable%20%22dew%22%20exists)%20then%20make%20new%20variable%20with%20properties%20%7Bname%3A%22dew%22,%20value%3A%22unknown%22%7D%0A%09%09if%20not%20(variable%20%22baro%22%20exists)%20then%20make%20new%20variable%20with%20properties%20%7Bname%3A%22baro%22,%20value%3A%22unknown%22%7D%0A%09%09if%20not%20(variable%20%22humid%22%20exists)%20then%20make%20new%20variable%20with%20properties%20%7Bname%3A%22humid%22,%20value%3A%22unknown%22%7D%0A%09%09if%20not%20(variable%20%22vis%22%20exists)%20then%20make%20new%20variable%20with%20properties%20%7Bname%3A%22vis%22,%20value%3A%22unknown%22%7D%0A%09%09if%20not%20(variable%20%22ptrend%22%20exists)%20then%20make%20new%20variable%20with%20properties%20%7Bname%3A%22ptrend%22,%20value%3A%22unknown%22%7D%0A%09%09if%20not%20(variable%20%22wether%22%20exists)%20then%20make%20new%20variable%20with%20properties%20%7Bname%3A%22wether%22,%20value%3A%22unknown%22%7D%0A%09%09--set%20the%20values%20of%20these%20variables%20in%20indigo%0A%09%09set%20the%20(value%20of%20variable%20%22wind_dir%22)%20to%20wind_dir%0A%09%09set%20the%20(value%20of%20variable%20%22temp%22)%20to%20temp%0A%09%09set%20the%20(value%20of%20variable%20%22wind_speed%22)%20to%20wind_speed%0A%09%09set%20the%20(value%20of%20variable%20%22cond%22)%20to%20cond%0A%09%09set%20the%20(value%20of%20variable%20%22dew%22)%20to%20dew%0A%09%09set%20the%20(value%20of%20variable%20%22baro%22)%20to%20baro%0A%09%09set%20the%20(value%20of%20variable%20%22humid%22)%20to%20humid%0A%09%09set%20the%20(value%20of%20variable%20%22vis%22)%20to%20vis%0A%09%09set%20the%20(value%20of%20variable%20%22ptrend%22)%20to%20ptrend%0A%09%09set%20the%20(value%20of%20variable%20%22wether%22)%20to%20wether%0A%09end%20GetWeather%0Aend%20using%20terms%20from]Click here to open this script in a new Script Editor window[/url].
using terms from application "Indigo"
on GetWeather()
--get the values from weatherman
tell application "WeatherManX"
set the wind_dir to the Wind Direction of City "Albuquerque, NM"
set the temp to the Current Temperature of City "Albuquerque, NM"
set the wind_speed to the Wind Speed of City "Albuquerque, NM" as real
set the cond to the Conditions of City "Albuquerque, NM"
set the dew to the Dewpoint of City "Albuquerque, NM"
set the baro to the Current Pressure of City "Albuquerque, NM"
set the humid to the Humidity of City "Albuquerque, NM"
set the vis to the (Visibility of City "Albuquerque, NM") as integer
set the ptrend to the Pressure Trend of City "Albuquerque, NM"
set the wether to the Weather of City "Albuquerque, NM"
end tell
--create variable if they don't exsit
if not (variable "wind_dir" exists) then make new variable with properties {name:"wind_dir", value:"unknown"}
if not (variable "temp" exists) then make new variable with properties {name:"temp", value:"unknown"}
if not (variable "wind_speed" exists) then make new variable with properties {name:"wind_speed", value:"unknown"}
if not (variable "cond" exists) then make new variable with properties {name:"cond", value:"unknown"}
if not (variable "dew" exists) then make new variable with properties {name:"dew", value:"unknown"}
if not (variable "baro" exists) then make new variable with properties {name:"baro", value:"unknown"}
if not (variable "humid" exists) then make new variable with properties {name:"humid", value:"unknown"}
if not (variable "vis" exists) then make new variable with properties {name:"vis", value:"unknown"}
if not (variable "ptrend" exists) then make new variable with properties {name:"ptrend", value:"unknown"}
if not (variable "wether" exists) then make new variable with properties {name:"wether", value:"unknown"}
--set the values of these variables in indigo
set the (value of variable "wind_dir") to wind_dir
set the (value of variable "temp") to temp
set the (value of variable "wind_speed") to wind_speed
set the (value of variable "cond") to cond
set the (value of variable "dew") to dew
set the (value of variable "baro") to baro
set the (value of variable "humid") to humid
set the (value of variable "vis") to vis
set the (value of variable "ptrend") to ptrend
set the (value of variable "wether") to wether
end GetWeather
end using terms from