jxa-types
Preparing search index...
foundation
NSWorkspace
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
launch
App
With
Bundle
Identifier
Options
Additional
Event
Param
Descriptor
Launch
Identifier
running
Applications
Methods
get
Info
For
File
Application
Type
icon
For
File
icon
For
Files
icon
For
File
Type
is
File
Package
At
Path
set
Icon
For
File
Options
Properties
launch
App
With
Bundle
Identifier
Options
Additional
Event
Param
Descriptor
Launch
Identifier
launchAppWithBundleIdentifierOptionsAdditionalEventParamDescriptorLaunchIdentifier
:
(
name
:
string
,
flags
:
number
,
descriptor
:
any
,
unk
:
any
,
)
=>
void
running
Applications
runningApplications
:
{
bundleIdentifier
:
NSString
}
[]
Methods
get
Info
For
File
Application
Type
getInfoForFileApplicationType
(
fullPath
:
any
,
appName
?:
any
,
type
?:
any
)
:
boolean
Parameters
fullPath
:
any
Optional
appName
:
any
Optional
type
:
any
Returns
boolean
icon
For
File
iconForFile
(
fullPath
:
any
)
:
NSImage
Parameters
fullPath
:
any
Returns
NSImage
icon
For
Files
iconForFiles
(
fullPaths
:
NSArray
<
any
>
)
:
NSImage
Parameters
fullPaths
:
NSArray
<
any
>
Returns
NSImage
icon
For
File
Type
iconForFileType
(
fileType
:
any
)
:
NSImage
Parameters
fileType
:
any
Returns
NSImage
is
File
Package
At
Path
isFilePackageAtPath
(
fullPath
:
any
)
:
boolean
Parameters
fullPath
:
any
Returns
boolean
set
Icon
For
File
Options
setIconForFileOptions
(
image
:
NSImage
,
fullPath
:
any
,
options
:
number
)
:
boolean
Parameters
image
:
NSImage
fullPath
:
any
options
:
number
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
launch
App
With
Bundle
Identifier
Options
Additional
Event
Param
Descriptor
Launch
Identifier
running
Applications
Methods
get
Info
For
File
Application
Type
icon
For
File
icon
For
Files
icon
For
File
Type
is
File
Package
At
Path
set
Icon
For
File
Options
jxa-types
Loading...