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

Addressbook.persistentAccounts

Queries list of account identifies for persistent accounts.

Component Version macOS Windows Linux Server iOS SDK
Addressbook 6.2 ✅ Yes ❌ No ❌ No ❌ No ❌ No

Deprecated

This function was deprecated. Use Contacts functions instead.

MBS( "Addressbook.persistentAccounts" )

Parameters

none

Result

Returns list or error.

Description

Queries list of account identifies for persistent accounts.

Examples

Show persistent accounts:

Set Variable [$accounts; Value:MBS( "Addressbook.persistentAccounts" )]
Set Variable [$count; Value:ValueCount($accounts)]
Set Variable [$index; Value:1]
Loop
    Set Variable [$account; Value:GetValue($accounts; $index)]
    Show Custom Dialog ["Identifier: " & $account & ¶ &
"Name: " & MBS( "Addressbook.Account.Name"; $account) & ¶ &
"Type: " & MBS( "Addressbook.Account.Type"; $account) & ¶ &
"Main: " & MBS( "Addressbook.Account.isMainAccount"; $account) & ¶ &
"URL: " & MBS( "Addressbook.Account.URL"; $account)]
    Set Variable [$index; Value:$index +1]
    Exit Loop If [$index > $count]
End Loop

See also

This function is free to use.

Created 17th March 2016, last changed 8th June 2017


Addressbook.people - Addressbook.person.EditInAddressbook