文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/run-applescript/index.d.ts
编辑文件内容
export type Options = { /** Change the output style. When `false`, returns the value in a [recompilable source form](https://ss64.com/osx/osascript.html). @default true @example ``` import {runAppleScript} from 'run-applescript'; const result = await runAppleScript('return "unicorn"', {humanReadableOutput: false}); console.log(result); //=> '"unicorn"' ``` */ readonly humanReadableOutput?: boolean; }; /** Run AppleScript asynchronously. @param script - The script to run. @returns The script result. @example ``` import {runAppleScript} from 'run-applescript'; const result = await runAppleScript('return "unicorn"'); console.log(result); //=> 'unicorn' ``` */ export function runAppleScript( script: string, options?: Options ): Promise<string>; /** Run AppleScript synchronously. @param script - The script to run. @returns The script result. @example ``` import {runAppleScriptSync} from 'run-applescript'; const result = runAppleScriptSync('return "unicorn"'); console.log(result); //=> 'unicorn' ``` */ export function runAppleScriptSync(script: string, options?: Options): string;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件