Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

README.md

applescript

A library for executing AppleScript in Dart.

Usage

A simple usage example:

import 'package:applescript/applescript.dart';
import 'dart:io'; // required for results callback

main() {
  // Example
  AppleScript as = new AppleScript('tell application "Spotify" to playpause');
  as.run();
  
  // Example with Results Callback
  printResults(ProcessResult results) {
    print(results.stdout);
  }
  
  AppleScript as2 = new AppleScript.results('do shell script "echo Hello World"', printResults);
  as2.run();
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

A library for executing AppleScript in Dart.

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.