time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

index.d.ts (670B)


      1 /**
      2 Run AppleScript asynchronously.
      3 
      4 @param script - The script to run.
      5 @returns The script result.
      6 
      7 @example
      8 ```
      9 import {runAppleScriptAsync} from 'run-applescript';
     10 
     11 const result = await runAppleScriptAsync('return "unicorn"');
     12 
     13 console.log(result);
     14 //=> 'unicorn'
     15 ```
     16 */
     17 export function runAppleScriptAsync(script: string): Promise<string>;
     18 
     19 /**
     20 Run AppleScript synchronously.
     21 
     22 @param script - The script to run.
     23 @returns The script result.
     24 
     25 @example
     26 ```
     27 import {runAppleScriptSync} from 'run-applescript';
     28 
     29 const result = runAppleScriptSync('return "unicorn"');
     30 
     31 console.log(result);
     32 //=> 'unicorn'
     33 ```
     34 */
     35 export function runAppleScriptSync(script: string): string;