Applescript error with URL Access scripting

HI,
I have a script that runs OK when run independently, but when run either as an external script triggered from Hazel or within error produces an error.
The portion of code that is erroring is:
tell application "URL Access Scripting"
set DL_Location to "DATA:NASMovies:" & current_name & ":"
set DL_file to current_name & ".xml"
set DL_string to DL_Location & DL_file
download tmdbURL to file DL_string
end tell
which produces the following error;
AppleScript error: {
NSLocalizedDescription = "URL Access Scripting got an error: Folder some object wasn\U2019t found.";
NSLocalizedFailureReason = "Folder some object wasn\U2019t found.";
OSAScriptErrorAppAddressKey = <NSAppleEventDescriptor: 'psn '("URL Access Scripting")>;
OSAScriptErrorAppNameKey = "URL Access Scripting";
OSAScriptErrorBriefMessageKey = "Folder some object wasn\U2019t found.";
OSAScriptErrorMessageKey = "URL Access Scripting got an error: Folder some object wasn\U2019t found.";
OSAScriptErrorNumberKey = -120;
OSAScriptErrorRangeKey = NSRange: {0, 0};
}
Any ideas how I can resolve this?
TIA
Nick
I have a script that runs OK when run independently, but when run either as an external script triggered from Hazel or within error produces an error.
The portion of code that is erroring is:
tell application "URL Access Scripting"
set DL_Location to "DATA:NASMovies:" & current_name & ":"
set DL_file to current_name & ".xml"
set DL_string to DL_Location & DL_file
download tmdbURL to file DL_string
end tell
which produces the following error;
AppleScript error: {
NSLocalizedDescription = "URL Access Scripting got an error: Folder some object wasn\U2019t found.";
NSLocalizedFailureReason = "Folder some object wasn\U2019t found.";
OSAScriptErrorAppAddressKey = <NSAppleEventDescriptor: 'psn '("URL Access Scripting")>;
OSAScriptErrorAppNameKey = "URL Access Scripting";
OSAScriptErrorBriefMessageKey = "Folder some object wasn\U2019t found.";
OSAScriptErrorMessageKey = "URL Access Scripting got an error: Folder some object wasn\U2019t found.";
OSAScriptErrorNumberKey = -120;
OSAScriptErrorRangeKey = NSRange: {0, 0};
}
Any ideas how I can resolve this?
TIA
Nick