property delimiters : {"", "", "T", "-", "+"} on process_rss(rss_Text) set current_delimiter to AppleScript's text item delimiters --be polite and save existing delimiters set new_rss_Text to {} set AppleScript's text item delimiters to item 1 of delimiters --split text at end of each date-time property set parsed_data to text items of rss_Text set AppleScript's text item delimiters to item 2 of delimiters --split text at the start of each date-time property set num_date_str to (count of items in parsed_data) - 1 --count of items less last one repeat with aCounter from 1 to num_date_str --process each date-time string set current_item to text items of item aCounter of parsed_data set current_date_str to last text item of current_item set AppleScript's text item delimiters to item 3 of delimiters set time_str to last text item of current_date_str if time_str contains "-" then set AppleScript's text item delimiters to item 4 of delimiters else set AppleScript's text item delimiters to item 5 of delimiters end if set new_time_str to first text item of time_str & "+00:00" --reset time zone offset to 0 i.e post time is now GMT set AppleScript's text item delimiters to item 3 of delimiters set date_str to first text item of current_date_str set new_date_str to {date_str, new_time_str} as text set AppleScript's text item delimiters to item 2 of delimiters --reassemble original feed with new date-time property set header to first text item of current_item set new_item to {header, new_date_str} as text set new_rss_Text to new_rss_Text & new_item end repeat set new_rss_Text to new_rss_Text & last item of parsed_data --new rss file as list set AppleScript's text item delimiters to item 1 of delimiters --insert date-string terminator set final_rss_Text to new_rss_Text as text --coerce list into correct formatted RSS feed set AppleScript's text item delimiters to current_delimiter --return delimiters to previous state return final_rss_Text end process_rss on main(desired_URL) --must have main handler - requirement of NNW2 - argument must be a string set download_path to (path to application support from user domain as string) & "NetNewsWire:rss" tell application "URL Access Scripting" to set downloaded_file to download desired_URL to file download_path set rss_data_file to open for access downloaded_file set the_end_of_file to get eof rss_data_file set rss_Text to read rss_data_file for the_end_of_file close rss_data_file tell application "Finder" to delete downloaded_file --throw away original rss file return my process_rss(rss_Text) --return new rss feed to NNW2 end main