1.4. Self-written AppleScripts

You can easily create a AppleScript file by yourself with the AppleScript editor on your Mac.

Integrating self-written AppleScripts into your NCTI standard for Mac

null

null

Pay attention on inserting the correct telephone format.

Format of phone numbers passed to the script: Use this option to specify the format in which the number of the caller or of the called contact will be passed to the script. This can be helpful if you want to evaluate or use the number in a specific way. There are three options:

  • International format: This is the full international format, starting with a plus sign and the country code. (e. g. +4989123456789).
  • Phone book format: This is the number as it might appear in a phone book. For national calls, this format does not include the country code, but does include the area code plus a leading long distance prefix (if any). For international calls, this starts with the international prefix, followed by the country code, and the rest of the number. (e. g. 089123456789).
  • Dialable format: This is the phone book format with a leading trunk access code (if any). (e. g. 0089123456789).

In order for your custom scripts to show up in the menu and be useable by NCTI standard, you'll have to copy them into one of the following folders (with ~ standing for your home folder): Please add the "Scripts" folder into the "NCTI standard" folder manually before adding self-written scripts.

  • ~/Library/Application Support/Nfon/NCTI standard/Scripts
  • /Library/Application Support/Nfon/NCTI standard/Scripts
  • /Network/Library/Application Support/Nfon/NCTI standard/Scripts

null

In this case we will use ~/Library/Application Support/Nfon/NCTI standard/Scripts. The scripts may either be saved in text format (with a file name suffix .applescript) or as compiled scripts (with a file name suffix .scpt or .scptd).

For time being, only one AppleScript can be defined at once. If you'd like to integrate several scripts at once please create a master script which contains several AppleScripts. As you have written this master script please follow the above mentioned steps for integrating this into NCTI standard.