Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Icon.ClearIcon

Clears the custom icon for the file or directory at the specified path.

Component Version macOS Windows Linux Server iOS SDK
QuickLook Files 2.7 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No
MBS( "Icon.ClearIcon"; Path )   More

Parameters

Parameter Description Example
Path The path to the file or folder. "/Applications"

Result

Returns OK on success.

Description

Clears the custom icon for the file or directory at the specified path.

This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.

Examples

Clears icon of a file on the desktop:

MBS("Icon.ClearIcon"; "/Users/Christian/Desktop/test.pdf")

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 10th April 2022


IKSlideShow.SetWrapAround - Icon.GetIcon