<!--
{
  "documentType" : "article",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/bookmark-data-creation-options",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Bookmark Data Creation Options"
}
-->

# Bookmark Data Creation Options

Options used when creating bookmark data.

## Discussion

When creating a bookmark, use bitwise `OR` operators to combine the options you want to specify, and provide them to the `options` parameter of the [`CFURLCreateBookmarkData(_:_:_:_:_:_:)`](/documentation/CoreFoundation/CFURLCreateBookmarkData(_:_:_:_:_:_:)) method.

### Version-Notes

Security-scoped bookmarks are not available in versions of macOS prior to OS X v10.7.3.

## Topics

### Constants

[`static var preferFileIDResolutionMask: CFURLBookmarkCreationOptions`](/documentation/CoreFoundation/CFURLBookmarkCreationOptions/preferFileIDResolutionMask)

Specifies that an alias created with the bookmark data prefers resolving with its embedded file ID.

[`static var minimalBookmarkMask: CFURLBookmarkCreationOptions`](/documentation/CoreFoundation/CFURLBookmarkCreationOptions/minimalBookmarkMask)

Specifies that an alias created with the bookmark data be created with minimal information, which may make it smaller but still able to resolve in certain ways.

[`static var suitableForBookmarkFile: CFURLBookmarkCreationOptions`](/documentation/CoreFoundation/CFURLBookmarkCreationOptions/suitableForBookmarkFile)

Specifies that the bookmark data include properties required to create Finder alias files.

[`static var withSecurityScope: CFURLBookmarkCreationOptions`](/documentation/CoreFoundation/CFURLBookmarkCreationOptions/withSecurityScope)

Specifies that you want to create a security-scoped bookmark that, when resolved, provides a security-scoped URL allowing read/write access to a file-system resource; for use in an app that adopts App Sandbox.

[`static var securityScopeAllowOnlyReadAccess: CFURLBookmarkCreationOptions`](/documentation/CoreFoundation/CFURLBookmarkCreationOptions/securityScopeAllowOnlyReadAccess)

When combined with the [`withSecurityScope`](/documentation/CoreFoundation/CFURLBookmarkCreationOptions/withSecurityScope) option, specifies that you want to create a security-scoped bookmark that, when resolved, provides a security-scoped URL allowing read-only access to a file-system resource; for use in an app that adopts App Sandbox.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)