jxa-types
    Preparing search index...

    Interface NSWorkspace

    interface NSWorkspace {
        launchAppWithBundleIdentifierOptionsAdditionalEventParamDescriptorLaunchIdentifier: (
            name: string,
            flags: number,
            descriptor: any,
            unk: any,
        ) => void;
        runningApplications: { bundleIdentifier: NSString }[];
        getInfoForFileApplicationType(
            fullPath: any,
            appName?: any,
            type?: any,
        ): boolean;
        iconForFile(fullPath: any): NSImage;
        iconForFiles(fullPaths: NSArray<any>): NSImage;
        iconForFileType(fileType: any): NSImage;
        isFilePackageAtPath(fullPath: any): boolean;
        setIconForFileOptions(
            image: NSImage,
            fullPath: any,
            options: number,
        ): boolean;
    }
    Index

    Properties

    launchAppWithBundleIdentifierOptionsAdditionalEventParamDescriptorLaunchIdentifier: (
        name: string,
        flags: number,
        descriptor: any,
        unk: any,
    ) => void
    runningApplications: { bundleIdentifier: NSString }[]

    Methods

    • Parameters

      • fullPath: any
      • OptionalappName: any
      • Optionaltype: any

      Returns boolean