Page 1 of 1

Applescript error with URL Access scripting

PostPosted: Sat Jan 08, 2011 7:31 am
by nickwild
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

Re: Applescript error with URL Access scripting

PostPosted: Mon Jan 10, 2011 4:26 pm
by Mr_Noodle
I can't tell from that snippet. It's complaining about a folder called "some object" not existing. Does your script ever refer to a folder with that name?