AppleScript (trigger)

From ProxiPedia

(Redirected from AppleScript Trigger)
Jump to: navigation, search

latroca dardronla delviorr

AppleScript
AppleScript

Availability: version 1.0

Proxi Icon
Documentation

[edit] Description

The AppleScript trigger is used to provide a triggering mechanism via AppleScript. A name should be provided to uniquely identify each AppleScript trigger.

The AppleScript syntax is:

trigger reference : the object for the command

description Unicode text : Description of the trigger
name Unicode text : Name of the trigger
[image TIFF picture] : An optional TIFF image for the trigger
[pictImage picture] : An optional PICT image for the trigger
[value integer] : An optional value for the trigger

Assuming you have an AppleScript trigger with the name set to test trigger, you might use it in an AppleScript like this:

tell application "Proxi"
	trigger description "This is a description of my test trigger" name "test trigger" value 42.0 
end tell 

This script would cause any AppleScript triggers with the name test trigger to fire.

[edit] Settings

  • AppleScript trigger name (field): The desired name of the AppleScript trigger. This name corresponds to the name parameter supplied by the AppleScript.

[edit] Values

  • Name (text): The name given to the trigger in the settings view.
  • Description (text): Text provided by the triggering AppleScript via the description parameter in the trigger command.
  • Value (number): A optional number provided by the triggering AppleScript via the value parameter in the trigger command. Defaults to 0.
  • Image (image): An optional image provided by the triggering AppleScript via the image parameter in the trigger command. Defaults to Image:missing_image.jpg.


litrocric

Personal tools