osx 1.2.0

  • README.md
  • Installing
  • Versions
  • 35

OSX for Dart

Tools for working with OSX

Features

  • Easy to use
  • Dictation (Speech Recognition and TTS)
  • Application Interaction (High Level API for working with applications)
  • Scripting Helpers
  • System Information
  • User Interface

Example

import "package:osx/osx.dart";

void main() {
  say("Your computer is named: ${SystemInformation.getComputerName()}");
  say("You are running OSX ${SystemInformation.getVersion()}");
  say("Battery is at ${Battery.getLevel()}%");
  say("There are ${Applications.list().length} apps installed");

  if (Finder.getWindowCount() == 0) {
    say("Finder is not open.");
  } else {
    say("Finder is open.");
  }

  var app = Applications.get("Textual 5");

  if (app.isInstalled()) {
    say("Textual 5 is installed");
  } else {
    say("Textual 5 is not installed.");
  }

  var result = UI.displayDialog("Open Mission Control?", buttons: [
    "Yes",
    "No"
  ]);

  if (result.button == "Yes") {
    say("Opening Mission Control");
    MissionControl.activate();
  }
}

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  osx: "^1.2.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:osx/osx.dart';
        
Version Uploaded Documentation Archive
1.2.0 Jun 6, 2016 Go to the documentation of osx 1.2.0 Download osx 1.2.0 archive
1.1.0 Apr 18, 2015 Go to the documentation of osx 1.1.0 Download osx 1.1.0 archive
1.0.0 Apr 18, 2015 Go to the documentation of osx 1.0.0 Download osx 1.0.0 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 13, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
99 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
25 / 100
Overall score:
Weighted score of the above. [more]
35

Platforms

Detected platforms: Flutter, other

Primary library: package:osx/osx.dart with components: io.

Suggestions

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use osx.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
crypto >=0.9.0 <1.0.0 0.9.2+1 2.0.2+1
jsonx >=2.0.0 <3.0.0 2.0.2
xml >=2.0.0 <3.0.0 2.6.0 3.0.0-alpha
Transitive dependencies
charcode 1.1.1
convert 1.1.1 2.0.1
matcher 0.12.1+4
path 1.5.1
petitparser 1.7.0
stack_trace 1.9.1
typed_data 1.1.5