Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

Files.CreateBookmark

Creates a bookmark from a file path.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Files 3.1 Yes No Yes, macOS only No Yes

MBS( "Files.CreateBookmark"; Path { ; RelativePath; PreferFileIDResolution } )

Parameters

Parameter Description Example value
Path The native path to file or folder where the bookmark refers to. $path
RelativePath Optional
Optional the path of a file/folder being the relative path. This can be the native path to your database. This way you can later find the file again if database and target file moved together.
"/Data/ImageFiles"
PreferFileIDResolution Optional
Optional, wether you prefer FileID resolution later over path resolution. Can be 1 or 0. Default is 0.
1

Result

Returns bookmark data text or error message.

Description

Creates a bookmark from a file path.
This is like an alias file in Finder, but as text, so you can store it in a text field in your database.

See also

Example Databases


Files.CopyFile   -   Files.CreateDirectory

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins