When looking at the Connect To Dialog, the Recent Items List is built from the 4DLink files found in a specific folder, where each 4DLink file represents a recent item:
Non-Merged v14 Apps
Mac:Users:<username>:Library:Application Support:4D:Favorites v14:Remote:
Windows: C:\Users\<username>\AppData\Roaming\4D\Favorites v14\Remote\
Merged v14 Apps:
Mac:Users:<username>:Library:Application Support:<application> Client:Favorites v14:Remote:
Windows: C:\Users\<username>\AppData\Roaming\<application>\Favorites v14\Remote\
* v13 apps used the same path but used v13 instead of v14 in the folder name.
** v15 apps use the same path but use v15 instead of v14 in the folder name.
Here is some simple code that can be used to get the folder/location where the 4DLink files are stored in relation to the Recently Used Servers list of the connection dialog:
C_TEXT($version;$recentFolder) $version:="v"+Substring(Application version;1;2) $recentFolder:=Get 4D folder(Active 4D Folder)+"Favorites "+$version+Folder separator+"Remote" |
This information can be used to get a list of the files at this location:
ARRAY TEXT($recentItems_at;0) DOCUMENT LIST($recentFolder;$recentItems_at) |
This information can also be used open the folder:
SHOW ON DISK($recentFolder;*) |
This code is valid for both interpreted and compiled applications.