AppleScript current path for network drive or mount
Based on the following answer, I edited the AppleScript in the first step to:

on run {input, parameters}
    tell application "Finder"
        set the currentFolder to (folder of the front window as alias)
    end tell
    return currentFolder
end run


And now works correctly on network drives.