Here is the code that ended up working for me. Based on @Stephen_Suen and @Marty_McCoy’s version, adapted for a URL column which may have empty values:
let myTable = base.getTable('Table 1');
let urlField = myTable.getField('URL field name');
let att...