How to get the path to a navigator's download folder ?

Hello,

I would like to know how to get a navigator’s download folder path using Applescript.

Thank you :slight_smile:

After some more research, I think the path is written in the preferences file of the browser.

As an example, the .plist of Firefox shows this :

0:HomeDirectoryPath_(AppleNavServices:ChooseFolder:0:Position_AppleRecentFoldersHo0_&file://localhost/Users/personal/Pictures/ª_file://~/Pictures/

How can I extract “&file://localhost/Users/personal/Pictures/” (put this sentence in a variable) from this .plist using AppleScript ?

Thank you.