I’ve got one remaining use of AbsolutePath that I need to get rid of. Unfortunately, this is due to an AppleScript:
dim theScript(-1) as String
theScript.append "set AccountDirectories to {}"
theScript.append "tell application id 'com.apple.mail'"
if doEnabledOnly and CarbonModule.SystemVersionAsInt < 101500 then
theScript.append "set theAccounts to (get name of accounts whose enabled is true)"
else
theScript.append "set theAccounts to (get name of accounts)"
end if
theScript.append "repeat with currentAccount in theAccounts"
theScript.append "set the end of AccountDirectories to {account directory of account currentAccount as string}"
theScript.append "end repeat"
theScript.append "return AccountDirectories"
theScript.append "end tell"
This returns a string which is an AbsolutePath. Can I directly get a folderitem as result? I already had a look at item.fileURLValue but this available for non-files , too.