AppleScript
GPSNavX supporte le langage AppleScript. Table des propriétés applescript de GPSNavX :
| Item |
Owner |
Kind |
Type |
Possible value |
Example |
Description |
| gps |
application |
element |
class |
|
|
The application
gps element |
| 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 |
" 33º57.09'N" |
The Formatted Latitude |
| longitude |
gps |
property |
Unicode text |
Longitude |
"127º52.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 |
| 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 applcation 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 |
| 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 applcation chart element |
| autoFileOpen |
chart |
property |
integer |
true or false |
|
Returns true when autoFileOpen
is set
Set to true to enable autoFileOpen |
Exemple de script
