import execa from 'execa' ; export const osascript = ( filePath , ... args ) : Promise < string > => execa ( 'osascript' , [ filePath , ... args ] ) . then ( ( { stdout } ) => stdout ) ; export const osascriptSync = ( filePath , ... args ) : string => execa . sync ( 'osascript' , [ filePath , ... args ] ) . stdout ;