AppleScript

GPSNavX™ supports AppleScript. Table of available GPSNavX suite properties:

Item Owner Kind Type Possible value Example Description
gps application element class     The application gps element
altitude gps property Unicode text Altitude "2000'" The Formatted Altitude
cog gps property Unicode text Course Over Ground "224 TRUE" The Formatted Course Over Ground
sog gps property Unicode text Speed Over Ground "9.5 KTS" The Formatted Speed Over Ground
latitude gps property Unicode text Latitude " 3357.09'N" The Formatted Latitude
longitude gps property Unicode text Longitude "12752.27'W" The Formatted Longitude
fix gps property Unicode text Fix "GPS-Auto-3D" The Formatted Fix
utc gps property Unicode text UTC "19:49:23" The Formatted UTC
canConnect gps property integer true or false   Returns true when a GPS can be connected to
IsConnected gps property integer true or false   Returns true when a GPS is connected to
connect gps command       Connect to a GPS
disconnect gps command       Disconnect from a GPS

Item Owner Kind Type Possible value Example Description
instruments application element class     The application instruments element
speed instruments property Unicode text Speed through water "9.5 KTS" The Formatted Speed through water
heading instruments property Unicode text Heading "224 TRUE" The Formatted Heading
depth instruments property Unicode text Depth "33.2'" The Formatted Depth
temperature instruments property Unicode text Temperature "50F" The Formatted Temperature
windAngle Instruments property Unicode text Wind Angle "24" The Formatted Wind Angle
windSpeed instruments property Unicode text Wind Speed "19.3 KTS" The Formatted Wind Speed
canConnect gps property integer true or false   Returns true when instruments can be connected to
IsConnected gps property integer true or false   Returns true when instrurments are connected to
connect gps command       Connect to instruments
disconnect gps command       Disconnect from instruments

Item Owner Kind Type Possible value Example Description
waypoints application element class     the application waypoints element
hasActiveWaypoint waypoints property integer true or false   Returns true when there is an active waypoint
activeWaypointName waypoints property Unicode text waypoint name "ALCTZ" The active waypoint name
activeWaypointBearing waypoints property Unicode text waypoint bearing "21 MAG" The active waypoint bearing
activeWaypointDistance waypoints property Unicode text waypoint distance "21.5 NM" The active waypoint distance
activeWaypointVelocity waypoints property Unicode text waypoint velocity "6.1 knots" The active waypoint velocity
activeWaypointCrossTrack waypoints property Unicode text waypoint cross track error "0.2 NM Port" the active waypoint cross track error
activeWaypointTimeToGo waypoints property Unicode text waypoint time to go "1:24" the active waypoint time to go
closestWaypointName waypoints property Unicode text waypoint name "MVHOME" The closest waypoint name
closestWaypointBearing waypoints property Unicode text waypoint bearing "192 MAG" The closest waypoint bearing
closestWaypointDistance waypoints property Unicode text waypoint distance "1.2 NM" the closest waypoint distance

Item Owner Kind Type Possible value Example Description
chart application element class     the application chart element
autoFileOpen chart property integer true or false   Returns true when autoFileOpen is set
Set to true to enable autoFileOpen
bearings chart property Unicode text Mag or True "MAG" The origin of the bearings
variation chart property Unicode text Compass variation "4º W" Compass variation

Sample script


Contents