You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launch And Print 2
Launch Without Adding Recents 256
Launch Without Activation 512
Launch Asyncronous 65536
Launch New Instance 524288
Launch And Hide 1048576
Launch And Hide Others 2097152
label:=DOCK Get badge label
DOCK SET BADGE LABEL (label)
Parameter
Type
Description
label
TEXT
icon:=DOCK Get icon
DOCK SET ICON (icon)
Parameter
Type
Description
icon
PICTURE
setting an empty picture resets the dock icon
icon:=FILE Get icon (path)
FILE SET ICON (path;icon)
FOLDER GET CONTENTS (path;paths;pathType)
FOLDER GET SUBPATHS (path;paths;pathType)
Parameter
Type
Description
path
TEXT
paths
ARRAY TEXT
pathType
LONGINT
see constants
consider native 4D command DOCUMENT LIST
Examples
$icon:=FINDER Get icon for file type ("public.jpeg";File Extension)
SET PICTURE TO PASTEBOARD($icon)
$icon:=FINDER Get icon for file type ("4db";File Extension)
SET PICTURE TO PASTEBOARD($icon)
$icon:=FINDER Get icon for file type ("text/plain";File MIME Type)
SET PICTURE TO PASTEBOARD($icon)
$icon:=FINDER Get icon for file type ("trsh";File OSType)
SET PICTURE TO PASTEBOARD($icon)
$icon:=FILE Get icon (Structure file)
SET PICTURE TO PASTEBOARD($icon)
C_BLOB($data)
$filePath:=System folder(Desktop)+Generate UUID
BLOB TO DOCUMENT($filePath;$data)
FILE SET ICON ($filePath;$icon)
FOLDER GET CONTENTS (Get 4D folder(Database folder);$pathHFS;Path Style HFS)
FOLDER GET CONTENTS (Get 4D folder(Database folder);$pathPOS;Path Style POSIX)
FOLDER GET CONTENTS (Get 4D folder(Database folder);$pathURL;Path Style URL)
$filePath1:=System folder(Desktop)+Generate UUID+".txt"$filePath2:=System folder(Desktop)+Generate UUID+".txt"C_BLOB($data)
BLOB TO DOCUMENT($filePath1;$data)
BLOB TO DOCUMENT($filePath2;$data)
$appName:=FILE Get application name ($filePath)
$appName:="com.apple.TextEdit"$appName:="TextEdit.app"$appName:="TextEdit"ARRAY TEXT($path;0)
APPEND TO ARRAY($path;$filePath1)
APPEND TO ARRAY($path;$filePath2)
APPLICATION Launch paths ($appName;Launch Without Activation | Launch And Print;$path)
About
Collection of functions from the NSFileManager and NSWorkSpace classes on OS X 10.5 and later.