## Tcl9.0.3/Tk9.0.3 Documentation > Tk Commands > sysnotify

### Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API

### NAME

sysnotify — 表題と伝言を伴う通知窓の生成 Creates a notification window with a title and message.

### SYNOPSIS

tk sysnotify title message

### DESCRIPTION

tk sysnotify命令はOS固有の系通知警告を生成する｡ その意図は､画像の隅に､簡単に現れる窓を跳び出たせて､ 使用者への､簡単な､目立たない､警告を､提供する｡ The tk sysnotify command creates a platform-specific system notification alert. Its intent is to provide a brief, unobtrusive notification to the user by popping up a window that briefly appears in a corner of the screen.

### 用例 EXAMPLE

これは､tk sysnotify符号命令の用例: Here is an example of the tk sysnotify code:

    tk sysnotify "Alert" \
          "This is just a test of the Tk System Notification Code."

### OSの註意 PLATFORM NOTES

WindowsとmacOSの版は､ APIの系を使う固有実装である｡ X11版は外部函数への条件の依存を有す､且つ､ 外部函数が実装されない場合､Tclのみの実装に戻る｡ それぞれのOSで､通知は､ 文書を伴う為の､OS固有の無為設定影像を含む｡ The macOS and Windows versions are native implementations using system API's. The X11 version has a conditional dependency on libnotify, and falls back to a Tcl-only implementation if libnotify is not installed. On each platform the notification includes a platform-specific default image to accompany the text.

macOS
  macOS版は､ 使用者から､通知を承認する許可を要求する｡ これは､Appleの系設定通知項目内で活性化されねばならない｡ The macOS version will request permission from the user to authorize notifications. This must be activated in Apple's System Preferences Notifications section.

  もし､Wish応用譜の独立した版を使用する応用譜の配置では､ 応用譜のInfo.plistファイル内の IDの束を設定し､ 通知に関して働く為に､ “com” で､始まることが必須に思われる｡ IDの束に関して､異なる前置辞を使い､ “tk.tcl.tkchat” の様な事は､通知が警告なしに失敗する事を惹き起こす｡ If deploying an application using the standalone version of Wish.app, setting the bundle ID in the applications Info.plist file to begin with “com” seems necessary for notifications to work. Using a different prefix for the bundle ID, such as something like “tk.tcl.tkchat”, will cause notifications to silently fail.

Windows
  影像は系の皿から採る､即ち､sysnotifyはsystrayが実装されている時のみ呼び出せる｡ The image is taken from the system tray, i.e., sysnotify can only be called when a systray was installed.

### KEYWORDS

notify, alert
Copyright © 2020 Kevin Walzer/WordTech Communications LLC.